commit:     b55ca97697d55f208cf0bfd76790833daf247cac
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 19 13:26:46 2017 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Jan 19 14:13:36 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b55ca976

app-emulation/ski: add Fedora patch to fix building w/newer glibc #592226

 app-emulation/ski/files/ski-1.3.2-uselib.patch | 18 ++++++++++++++++++
 app-emulation/ski/ski-1.3.2-r1.ebuild          |  1 +
 2 files changed, 19 insertions(+)

diff --git a/app-emulation/ski/files/ski-1.3.2-uselib.patch 
b/app-emulation/ski/files/ski-1.3.2-uselib.patch
new file mode 100644
index 00000000..d600cb2
--- /dev/null
+++ b/app-emulation/ski/files/ski-1.3.2-uselib.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/592226
+
+patch taken from Fedora
+
+glibc-2.23+ no longer exports the uselib function.  make the syscall directly.
+
+--- ski-1.3.2/src/linux/syscall-linux.c
++++ ski-1.3.2/src/linux/syscall-linux.c
+@@ -554,7 +554,8 @@
+ extern void munmapSyms (ADDR, ADDR);
+ extern void dynBlock (ADDR, ADDR);
+ extern void memFree (ADDR);
+-extern int uselib (const char *libname);      /* Linux specific */
++#include <sys/syscall.h>
++#define uselib(libname) syscall(__NR_uselib, libname)
+ 
+ extern int setresuid (uid_t, uid_t, uid_t);
+ extern int getresuid (uid_t *, uid_t *, uid_t *);

diff --git a/app-emulation/ski/ski-1.3.2-r1.ebuild 
b/app-emulation/ski/ski-1.3.2-r1.ebuild
index d736233..44caa27 100644
--- a/app-emulation/ski/ski-1.3.2-r1.ebuild
+++ b/app-emulation/ski/ski-1.3.2-r1.ebuild
@@ -36,6 +36,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-AC_C_BIGENDIAN.patch
        "${FILESDIR}"/${P}-configure-withval.patch
        "${FILESDIR}"/${P}-binutils.patch
+       "${FILESDIR}"/${P}-uselib.patch #592226
 )
 
 src_prepare() {

Reply via email to