commit: b18f34b68c3e2e99a3b4472564c519873099f894
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 17 18:35:27 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 18:37:26 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b18f34b6
app-admin/chrpath: add fix for Solaris
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
app-admin/chrpath/chrpath-0.16.ebuild | 1 +
app-admin/chrpath/files/chrpath-0.16-solaris.patch | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/app-admin/chrpath/chrpath-0.16.ebuild
b/app-admin/chrpath/chrpath-0.16.ebuild
index 51137b39303..323e49a75d9 100644
--- a/app-admin/chrpath/chrpath-0.16.ebuild
+++ b/app-admin/chrpath/chrpath-0.16.ebuild
@@ -17,6 +17,7 @@ IUSE="static-libs"
PATCHES=(
"${FILESDIR}"/${P}-multilib.patch
"${FILESDIR}"/${P}-testsuite-1.patch
+ "${FILESDIR}"/${P}-solaris.patch
)
src_prepare() {
diff --git a/app-admin/chrpath/files/chrpath-0.16-solaris.patch
b/app-admin/chrpath/files/chrpath-0.16-solaris.patch
new file mode 100644
index 00000000000..5e1dd1957e8
--- /dev/null
+++ b/app-admin/chrpath/files/chrpath-0.16-solaris.patch
@@ -0,0 +1,19 @@
+protos: add bswap macros for Solaris
+
+--- a/protos.h
++++ b/protos.h
+@@ -1,7 +1,14 @@
+ #ifndef PROTOS_H
+ #define PROTOS_H
+
++#if defined(__sun)
++#include <sys/byteorder.h>
++#define bswap_16(x) BSWAP_16(x)
++#define bswap_32(x) BSWAP_32(x)
++#define bswap_64(x) BSWAP_64(x)
++#else
+ #include <byteswap.h>
++#endif
+ #include <elf.h>
+ #include "config.h"
+