diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-15 06:52:13 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-15 06:52:13 +0000 |
commit | 9f7759b3b1be5a3bc7794010a8ebf9334f017d2f (patch) | |
tree | fa4e093c6694ec0590cbbd9a7b86c1edddc43d72 /app-admin/hardinfo | |
parent | ac35def7deb4a1eecfad26f0eb5907170b2ee5d7 (diff) |
gentoo auto-resync : 15:11:2022 - 06:52:13
Diffstat (limited to 'app-admin/hardinfo')
-rw-r--r-- | app-admin/hardinfo/Manifest | 3 | ||||
-rw-r--r-- | app-admin/hardinfo/files/hardinfo-0.6-fix-function-declarations.patch | 226 | ||||
-rw-r--r-- | app-admin/hardinfo/hardinfo-0.6_alpha_pre20221113.ebuild | 38 |
3 files changed, 267 insertions, 0 deletions
diff --git a/app-admin/hardinfo/Manifest b/app-admin/hardinfo/Manifest index 6117434891fb..c03ae26e67ab 100644 --- a/app-admin/hardinfo/Manifest +++ b/app-admin/hardinfo/Manifest @@ -1,3 +1,6 @@ +AUX hardinfo-0.6-fix-function-declarations.patch 5559 BLAKE2B df1c7393b645067f68a128fbf39b2eb75501fd40c4f5de52662aeaa77ed94193b6e0b7975993fbb1e64619a1e9f0a6e72c4333ec51e30ba6f4483319f3fd041e SHA512 5d5fef6fd8e6f9817b871b635a53c1682f193a7303b308d7a3493f63b2334589f278b4a40d7e87b62634aeffab82a2227cf142f29c9b8548d13a07d69133fead DIST hardinfo-0.6_alpha_pre20201116.tar.gz 1294614 BLAKE2B d585be00603a5da2873d0e15829039f3f5212e2ab294b71d7f53299d7eecdfbb2d46ee8d56913039bf03807cebe3f100f41ce6560a1a33fcd712eab59c2a92a9 SHA512 34ce849f2d1a9ea129502abfb186b43a0d8ddecc853d2edc3128389944a34efa3580c6d8a35b8fc40b55d64cc8f3c0d33b97f198a449ed0cacdbff2520853c1c +DIST hardinfo-0.6_alpha_pre20221113-a798cbaed6f1b083cc3c26dbede74cf40947d0ef.tar.gz 1411038 BLAKE2B 8a6ca1a8e2bd53804cd6f55f0b9ce89d24d61aff9e267636301331d329229cd11778ea087e1906e7313cb1bd077ca69766e6fdf86c21985deba51f942cedf904 SHA512 faa7db1c8a7ac4f432a27cf10d21b453091136dd2d171b63f0b91eeea65c3cec25e7b4c2a845dfb64ff572ee6acaddfec56bd51f7292ed8b3674b44755a7a631 EBUILD hardinfo-0.6_alpha_pre20201116-r1.ebuild 807 BLAKE2B dc8c789d2a758ead03efc6b12b0ebf9015ecfa4629c6298df5060e76f7c24ba74feb3157a2d92a9f69a271d9a80632caa151165c366d2ac4175b2ff1a14f3a13 SHA512 9aa490c2632ca915a6c95cdfcea9f381bd688042f5165a85a1e03f372c0beeaf87cd587e64485ef45a6291731140d0a7e2e1665ccf1d5e7fa4c310beafbbfa2e +EBUILD hardinfo-0.6_alpha_pre20221113.ebuild 895 BLAKE2B 88429e43cbb055f53d159e83d304a085ee3b90943243a492d6b105d70799bb0720f5dcbd017ff9716b4f60bf65f99a120b16abc987e76acf7383a30892c38de3 SHA512 cae5bc49e35fb5dcfacb173485d23a1598df18d01471b1d34b13062d0e7b86f66f5a451949a3dfb5a772dead218eb8f95e413a9af0a891c45a98d94495cd0521 MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3 diff --git a/app-admin/hardinfo/files/hardinfo-0.6-fix-function-declarations.patch b/app-admin/hardinfo/files/hardinfo-0.6-fix-function-declarations.patch new file mode 100644 index 000000000000..c2aaa2e4acd5 --- /dev/null +++ b/app-admin/hardinfo/files/hardinfo-0.6-fix-function-declarations.patch @@ -0,0 +1,226 @@ +Clang16 will not allow implicit function declaration etc. by default. +This overhauls the whole source code to make this build with clang16 +defaults. + +Bug: https://bugs.gentoo.org/875500 +PR to merge this upstream: https://github.com/lpereira/hardinfo/pull/681 + +Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> + +--- a/includes/computer.h ++++ b/includes/computer.h +@@ -178,4 +178,8 @@ extern GHashTable *memlabels; + void init_memory_labels(void); + void scan_memory_do(void); + ++void scan_boots_real(void); ++void scan_languages(OperatingSystem * os); ++void scan_groups_do(void); ++ + #endif /* __COMPUTER_H__ */ +--- a/includes/devices.h ++++ b/includes/devices.h +@@ -66,6 +66,14 @@ void scan_printers_do(void); + void scan_sensors_do(void); + void sensor_init(void); + void sensor_shutdown(void); ++void __scan_dtree(void); ++void scan_gpu_do(void); ++gboolean __scan_udisks2_devices(void); ++void __scan_ide_devices(void); ++void __scan_scsi_devices(void); ++void __scan_input_devices(void); ++void __scan_usb(void); ++void __scan_dmi(void); + + extern gchar *battery_list; + extern gchar *input_icons;--- a/includes/hardinfo.h ++++ b/includes/hardinfo.h +@@ -230,4 +230,6 @@ gg_strescape (const gchar *source, + gboolean note_cond_bullet(gboolean cond, gchar *note_buff, const gchar *desc_str); + gboolean note_require_tool(const gchar *tool, gchar *note_buff, const gchar *desc_str); + ++int cpu_procs_cores_threads(int *p, int *c, int *t); ++ + #endif /* __HARDINFO_H__ */ +--- a/includes/udisks2_util.h ++++ b/includes/udisks2_util.h +@@ -56,3 +56,5 @@ void udisks2_init(); + void udisks2_shutdown(); + GSList *get_udisks2_temps(); + GSList *get_udisks2_all_drives_info(); ++void udiskt_free(udiskt *u); ++void udiskd_free(udiskd *u); +--- a/modules/benchmark/bench_results.c ++++ b/modules/benchmark/bench_results.c +@@ -20,6 +20,7 @@ + + #include <inttypes.h> + #include <json-glib/json-glib.h> ++#include "nice_name.h" + + /* in dmi_memory.c */ + uint64_t memory_devices_get_system_memory_MiB(); +--- a/modules/computer/boots.c ++++ b/modules/computer/boots.c +@@ -21,6 +21,8 @@ + #include "hardinfo.h" + #include "computer.h" + ++extern void scan_os(gboolean reload); ++ + void + scan_boots_real(void) + { +--- a/modules/devices/dmi.c ++++ b/modules/devices/dmi.c +@@ -146,7 +146,7 @@ gboolean dmi_get_info(void) + return dmi_succeeded; + } + +-void __scan_dmi() ++void __scan_dmi(void) + { + gboolean dmi_ok; + +--- a/modules/devices/gpu.c ++++ b/modules/devices/gpu.c +@@ -24,8 +24,6 @@ + #include "devices.h" + #include "gpu_util.h" + +-void scan_gpu_do(void); +- + gchar *gpu_list = NULL; + gchar *gpu_summary = NULL; + +--- a/modules/devices/inputdevices.c ++++ b/modules/devices/inputdevices.c +@@ -20,6 +20,7 @@ + + #include "hardinfo.h" + #include "devices.h" ++#include "usb_util.h" + + gchar *input_icons = NULL; + +--- a/modules/devices/pci.c ++++ b/modules/devices/pci.c +@@ -177,7 +177,7 @@ void scan_pci_do(void) { + gchar *pci_icons = g_strdup(""); + + pcid_list list = pci_get_device_list(0,0); +- list = g_slist_sort(list, pcid_cmp_by_addy); ++ list = g_slist_sort(list, (GCompareFunc)pcid_cmp_by_addy); + GSList *l = list; + + int c = 0; +--- a/includes/network.h ++++ b/includes/network.h +@@ -9,5 +9,7 @@ extern gchar *network_interfaces; + extern gchar *network_icons; + + void scan_net_interfaces(void); ++void scan_samba(void); ++void scan_nfs_shared_directories(void); + +-#endif /* __NETWORK_H__ */ +\ No newline at end of file ++#endif /* __NETWORK_H__ */ +--- a/shell/callbacks.c ++++ b/shell/callbacks.c +@@ -27,9 +27,11 @@ + #include "report.h" + #include "syncmanager.h" + #include "xmlrpc-server.h" ++#include "uri_handler.h" + + #include "config.h" + ++ + void cb_sync_manager() + { + Shell *shell = shell_get_main_shell(); +--- a/shell/report.c ++++ b/shell/report.c +@@ -23,6 +23,7 @@ + #include <iconcache.h> + #include <hardinfo.h> + #include <config.h> ++#include "uri_handler.h" + + static ReportDialog *report_dialog_new(GtkTreeModel * model, + GtkWidget * parent); +--- a/shell/shell.c ++++ b/shell/shell.c +@@ -32,6 +32,7 @@ + #include "iconcache.h" + #include "menu.h" + #include "stock.h" ++#include "uri_handler.h" + + #include "callbacks.h" + +--- a/hardinfo/hardinfo.c ++++ b/hardinfo/hardinfo.c +@@ -27,6 +27,8 @@ + + #include <binreloc.h> + ++#include "dmi_util.h" ++ + ProgramParameters params = { 0 }; + + int main(int argc, char **argv) +--- a/includes/storage_util.h ++++ b/includes/storage_util.h +@@ -18,4 +18,5 @@ GSList *get_udisks2_drives_ext(); + u2driveext* u2drive_ext(udiskd * udisks_drive_data); + void u2driveext_free(u2driveext *u); + +-void udisks2_shutdown(); ++void udisks2_shutdown(void); ++void storage_shutdown(void); +--- a/modules/devices.c ++++ b/modules/devices.c +@@ -39,6 +39,7 @@ + #include "devices.h" + #include "dt_util.h" + #include "udisks2_util.h" ++#include "storage_util.h" + #include "pci_util.h" + + gchar *callback_processors(); +--- a/modules/benchmark.c ++++ b/modules/benchmark.c +@@ -31,6 +31,7 @@ + + #include "appf.h" + #include "benchmark.h" ++#include "cpu_util.h" + + #include "benchmark/bench_results.c" + +--- a/modules/benchmark/sysbench.c ++++ b/modules/benchmark/sysbench.c +@@ -19,6 +19,7 @@ + + #include "hardinfo.h" + #include "benchmark.h" ++#include "cpu_util.h" + + #define STATMSG "Performing Alexey Kopytov's sysbench memory benchmark" + +--- a/modules/devices/printers.c ++++ b/modules/devices/printers.c +@@ -16,6 +16,10 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + ++#ifndef _XOPEN_SOURCE ++#define _XOPEN_SOURCE ++#endif /* _XOPEN_SOURCE */ ++ + #include <stdio.h> + #include <stdlib.h> + #include <time.h> diff --git a/app-admin/hardinfo/hardinfo-0.6_alpha_pre20221113.ebuild b/app-admin/hardinfo/hardinfo-0.6_alpha_pre20221113.ebuild new file mode 100644 index 000000000000..0a54f97486b8 --- /dev/null +++ b/app-admin/hardinfo/hardinfo-0.6_alpha_pre20221113.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit xdg cmake + +GIT_COMMIT="a798cbaed6f1b083cc3c26dbede74cf40947d0ef" + +DESCRIPTION="System information and benchmark tool for Linux systems" +HOMEPAGE="https://github.com/lpereira/hardinfo" +SRC_URI="https://github.com/lpereira/hardinfo/archive/${GIT_COMMIT}.tar.gz -> ${P}-${GIT_COMMIT}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="debug" + +RDEPEND="dev-libs/glib:2 + dev-libs/json-glib + net-libs/libsoup:2.4 + sys-libs/zlib + x11-libs/cairo + >=x11-libs/gtk+-3.0:3" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/${PN}-${GIT_COMMIT}" + +PATCHES=( "${FILESDIR}"/hardinfo-0.6-fix-function-declarations.patch ) + +src_configure() { + local mycmakeargs=( + -DHARDINFO_GTK3=1 + -DHARDINFO_DEBUG=$(usex debug 1 0) + ) + cmake_src_configure +} |