diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-11-06 07:59:52 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-11-06 07:59:52 +0000 |
commit | c6ac9bc844a06fea1653385a3874ed2cd29e1410 (patch) | |
tree | 367e9fb0f606c4744061dd21f753cb06e79870a0 /sys-libs/slang | |
parent | clean up deps, docs; fix install (bug #69518); error message for emake (diff) | |
download | historical-c6ac9bc844a06fea1653385a3874ed2cd29e1410.tar.gz historical-c6ac9bc844a06fea1653385a3874ed2cd29e1410.tar.bz2 historical-c6ac9bc844a06fea1653385a3874ed2cd29e1410.zip |
Added a patch to remove glibc specific calls. Thanks to Peter S. Mazinger <ps.m@gmx.net>; bug #67666. Fixed compilation on ppc-macos and LICENSE syntax.
Diffstat (limited to 'sys-libs/slang')
-rw-r--r-- | sys-libs/slang/ChangeLog | 9 | ||||
-rw-r--r-- | sys-libs/slang/Manifest | 18 | ||||
-rw-r--r-- | sys-libs/slang/files/slang-1.4.9-fsuid.patch | 35 | ||||
-rw-r--r-- | sys-libs/slang/files/slang-1.4.9.patch | 44 | ||||
-rw-r--r-- | sys-libs/slang/slang-1.4.9-r1.ebuild | 12 |
5 files changed, 65 insertions, 53 deletions
diff --git a/sys-libs/slang/ChangeLog b/sys-libs/slang/ChangeLog index e197bfa9ec5e..11cc30226a18 100644 --- a/sys-libs/slang/ChangeLog +++ b/sys-libs/slang/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-libs/slang # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/ChangeLog,v 1.37 2004/10/26 10:23:39 slarti Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/ChangeLog,v 1.38 2004/11/06 07:59:52 usata Exp $ + + 06 Nov 2004; Mamoru KOMACHI <usata@gentoo.org> + files/slang-1.4.9-fsuid.patch, files/slang-1.4.9.patch, + slang-1.4.9-r1.ebuild: + Added a patch to remove glibc specific calls. Thanks to Peter S. Mazinger + <ps.m@gmx.net>; bug #67666. Fixed compilation on ppc-macos and LICENSE + syntax. 26 Oct 2004; Tom Martin <slarti@gentoo.org> slang-1.4.9-r1.ebuild: Stable on amd64. diff --git a/sys-libs/slang/Manifest b/sys-libs/slang/Manifest index 92324312fc67..6eda07f90194 100644 --- a/sys-libs/slang/Manifest +++ b/sys-libs/slang/Manifest @@ -1,20 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 c2f4d54b5e00765874ba216692db12c6 ChangeLog 4772 MD5 d24403622d172658c4e564baec674de9 metadata.xml 281 -MD5 793b29b66fd61563e3c3e75a98e5a53d slang-1.4.9-r1.ebuild 1646 +MD5 d9b91429bd94cfd149d2e44574ce938f slang-1.4.9-r1.ebuild 1800 +MD5 558ff31be441f8b73f8d84b858b10480 ChangeLog 5063 MD5 11daf6d137e1d6ec0e3475e55522cd06 files/slang-1.4.9-autoconf.patch 4143 -MD5 5617c722a455c1aa405c699ff361bd58 files/slang-1.4.9.patch 1808 +MD5 7ba45dd45645107adc167e543634b8eb files/slang-1.4.9-fsuid.patch 1661 MD5 074ddbf39cb8b9708ca9de2b1fb24366 files/digest-slang-1.4.9-r1 64 -MD5 007cb225c11034b59197bdb5d507aa84 files/slang-1.4.9-fsuid.patch 808 +MD5 7f9b0cb76e754575d54b6ea8f5de59f4 files/slang-1.4.9.patch 1367 MD5 e2ddc20bfbb1ac10becb53e1707b067c files/slang-debian-utf8.patch 21377 MD5 3531d8ba2b07b43cf6d758815200bfa9 files/slang-utf8-acs.patch 14366 MD5 4be647282e8c01060db9d1707098bd1d files/slang-utf8-fix.patch 855 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.9.10 (GNU/Linux) - -iD8DBQFBit04HTu7gpaalycRAvVNAKDynTiLdy4W9YHn6X28vHcwq+4cHgCeIJfE -QpF1zbFBRcWhWiMPhlLyBvI= -=oCib ------END PGP SIGNATURE----- diff --git a/sys-libs/slang/files/slang-1.4.9-fsuid.patch b/sys-libs/slang/files/slang-1.4.9-fsuid.patch index 23c8e1fa66f1..c7c38c756e37 100644 --- a/sys-libs/slang/files/slang-1.4.9-fsuid.patch +++ b/sys-libs/slang/files/slang-1.4.9-fsuid.patch @@ -29,3 +29,38 @@ +#endif + #endif /* _SLANG_INCLUDE_H_ */ +--- src/sltermin.c ++++ src/sltermin.c +@@ -105,7 +105,32 @@ + * I will also look into the use of setreuid, seteuid and setregid, setegid. + * FIXME: Priority=medium + */ ++ /* If your system lacks setfsuid/getfsuid either write ++ equivalent support or dont use slang to build setuid/setgid ++ apps like Mutt */ ++ ++ if(setfsuid(getuid())==-1) ++ { ++ perror("setfsuid"); ++ return NULL; ++ } ++ if(setfsgid(getgid())==-1) ++ { ++ perror("setfsgid"); ++ return NULL; ++ } + fp = fopen (file, "rb"); ++ if(setfsuid(geteuid())==-1) ++ { ++ perror("setfsuid"); ++ return NULL; ++ } ++ if(setfsgid(getegid())==-1) ++ { ++ perror("setfsgid"); ++ return NULL; ++ } ++ + if (fp == NULL) return NULL; + + if ((12 == fread ((char *) buf, 1, 12, fp) && (MAGIC == make_integer (buf)))) diff --git a/sys-libs/slang/files/slang-1.4.9.patch b/sys-libs/slang/files/slang-1.4.9.patch index ea32f46be479..05da2f74664c 100644 --- a/sys-libs/slang/files/slang-1.4.9.patch +++ b/sys-libs/slang/files/slang-1.4.9.patch @@ -35,38 +35,14 @@ } #ifdef VMS ---- src/sltermin.c -+++ src/sltermin.c -@@ -105,7 +105,32 @@ - * I will also look into the use of setreuid, seteuid and setregid, setegid. - * FIXME: Priority=medium - */ -+ /* If your system lacks setfsuid/getfsuid either write -+ equivalent support or dont use slang to build setuid/setgid -+ apps like Mutt */ -+ -+ if(setfsuid(getuid())==-1) -+ { -+ perror("setfsuid"); -+ return NULL; -+ } -+ if(setfsgid(getgid())==-1) -+ { -+ perror("setfsgid"); -+ return NULL; -+ } - fp = fopen (file, "rb"); -+ if(setfsuid(geteuid())==-1) -+ { -+ perror("setfsuid"); -+ return NULL; -+ } -+ if(setfsgid(getegid())==-1) -+ { -+ perror("setfsgid"); -+ return NULL; -+ } -+ - if (fp == NULL) return NULL; +--- src/slmisc.c.mps 2003-03-23 08:06:40.000000000 +0100 ++++ src/slmisc.c 2004-09-17 12:28:44.000000000 +0200 +@@ -565,7 +565,7 @@ + return (int) SLatol (s); + } - if ((12 == fread ((char *) buf, 1, 12, fp) && (MAGIC == make_integer (buf)))) +-#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2) ++#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2) && !defined(__UCLIBC__) + extern int __libc_enable_secure; + # define HAVE___LIBC_ENABLE_SECURE 1 + #endif diff --git a/sys-libs/slang/slang-1.4.9-r1.ebuild b/sys-libs/slang/slang-1.4.9-r1.ebuild index 999413dedc55..2e2c8342282b 100644 --- a/sys-libs/slang/slang-1.4.9-r1.ebuild +++ b/sys-libs/slang/slang-1.4.9-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-1.4.9-r1.ebuild,v 1.15 2004/11/05 01:53:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-1.4.9-r1.ebuild,v 1.16 2004/11/06 07:59:52 usata Exp $ inherit eutils @@ -11,7 +11,7 @@ DESCRIPTION="Console display library used by most text viewer" HOMEPAGE="http://space.mit.edu/~davis/slang/" SRC_URI="ftp://space.mit.edu/pub/davis/slang/v1.4/${P}.tar.bz2" -LICENSE="GPL-2 | Artistic" +LICENSE="|| ( GPL-2 Artistic )" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 ppc-macos s390 sparc x86" IUSE="cjk unicode" @@ -23,7 +23,7 @@ src_unpack() { cd ${S} epatch ${FILESDIR}/${P}.patch - epatch ${FILESDIR}/${P}-fsuid.patch + use ppc-macos || epatch ${FILESDIR}/${P}-fsuid.patch epatch ${FILESDIR}/${P}-autoconf.patch if use unicode ; then epatch ${FILESDIR}/slang-debian-utf8.patch @@ -44,7 +44,11 @@ src_compile() { src_install() { make install install-elf DESTDIR=${D} || die "make install failed" - chmod a+rx "${D}"/usr/$(get_libdir)/libslang.so.* + if use ppc-macos ; then + chmod a+rx "${D}"/usr/$(get_libdir)/libslang*dylib || die "chmod failed" + else + chmod a+rx "${D}"/usr/$(get_libdir)/libslang.so.* || die "chmod failed" + fi if use unicode ; then for i in ${D}/usr/$(get_libdir)/libslang-utf8* ; do |