diff options
Diffstat (limited to 'sys-libs')
7 files changed, 615 insertions, 0 deletions
diff --git a/sys-libs/Manifest.gz b/sys-libs/Manifest.gz Binary files differindex 4c1b4e7c9f5b..d39d11a775f5 100644 --- a/sys-libs/Manifest.gz +++ b/sys-libs/Manifest.gz diff --git a/sys-libs/freeipmi/Manifest b/sys-libs/freeipmi/Manifest index ec417748923f..c729bfe672bf 100644 --- a/sys-libs/freeipmi/Manifest +++ b/sys-libs/freeipmi/Manifest @@ -1,10 +1,15 @@ AUX bmc-watchdog.confd 1495 BLAKE2B 5e441796033e7240b198737e33bb8a577e7082f27427d509eec210f4326b45fed77573bffebfbc4f9874ff939f4cfef63b6e70222adf6c858987d3eb4a74abc6 SHA512 11bbd920eb67a64a9d3742e860ae146c1a00398f44d4cead49f8f6070f46a09249c05bb647a1b7bf2c4c6c78e1ae393b2e52395f640bc7e5139aade7c99b45b2 AUX bmc-watchdog.initd.4 404 BLAKE2B 4f975fdccb09a8505d59ded187be17e52b746a5239c6d44905915f88d14227f038189bb375b68a1f86cbf9edfe8c06b1fc2665f0b9d6a3817fa2189b484c81af SHA512 2b9c38713d66adce3f8ff95551d2588ffbda62190077578b02aaf890651eff23f6acc6a7ab41efa8efdca4447c9aa466d0ad59a76e3b05443fd423eff06b4071 +AUX freeipmi-1.6.10-0001-configure.ac-Fix-Wimplicit-function-declaration-for-.patch 976 BLAKE2B c85425f028eb0ccd873bd746345b722430daae5fd8f9980eee1ac26ab58475ceddf5ccd0e0ca13b7b6bb5eff36dfdfcec3c0934f498f2db227081f7eaf5f20a6 SHA512 93e7058a3b1d88d8991fac176810c02db68be8363c7cde43c1e2ab2593be8b9b57f6409e354ce13ea39ef4bf07f06fbac704ecc73cbe73455b814b51fb1ca9dc +AUX freeipmi-1.6.10-0002-configure.ac-Fix-detecting-sighandler_t-on-glibc.patch 985 BLAKE2B 3709fe28fd1d5d9fdfbb5872478e41347c90e4be07f0d6a3e8120138a943dbe6a26f6967d38b11ffc303c887a168a7ff401968c8112f21b21f1b73ac6e22fac3 SHA512 0625d79c74666198b00dc6f2bc07e89d7e9b86c3be88595dd8d2a1ee337250f4f031bf9a0ddafd9a21e36b5f8269a147ef71aea9ad14e42170cb9642346ded1f +AUX freeipmi-1.6.10-0003-configure.ac-Use-AC_USE_SYSTEM_EXTENSIONS-instead-of.patch 9623 BLAKE2B 1b6dc121313a7b7983733a04393a482a40d33dcdd39348f95e8105748004cb71a7502ebeb18cdacd9e6e1b0ca819ef618c7894f38c1daf7da2660c6b40c56477 SHA512 4287ad0b513279c1a72a437a2efab093d9585ab9bc6c3040d1e65b6fb694e9521b9bcab0741fa56a6a63afa815abbe9e3981444adbcc9cdf7d3a3d5f60d2253a +AUX freeipmi-1.6.10-header-fixes.patch 4615 BLAKE2B 5138af0a37cf4d79df8bbcbe17441a18006bedd3d85c21369f1c059c31de67ac81184c380d10511501103477e799eaeb4f446db43bd5be37c1c34ea57e58ec36 SHA512 9600ca961d2dd1501eeeacad9b6fb4519915bee3bf21c61026d20c7ba7781e6993daf3a6d35c53e479d44871b73bd925b07c13417609e5c889638b519335d631 AUX freeipmi.icinga 117 BLAKE2B 12409a509d0b06d54196961f703fbe91034e1f68cfc19e5cb90c00a3481e29e8bca45fcaca2cc1d780ba5ca6deee58a06b24a2b928ce4a73067efb83d34201f8 SHA512 813aeebe5e663073f3bce7917b35c6ec493f5222bb759d47238aa2b382459661a90165b0bd3a74c2e6e1940d373eccb43ab03a4270d2d2c91a03be361ce46032 AUX ipmidetectd.confd 185 BLAKE2B ea7164e6b126cc684482557cafae3ac0c39611484243e95a3e8946488cc234f4d3100f931549f08c917d454768845e276d83fa3f9e2d7a57c4454a55090bfa38 SHA512 f10e908a451c646b2c61338d79e69663c05216a54093745bd2b659041e0b91adb9be4077c92d63f6f3d62cb5510168b6a57e5e86375533e235fd3abb2b72a49c AUX ipmiseld.confd 192 BLAKE2B 52b125e63ca3e13fcb24f5b304f73c78269fc58b2c3e40cb185b28697c409ccf5ecd4b95599c38119bfe8c97977c3cc87e3633989e2b9d4095cded4b2b248dc4 SHA512 0a031f29a4692085054d5fc2dfe6d0ad7fb762f7ee96849ce2d562a90d6e3b0f3ae8328ab852dc22bee6221bc5cd8b588bd02075222038fa0f0e2f64ac185799 DIST freeipmi-1.6.10.tar.gz 3431062 BLAKE2B e217570d8fcf78ca9d04aad4d5bd46b4120beb21f2dcfb083bc9779a4541856e08ec6e87549651ee3c9b62fe54521585e192c784254dd9482bf9da09935853ae SHA512 90b6b78cdd119c2a1f332f007333aa6df70c6e3de0fd81ab007025392ee7cb7a01ab4a7a174d1f2e760c55d78f21ebbbe9667af661ccdd669e4b54edb1346937 DIST freeipmi-1.6.9.tar.gz 3429566 BLAKE2B 68ee7bd27d459a25464e17d9c98370252d33961d10e69675505f046db26a95d780c114b4f90eeab43a39d0fca3d98b1f108c6d3ca9550fd9d3c455d2e9a79c6b SHA512 536add8dc01aa4d9df45e3499f8be1318185b19beb579c8f991a11ca973626d7e0aabe1d8760a9addadc418ea5c1e2b5432053e46ba94fd9078fb6dcabf48280 +EBUILD freeipmi-1.6.10-r1.ebuild 2991 BLAKE2B dbd47f1d4af27dac47ae19070987d64545391775b0d99e16bee24506cbb22238c8ddb0a3e0f1a2433bfa06ebf445882de1e95cc28990c999e1b7938ce83aad26 SHA512 f2e89b496ca7cb37abff6d4b910bb4e4125abe2b2928f8e35109719b806ff2c64ac1aaf125f967a399be47b32683c9753f6bfd842abc9873ca4eb43ae6e3750c EBUILD freeipmi-1.6.10.ebuild 2600 BLAKE2B ff5893435ab4ea77d407d608194cee08ae23d3eb478b9f43cdff67a342c9cf79b3fc37a5a6b8e059606e5a39409f83a2e997d9c9e6d360484022839f224afa19 SHA512 f7d4686b8ab6b8a770c2d90e315dfa52b67a9d0acdf9e73e95abee33f5e8f615dbfeb1778b47c512c08cb65a6750a993c1947bbafbdd8457b845f41d10cc23e2 EBUILD freeipmi-1.6.9.ebuild 2455 BLAKE2B 925c3025b4b87099a9a1c0c3c66504e18adbdddddd828b9c96171f59169c074e6f748961fa961a59aab3285da14a7f6883ee71bc022747ab97e328274602f4d3 SHA512 6086561f0620730d2c09ab4bfe8867bd2dc552891d69abef519da2d5ac8fdb8bea505adbfa85e3f3a369ac3d21b2fb7ea4a0419bcfb9194f6401860bc08602ab MISC metadata.xml 569 BLAKE2B 80068547ab42d075842e19f6ca65c9aa4b7c25aeddffc01a179e02fd6364804eefe3b7aa26434756de638f22a19da815d8b930a7d5bc81048e228ee72c81cd3a SHA512 f910ad6c63c49a2f2ddadc82c202cc9cf414eda5babdbe675048c6a5c2df4f093663ff8cf99da69563d4c67fa8bc0c18bfb9a8b8a752f8ce63bd1de8feed52e1 diff --git a/sys-libs/freeipmi/files/freeipmi-1.6.10-0001-configure.ac-Fix-Wimplicit-function-declaration-for-.patch b/sys-libs/freeipmi/files/freeipmi-1.6.10-0001-configure.ac-Fix-Wimplicit-function-declaration-for-.patch new file mode 100644 index 000000000000..8d8cfcc2ae7a --- /dev/null +++ b/sys-libs/freeipmi/files/freeipmi-1.6.10-0001-configure.ac-Fix-Wimplicit-function-declaration-for-.patch @@ -0,0 +1,27 @@ +https://marc.info/?l=freeipmi-devel&m=166752785904895&w=2 + +From 3ec9097fc558c888be9268344ea94a4caf5f7883 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 4 Nov 2022 01:58:38 +0000 +Subject: [PATCH 1/3] configure.ac: Fix -Wimplicit-function-declaration for + printf + +Clang 16 makes these errors fatal by default: +``` +error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] +``` + +printf(3) is provided by <stdio.h>, not <stdlib.h>. + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.ac ++++ b/configure.ac +@@ -692,7 +692,7 @@ fi + + AM_CONDITIONAL(WITH_FREEIPMI_ARGP, test "$have_argp" = "no") + +-AC_TRY_COMPILE([#include <stdlib.h>], ++AC_TRY_COMPILE([#include <stdio.h>], + [printf("%s\n", __FUNCTION__);], + [AC_DEFINE([HAVE_FUNCTION_MACRO], [1], [Define is you have __FUNCTION__])]) + diff --git a/sys-libs/freeipmi/files/freeipmi-1.6.10-0002-configure.ac-Fix-detecting-sighandler_t-on-glibc.patch b/sys-libs/freeipmi/files/freeipmi-1.6.10-0002-configure.ac-Fix-detecting-sighandler_t-on-glibc.patch new file mode 100644 index 000000000000..4ffd569ae71d --- /dev/null +++ b/sys-libs/freeipmi/files/freeipmi-1.6.10-0002-configure.ac-Fix-detecting-sighandler_t-on-glibc.patch @@ -0,0 +1,27 @@ +https://marc.info/?l=freeipmi-devel&m=166752785904895&w=2 + +From e3f759741ffc96c92c3a97e4518b09becce622b7 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 4 Nov 2022 02:01:51 +0000 +Subject: [PATCH 2/3] configure.ac: Fix detecting sighandler_t on glibc + +Fixes the following error/misdetection of sighandler_t: +``` +config.log:2639:conftest.c:83:13: error: 'sighandler_t' undeclared (first use in this function); did you mean 'sa_handler'? +``` + +sighandler_t requires -D_GNU_SOURCE on glibc systems. + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.ac ++++ b/configure.ac +@@ -490,7 +490,8 @@ AC_CHECK_FUNCS([cbrt]) + AC_CHECK_FUNCS([getmsg putmsg]) + + dnl sighandler_t apparently not defined in Apple/OS X +-AC_CHECK_TYPES([sighandler_t], [], [], [[#include <signal.h>]]) ++AC_CHECK_TYPES([sighandler_t], [], [], [[#define _GNU_SOURCE ++#include <signal.h>]]) + + # At least on freebsd, putc_unlocked is a macro, so the standard + # AC_CHECK_FUNCS doesn't work well. diff --git a/sys-libs/freeipmi/files/freeipmi-1.6.10-0003-configure.ac-Use-AC_USE_SYSTEM_EXTENSIONS-instead-of.patch b/sys-libs/freeipmi/files/freeipmi-1.6.10-0003-configure.ac-Use-AC_USE_SYSTEM_EXTENSIONS-instead-of.patch new file mode 100644 index 000000000000..2219ddd8719d --- /dev/null +++ b/sys-libs/freeipmi/files/freeipmi-1.6.10-0003-configure.ac-Use-AC_USE_SYSTEM_EXTENSIONS-instead-of.patch @@ -0,0 +1,331 @@ +https://marc.info/?l=freeipmi-devel&m=166752785904895&w=2 + +From e89f234b9032ce5b2a9477c91a25ce982e14cc63 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 4 Nov 2022 02:05:53 +0000 +Subject: [PATCH 3/3] configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of + appending -D_GNU_SOURCE + +This achieves the same effect as it'll use -D_GNU_SOURCE when possible +but it ensures we never forget it in an individual Makefile.am. + +AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60, so we bump +the requirement from 2.57->2.60. Given the comment mentions "modern +autoconf and automake", we could really justify bumping this to 2.69 +which itself is not exactly brand new, if we want. + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/bmc-device/Makefile.am ++++ b/bmc-device/Makefile.am +@@ -7,7 +7,6 @@ bmc_device_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + bmc_device_LDADD = \ +--- a/bmc-info/Makefile.am ++++ b/bmc-info/Makefile.am +@@ -7,7 +7,6 @@ bmc_info_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + bmc_info_LDADD = \ +--- a/bmc-watchdog/Makefile.am ++++ b/bmc-watchdog/Makefile.am +@@ -7,7 +7,6 @@ bmc_watchdog_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT \ + -DBMC_WATCHDOG_LOCALSTATEDIR='"$(localstatedir)"' + +--- a/common/debugutil/Makefile.am ++++ b/common/debugutil/Makefile.am +@@ -5,7 +5,6 @@ libdebugutil_la_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libdebugutil_la_SOURCES = \ +--- a/common/miscutil/Makefile.am ++++ b/common/miscutil/Makefile.am +@@ -2,7 +2,6 @@ noinst_LTLIBRARIES = \ + libmiscutil.la + + libmiscutil_la_CPPFLAGS = \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libmiscutil_la_SOURCES = \ +--- a/common/parsecommon/Makefile.am ++++ b/common/parsecommon/Makefile.am +@@ -5,7 +5,6 @@ libparsecommon_la_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libparsecommon_la_SOURCES = \ +--- a/common/pingtool/Makefile.am ++++ b/common/pingtool/Makefile.am +@@ -6,7 +6,6 @@ libpingtool_la_CPPFLAGS = \ + -I$(top_srcdir)/common/toolcommon \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libpingtool_la_SOURCES = \ +--- a/common/portability/Makefile.am ++++ b/common/portability/Makefile.am +@@ -16,7 +16,6 @@ noinst_LTLIBRARIES = \ + libportability.la + + libportability_la_CPPFLAGS = \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libportability_la_SOURCES = \ +--- a/common/toolcommon/Makefile.am ++++ b/common/toolcommon/Makefile.am +@@ -11,7 +11,6 @@ libtoolcommon_la_CPPFLAGS = \ + -I$(top_builddir)/libipmidetect \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libtoolcommon_la_SOURCES = \ +--- a/configure.ac ++++ b/configure.ac +@@ -12,7 +12,7 @@ AC_SUBST(FREEIPMI_PACKAGE_VERSION_MINOR) + AC_SUBST(FREEIPMI_PACKAGE_VERSION_PATCH) + + dnl We require a modern autoconf and automake +-AC_PREREQ([2.57]) ++AC_PREREQ([2.60]) + + AC_CONFIG_AUX_DIR([config]) + +@@ -304,6 +304,8 @@ AM_CONDITIONAL(WITH_GNU_LD, test "$with_gnu_ld" = "yes") + AC_PROG_MAKE_SET + AC_PROG_LN_S + ++AC_USE_SYSTEM_EXTENSIONS ++ + dnl Enable error tracing. Lower level calls will spit error messages + dnl on to the console + AC_ARG_ENABLE([trace], +--- a/ipmi-chassis/Makefile.am ++++ b/ipmi-chassis/Makefile.am +@@ -7,7 +7,6 @@ ipmi_chassis_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_chassis_LDADD = \ +--- a/ipmi-config/Makefile.am ++++ b/ipmi-config/Makefile.am +@@ -13,7 +13,6 @@ ipmi_config_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_config_LDADD = \ +--- a/ipmi-dcmi/Makefile.am ++++ b/ipmi-dcmi/Makefile.am +@@ -7,7 +7,6 @@ ipmi_dcmi_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_dcmi_LDADD = \ +--- a/ipmi-fru/Makefile.am ++++ b/ipmi-fru/Makefile.am +@@ -7,7 +7,6 @@ ipmi_fru_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_fru_LDADD = \ +--- a/ipmi-locate/Makefile.am ++++ b/ipmi-locate/Makefile.am +@@ -7,7 +7,6 @@ ipmi_locate_CPPFLAGS = \ + -I$(top_srcdir)/common/miscutil \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_locate_LDADD = \ +--- a/ipmi-oem/Makefile.am ++++ b/ipmi-oem/Makefile.am +@@ -7,7 +7,6 @@ ipmi_oem_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_oem_LDADD = \ +--- a/ipmi-pet/Makefile.am ++++ b/ipmi-pet/Makefile.am +@@ -7,7 +7,6 @@ ipmi_pet_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_pet_LDADD = \ +--- a/ipmi-raw/Makefile.am ++++ b/ipmi-raw/Makefile.am +@@ -7,7 +7,6 @@ ipmi_raw_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_raw_LDADD = \ +--- a/ipmi-sel/Makefile.am ++++ b/ipmi-sel/Makefile.am +@@ -8,7 +8,6 @@ ipmi_sel_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_sel_LDADD = \ +--- a/ipmi-sensors/Makefile.am ++++ b/ipmi-sensors/Makefile.am +@@ -9,7 +9,6 @@ ipmi_sensors_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmi_sensors_LDADD = \ +--- a/ipmiconsole/Makefile.am ++++ b/ipmiconsole/Makefile.am +@@ -8,7 +8,6 @@ ipmiconsole_CPPFLAGS = \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ + -I$(top_builddir)/libipmiconsole/ \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + +--- a/ipmidetect/Makefile.am ++++ b/ipmidetect/Makefile.am +@@ -10,7 +10,6 @@ ipmidetect_CPPFLAGS = \ + -I$(top_srcdir)/common/miscutil \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libipmidetect/ \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmidetect_LDADD = \ +--- a/ipmidetectd/Makefile.am ++++ b/ipmidetectd/Makefile.am +@@ -12,7 +12,6 @@ ipmidetectd_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT \ + -DIPMIDETECTD_LOCALSTATEDIR='"$(localstatedir)"' + +--- a/ipmiping/Makefile.am ++++ b/ipmiping/Makefile.am +@@ -5,8 +5,7 @@ ipmiping_CPPFLAGS = \ + -I$(top_srcdir)/common/debugutil \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ +- -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE ++ -I$(top_srcdir)/libfreeipmi/include + + ipmiping_LDADD = \ + $(top_builddir)/common/pingtool/libpingtool.la \ +--- a/ipmipower/Makefile.am ++++ b/ipmipower/Makefile.am +@@ -11,7 +11,6 @@ ipmipower_CPPFLAGS = \ + -I$(top_srcdir)/libfreeipmi/include \ + -DWITH_LSD_FATAL_ERROR_FUNC=1 \ + -DWITH_LSD_NOMEM_ERROR_FUNC=1 \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + ipmipower_LDADD = \ +--- a/ipmiseld/Makefile.am ++++ b/ipmiseld/Makefile.am +@@ -13,7 +13,6 @@ ipmiseld_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT \ + -DIPMISELD_LOCALSTATEDIR='"$(localstatedir)"' + +--- a/libfreeipmi/Makefile.am ++++ b/libfreeipmi/Makefile.am +@@ -25,7 +25,6 @@ libfreeipmi_la_CPPFLAGS = \ + -I$(top_srcdir)/libfreeipmi \ + -DIPMI_IPCKEY=\"$(localstatedir)/lib/$(PACKAGE_NAME)/ipckey\" \ + -DIPMI_DEBUG_IPCKEY=\"$(top_builddir)/libfreeipmi/driver/ipmi-semaphores.h\" \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libfreeipmi_la_LDFLAGS = \ +--- a/libipmiconsole/Makefile.am ++++ b/libipmiconsole/Makefile.am +@@ -21,7 +21,6 @@ libipmiconsole_la_CPPFLAGS = \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ + -DWITH_PTHREADS=1 \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libipmiconsole_la_LDFLAGS = \ +--- a/libipmimonitoring/Makefile.am ++++ b/libipmimonitoring/Makefile.am +@@ -30,7 +30,6 @@ libipmimonitoring_la_CPPFLAGS = \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ + -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE \ + -D_REENTRANT + + libipmimonitoring_la_LDFLAGS = \ +--- a/rmcpping/Makefile.am ++++ b/rmcpping/Makefile.am +@@ -5,8 +5,7 @@ rmcpping_CPPFLAGS = \ + -I$(top_srcdir)/common/debugutil \ + -I$(top_srcdir)/common/portability \ + -I$(top_builddir)/libfreeipmi/include \ +- -I$(top_srcdir)/libfreeipmi/include \ +- -D_GNU_SOURCE ++ -I$(top_srcdir)/libfreeipmi/include + + rmcpping_LDADD = \ + $(top_builddir)/common/pingtool/libpingtool.la \ diff --git a/sys-libs/freeipmi/files/freeipmi-1.6.10-header-fixes.patch b/sys-libs/freeipmi/files/freeipmi-1.6.10-header-fixes.patch new file mode 100644 index 000000000000..ccd1262333db --- /dev/null +++ b/sys-libs/freeipmi/files/freeipmi-1.6.10-header-fixes.patch @@ -0,0 +1,118 @@ +https://git.savannah.gnu.org/cgit/freeipmi.git/commit/?id=587b0cce3d0f146c9f97efbf33d599d23217d610 +https://git.savannah.gnu.org/cgit/freeipmi.git/commit/?id=9cc6f981b55d6aa784788674a5a77c5b970bcabe +https://git.savannah.gnu.org/cgit/freeipmi.git/commit/?id=14c6e2d373173d06fa3f2148629b4d8bdedec0a2 +https://git.savannah.gnu.org/cgit/freeipmi.git/commit/?id=66cf8d0bb7e47d3360389ce427a6303cc0b63d00 + +From 587b0cce3d0f146c9f97efbf33d599d23217d610 Mon Sep 17 00:00:00 2001 +From: Albert Chu <chu11@llnl.gov> +Date: Tue, 7 Jan 2020 13:48:12 -0800 +Subject: [PATCH 1/7] ipmi-sensors: Fix header guards + +--- a/ipmi-sensors/ipmi-sensors-oem-intel-quanta-qssc-s4r.h ++++ b/ipmi-sensors/ipmi-sensors-oem-intel-quanta-qssc-s4r.h +@@ -17,7 +17,7 @@ + */ + + #ifndef IPMI_SENSORS_OEM_INTEL_QUANTA_QSSC_S4R_H +-#define IPMI_SENSORS_OEM_INTEL_H ++#define IPMI_SENSORS_OEM_INTEL_QUANTA_QSSC_S4R_H + + #include "ipmi-sensors.h" + +--- a/ipmi-sensors/ipmi-sensors-oem-intel-s2600jf.h ++++ b/ipmi-sensors/ipmi-sensors-oem-intel-s2600jf.h +@@ -17,7 +17,7 @@ + */ + + #ifndef IPMI_SENSORS_OEM_INTEL_S2600JF_H +-#define IPMI_SENSORS_OEM_INTEL_H ++#define IPMI_SENSORS_OEM_INTEL_S2600JF_H + + #include "ipmi-sensors.h" + +--- a/ipmi-sensors/ipmi-sensors-oem-intel-s2600wp.h ++++ b/ipmi-sensors/ipmi-sensors-oem-intel-s2600wp.h +@@ -17,7 +17,7 @@ + */ + + #ifndef IPMI_SENSORS_OEM_INTEL_S2600WP_H +-#define IPMI_SENSORS_OEM_INTEL_H ++#define IPMI_SENSORS_OEM_INTEL_S2600WP_H + + #include "ipmi-sensors.h" + +--- a/ipmi-sensors/ipmi-sensors-oem-intel-s5500wb.h ++++ b/ipmi-sensors/ipmi-sensors-oem-intel-s5500wb.h +@@ -17,7 +17,7 @@ + */ + + #ifndef IPMI_SENSORS_OEM_INTEL_S5500WB_H +-#define IPMI_SENSORS_OEM_INTEL_H ++#define IPMI_SENSORS_OEM_INTEL_S5500WB_H + + #include "ipmi-sensors.h" + +From 9cc6f981b55d6aa784788674a5a77c5b970bcabe Mon Sep 17 00:00:00 2001 +From: Albert Chu <chu11@llnl.gov> +Date: Tue, 7 Jan 2020 14:06:27 -0800 +Subject: [PATCH 4/7] libipmiconsole: Move header guard macros to top of file + +--- a/libipmiconsole/ipmiconsole_defs.h ++++ b/libipmiconsole/ipmiconsole_defs.h +@@ -24,6 +24,9 @@ + * with Ipmiconsole. If not, see <http://www.gnu.org/licenses/>. + \*****************************************************************************/ + ++#ifndef IPMICONSOLE_DEFS_H ++#define IPMICONSOLE_DEFS_H ++ + #ifdef HAVE_CONFIG_H + #include "config.h" + #endif /* HAVE_CONFIG_H */ +@@ -54,9 +57,6 @@ + + #include "scbuf.h" + +-#ifndef IPMICONSOLE_DEFS_H +-#define IPMICONSOLE_DEFS_H +- + #ifndef MAXHOSTNAMELEN + #define MAXHOSTNAMELEN 64 + #endif /* MAXHOSTNAMELEN */ +From 14c6e2d373173d06fa3f2148629b4d8bdedec0a2 Mon Sep 17 00:00:00 2001 +From: Albert Chu <chu11@llnl.gov> +Date: Tue, 7 Jan 2020 15:30:39 -0800 +Subject: [PATCH 6/7] libfreeipmi/sel: Add missing functions to header + +--- a/libfreeipmi/sel/ipmi-sel-string-supermicro-common.h ++++ b/libfreeipmi/sel/ipmi-sel-string-supermicro-common.h +@@ -39,4 +39,14 @@ int sel_string_output_supermicro_overheat_event_data1_class_oem (ipmi_sel_ctx_t + unsigned int *wlen, + struct ipmi_sel_system_event_record_data *system_event_record_data); + ++int sel_string_output_supermicro_dimm_event_data2_event_data3 (ipmi_sel_ctx_t ctx, ++ struct ipmi_sel_entry *sel_entry, ++ uint8_t sel_record_type, ++ char *buf, ++ unsigned int buflen, ++ unsigned int flags, ++ unsigned int *wlen, ++ struct ipmi_sel_system_event_record_data *system_event_record_data, ++ int *oem_rv); ++ + #endif /* IPMI_SEL_STRING_SUPERMICRO_COMMON_H */ +From 66cf8d0bb7e47d3360389ce427a6303cc0b63d00 Mon Sep 17 00:00:00 2001 +From: Albert Chu <chu11@llnl.gov> +Date: Tue, 7 Jan 2020 15:32:22 -0800 +Subject: [PATCH 7/7] ipmi-sensors: Add missing header to file + +--- a/ipmi-sensors/ipmi-sensors-oem-intel.c ++++ b/ipmi-sensors/ipmi-sensors-oem-intel.c +@@ -34,6 +34,7 @@ + #include "ipmi-sensors-oem-intel.h" + #include "ipmi-sensors-oem-intel-s5500wb.h" + #include "ipmi-sensors-oem-intel-s2600jf.h" ++#include "ipmi-sensors-oem-intel-s2600wp.h" + #include "ipmi-sensors-oem-intel-quanta-qssc-s4r.h" + #include "ipmi-sensors-oem-intel-node-manager.h" + diff --git a/sys-libs/freeipmi/freeipmi-1.6.10-r1.ebuild b/sys-libs/freeipmi/freeipmi-1.6.10-r1.ebuild new file mode 100644 index 000000000000..db22dec05250 --- /dev/null +++ b/sys-libs/freeipmi/freeipmi-1.6.10-r1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +AT_M4DIR="config" +inherit autotools toolchain-funcs + +DESCRIPTION="Provides Remote-Console and System Management Software as per IPMI v1.5/2.0" +HOMEPAGE="https://www.gnu.org/software/freeipmi/" + +MY_P="${P/_/.}" +[[ ${MY_P} == *.beta* ]] && ALPHA="-alpha" +SRC_URI="mirror://gnu${ALPHA}/${PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" +IUSE="debug nagios without-root" + +RDEPEND="dev-libs/libgcrypt:0=" +DEPEND="${RDEPEND} + virtual/os-headers" +RDEPEND="${RDEPEND} + nagios? ( + || ( net-analyzer/icinga net-analyzer/nagios ) + dev-lang/perl + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.6.10-0001-configure.ac-Fix-Wimplicit-function-declaration-for-.patch + "${FILESDIR}"/${PN}-1.6.10-0002-configure.ac-Fix-detecting-sighandler_t-on-glibc.patch + "${FILESDIR}"/${PN}-1.6.10-0003-configure.ac-Use-AC_USE_SYSTEM_EXTENSIONS-instead-of.patch + "${FILESDIR}"/${P}-header-fixes.patch +) + +src_prepare() { + default + + # Needed for configure.ac patches, drop if/when merged + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable debug) + $(usex without-root --with-dont-check-for-root "") + --disable-static + --disable-init-scripts + --localstatedir="${EPREFIX}"/var + ac_cv_path_CPP_FOR_BUILD="$(tc-getPROG CPP cpp)" + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + # freeipmi by defaults install _all_ commands to /usr/sbin, but + # quite a few can be run remotely as standard user, so move them + # in /usr/bin afterwards. + dodir /usr/bin + local prog + for prog in ipmi{detect,ping,power,console}; do + mv "${ED}"/usr/{s,}bin/${prog} || die + + # The default install symlinks these commands to add a dash + # after the ipmi prefix; we repeat those after move for + # consistency. + rm "${ED}"/usr/sbin/${prog/ipmi/ipmi-} + dosym ${prog} /usr/bin/${prog/ipmi/ipmi-} + done + + # Install the nagios plugin in its proper place, if desired + if use nagios; then + dodir /usr/$(get_libdir)/nagios/plugins + mv "${ED}"/usr/share/doc/${PF}/contrib/nagios/nagios_ipmi_sensors.pl \ + "${ED}"/usr/$(get_libdir)/nagios/plugins/ || die + fperms 0755 /usr/$(get_libdir)/nagios/plugins/nagios_ipmi_sensors.pl + + insinto /etc/icinga/conf.d + newins "${FILESDIR}"/freeipmi.icinga freeipmi-command.cfg + fi + + dodoc AUTHORS ChangeLog* DISCLAIMER* NEWS README* TODO doc/*.txt + + keepdir \ + /var/cache/ipmiseld \ + /var/cache/ipmimonitoringsdrcache \ + /var/lib/freeipmi \ + /var/log/ipmiconsole + + # starting from version 1.2.0 the two daemons are similar enough + newinitd "${FILESDIR}"/bmc-watchdog.initd.4 ipmidetectd + newconfd "${FILESDIR}"/ipmidetectd.confd ipmidetectd + + newinitd "${FILESDIR}"/bmc-watchdog.initd.4 bmc-watchdog + newconfd "${FILESDIR}"/bmc-watchdog.confd bmc-watchdog + + newinitd "${FILESDIR}"/bmc-watchdog.initd.4 ipmiseld + newconfd "${FILESDIR}"/ipmiseld.confd ipmiseld + + find "${ED}" -type f -name "*.la" -delete || die +} |