summaryrefslogtreecommitdiff
path: root/sys-apps/ibm-powerpc-utils
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/ibm-powerpc-utils')
-rw-r--r--sys-apps/ibm-powerpc-utils/Manifest5
-rw-r--r--sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.3.8-musl.patch95
-rw-r--r--sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.3.8-r1.ebuild3
-rw-r--r--sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-99999.ebuild3
4 files changed, 102 insertions, 4 deletions
diff --git a/sys-apps/ibm-powerpc-utils/Manifest b/sys-apps/ibm-powerpc-utils/Manifest
index 97aa830b66b0..6341dc049642 100644
--- a/sys-apps/ibm-powerpc-utils/Manifest
+++ b/sys-apps/ibm-powerpc-utils/Manifest
@@ -1,5 +1,6 @@
AUX ibm-powerpc-utils-1.3.5-docdir.patch 265 BLAKE2B 2ec9b24404a6e6c78a75a8a29a002eba6b30180883a3cc0ebd3610d202188ec6aabfd2830eacf42f9e8c57c961f6aa097a12bcc92d04fd85ade63e3ef083257f SHA512 69a6545e1e29778d4ea31c7bc90be678b8f78c1d897f6bfa9a2f8ed3b223d4b5894663ffb10dc409c334754152c1f28a0c0d7a1991c65186488116a1cd983aa8
+AUX ibm-powerpc-utils-1.3.8-musl.patch 2488 BLAKE2B 8ee9e9fba42a5ff06bed9372a4e9de1da1a63a4f8c585a6a942b4b4447a010807d85c47ce7fe3abaa9463386addd08aceb3286c4240b0500ddc8e0483fc4ee80 SHA512 6f28e6e2d5d5cf55e3a1bbedfe8ccb56b3a63f50fe6dbd18c665b1b8324b9c381fea2cdda8629ab8b8b19fb5bdf1e0fffe44d4e318aba5eb392fb858e8a685c8
DIST ibm-powerpc-utils-1.3.8.tar.gz 355931 BLAKE2B cb1756640962f55eead8556abb714f938a066d9c63e990ee6467ecdb032eac7058ce8715dc8b8d403e3c03efe98a7af0c7d560158258e7097300befbb04f8472 SHA512 7c9057131315d8fac6154c410562d9cd1807f76241bcc190566ece05b0ddd2ddbe1097749b7e644ccc9691641d40460a877368162e9b951fe790f53f638f635e
-EBUILD ibm-powerpc-utils-1.3.8-r1.ebuild 724 BLAKE2B 1c0cb5e5e4120b04494ac741f73ed4f77cbbc1c49efa130cab673d74eb11259e66e7ff629003093c713394b4f044185a758f6fae9eb5e7b49c4741f3c46ab9a2 SHA512 d6416c359d4bd3b4f8a95a916682b7179f7d1b59e6608caacb8b6b3ab789ad75b8aa6ae87f8603d74fb7e645c51cd5c50e41584c086e256f6c6240380d495f83
-EBUILD ibm-powerpc-utils-99999.ebuild 641 BLAKE2B feb6ca74ef399c2092506c29bda423e11e499f635c30f07d03ec575a0e8651d9c781b48b579ff68dd9283ba95e04c91577c860bd45b4054fa3f84ba094984f7d SHA512 6a35509dc65fd43f3a5af9b2e7b4826740e847b52b2d5d5e231767496e1257b3f1e3e57972ae4262d9f9572148752369efc07f717cca24680a0f848bb0eb650b
+EBUILD ibm-powerpc-utils-1.3.8-r1.ebuild 755 BLAKE2B 8b2f64a4590b6f1474ee9894945aa518d9f18a9c65fb5c209521e43df2181f89ade4f53d3283c8ce132af68bee8c4c2487d9c6698457a7bff552dfe8c81ba99b SHA512 48c5e3d40d875feb58be836e83bb553aced8b8f1e64c07d84d4b3c161d7f648e38bacbc335aa13c0a5b98d1ce69df1027c54e6b903e17584429a67d467dcc672
+EBUILD ibm-powerpc-utils-99999.ebuild 681 BLAKE2B cf4a5aa3259b5bd23f890f5466ce2e301b82a1644e657e8f7fd0992129013dcbec517c74470f393fb0e4401cce054796b89a24c1396a139af18ecc141c51361f SHA512 036baad817077a1c6100cac9198b6563caffe8aae003d00845164e4dd7bedc29b0e4ac46e81575831460de69121dab8a9575077b68673846236c7fe847396c2e
MISC metadata.xml 445 BLAKE2B 959df80121329addf838d5f9e087b0f325cfb7103e961089bbe019f6222ab43ebeb097280e57ff88baafd3b0bec5943158beb1e258e892f0dd5794653f8d4516 SHA512 8b125cee61a590d597b86ad8cb744725c8fff2cb2e5606ca9db69492dec4ff8ae4b1aa37b438e332ccea15be76834890ca835d6d18a652b043c30158e20302e3
diff --git a/sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.3.8-musl.patch b/sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.3.8-musl.patch
new file mode 100644
index 000000000000..5357e5fdcef3
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.3.8-musl.patch
@@ -0,0 +1,95 @@
+From ec0eb99a402ff9371965c2c8726bc400674215b7 Mon Sep 17 00:00:00 2001
+From: Fabian Groffen <grobian@gentoo.org>
+Date: Fri, 21 May 2021 11:25:21 +0200
+Subject: [PATCH] add includes/defines for musl libc support
+
+- add some missing includes to get proper definitions for beXXtoh and
+ PATH_MAX
+- guard backtrace() from execinfo.h usage for it is glibc only
+
+PR: https://github.com/ibm-power-utilities/powerpc-utils/pull/63
+Signed-off-by: Fabian Groffen <grobian@gentoo.org>
+---
+ src/common/cpu_info_helpers.c | 1 +
+ src/drmgr/common.c | 6 ++++++
+ src/drmgr/dr.h | 1 +
+ src/rtas_dbg.c | 1 +
+ 4 files changed, 9 insertions(+)
+
+diff --git a/src/common/cpu_info_helpers.c b/src/common/cpu_info_helpers.c
+index 3d08ff7..925f220 100644
+--- a/src/common/cpu_info_helpers.c
++++ b/src/common/cpu_info_helpers.c
+@@ -29,6 +29,7 @@
+ #include <errno.h>
+ #include <stdbool.h>
+ #include <dirent.h>
++#include <limits.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include "cpu_info_helpers.h"
+diff --git a/src/drmgr/common.c b/src/drmgr/common.c
+index 5e8135b..32cf805 100644
+--- a/src/drmgr/common.c
++++ b/src/drmgr/common.c
+@@ -28,7 +28,9 @@
+ #include <signal.h>
+ #include <errno.h>
+ #include <dirent.h>
++#ifdef __GLIBC__
+ #include <execinfo.h>
++#endif
+ #include <ctype.h>
+ #include <sys/wait.h>
+ #include <endian.h>
+@@ -853,6 +855,7 @@ sighandler(int signo)
+ say(ERROR, "Received signal %d, attempting to cleanup and exit\n",
+ signo);
+
++#ifdef __GLIBC__
+ if (log_fd) {
+ void *callstack[128];
+ int sz;
+@@ -860,6 +863,7 @@ sighandler(int signo)
+ sz = backtrace(callstack, 128);
+ backtrace_symbols_fd(callstack, sz, log_fd);
+ }
++#endif
+
+ dr_fini();
+ exit(-1);
+@@ -925,8 +929,10 @@ sig_setup(void)
+ if (sigaction(SIGBUS, &sigact, NULL))
+ return -1;
+
++#ifdef __GLIBC__
+ /* dummy call to backtrace to get symbol loaded */
+ backtrace(callstack, 128);
++#endif
+ return 0;
+ }
+
+diff --git a/src/drmgr/dr.h b/src/drmgr/dr.h
+index f171bfe..b32d49a 100644
+--- a/src/drmgr/dr.h
++++ b/src/drmgr/dr.h
+@@ -26,6 +26,7 @@
+ #include <nl_types.h>
+ #include <unistd.h>
+ #include <stdarg.h>
++#include <limits.h>
+ #include "rtas_calls.h"
+ #include "drpci.h"
+
+diff --git a/src/rtas_dbg.c b/src/rtas_dbg.c
+index 526e78b..ebc7474 100644
+--- a/src/rtas_dbg.c
++++ b/src/rtas_dbg.c
+@@ -32,6 +32,7 @@
+ #include <getopt.h>
+ #include <dirent.h>
+ #include <string.h>
++#include <endian.h>
+ #include <sys/syscall.h>
+ #include <unistd.h>
+ #include <linux/unistd.h>
diff --git a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.3.8-r1.ebuild b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.3.8-r1.ebuild
index d828529d9685..01005efd85fb 100644
--- a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.3.8-r1.ebuild
+++ b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.3.8-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -22,6 +22,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-1.3.5-docdir.patch
+ "${FILESDIR}"/${P}-musl.patch
)
src_prepare() {
diff --git a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-99999.ebuild b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-99999.ebuild
index b6e7ae3be805..d4d181b373a4 100644
--- a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-99999.ebuild
+++ b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-99999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -20,6 +20,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-1.3.5-docdir.patch
+ "${FILESDIR}"/${P}-musl.patch # PR #63
)
src_prepare() {