diff options
author | Mike Frysinger <vapier@gentoo.org> | 2017-01-19 07:26:46 -0600 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2017-01-19 08:13:36 -0600 |
commit | b55ca97697d55f208cf0bfd76790833daf247cac (patch) | |
tree | 5740118214ee3087ffbac58a36393807c58bd35f /app-emulation/ski | |
parent | app-emulation/ski: drop old <1.3.2-r1 versions (diff) | |
download | gentoo-b55ca97697d55f208cf0bfd76790833daf247cac.tar.gz gentoo-b55ca97697d55f208cf0bfd76790833daf247cac.tar.bz2 gentoo-b55ca97697d55f208cf0bfd76790833daf247cac.zip |
app-emulation/ski: add Fedora patch to fix building w/newer glibc #592226
Diffstat (limited to 'app-emulation/ski')
-rw-r--r-- | app-emulation/ski/files/ski-1.3.2-uselib.patch | 18 | ||||
-rw-r--r-- | app-emulation/ski/ski-1.3.2-r1.ebuild | 1 |
2 files changed, 19 insertions, 0 deletions
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 000000000000..d600cb2ce3fa --- /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 d7362333d458..44caa276437b 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() { |