diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-09-21 10:08:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-09-21 10:08:48 +0000 |
commit | 7fcb9b4c26c4d6332de3b6f4d10092b5e9c734f3 (patch) | |
tree | 94f7f461b90976e65fd8637a6282da01e5cf29e1 /app-arch/zip | |
parent | old (diff) | |
download | gentoo-2-7fcb9b4c26c4d6332de3b6f4d10092b5e9c734f3.tar.gz gentoo-2-7fcb9b4c26c4d6332de3b6f4d10092b5e9c734f3.tar.bz2 gentoo-2-7fcb9b4c26c4d6332de3b6f4d10092b5e9c734f3.zip |
Version bump #237141 by Conrad Kostecki.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.2 x86_64)
Diffstat (limited to 'app-arch/zip')
-rw-r--r-- | app-arch/zip/ChangeLog | 9 | ||||
-rw-r--r-- | app-arch/zip/files/zip-3.0-build.patch | 36 | ||||
-rw-r--r-- | app-arch/zip/files/zip-3.0-exec-stack.patch | 22 | ||||
-rw-r--r-- | app-arch/zip/files/zip-3.0-pic.patch | 15 | ||||
-rw-r--r-- | app-arch/zip/zip-3.0.ebuild | 48 |
5 files changed, 129 insertions, 1 deletions
diff --git a/app-arch/zip/ChangeLog b/app-arch/zip/ChangeLog index 62100807ec19..1ec46ed2e4f4 100644 --- a/app-arch/zip/ChangeLog +++ b/app-arch/zip/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-arch/zip # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/zip/ChangeLog,v 1.74 2008/03/17 16:06:43 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/zip/ChangeLog,v 1.75 2008/09/21 10:08:47 vapier Exp $ + +*zip-3.0 (21 Sep 2008) + + 21 Sep 2008; Mike Frysinger <vapier@gentoo.org> + +files/zip-3.0-build.patch, +files/zip-3.0-exec-stack.patch, + +files/zip-3.0-pic.patch, +zip-3.0.ebuild: + Version bump #237141 by Conrad Kostecki. 17 Mar 2008; Jeroen Roovers <jer@gentoo.org> zip-2.32-r1.ebuild: Stable for HPPA (bug #213585). diff --git a/app-arch/zip/files/zip-3.0-build.patch b/app-arch/zip/files/zip-3.0-build.patch new file mode 100644 index 000000000000..595303cc48d4 --- /dev/null +++ b/app-arch/zip/files/zip-3.0-build.patch @@ -0,0 +1,36 @@ +respect build environment settings + +--- zip/unix/configure ++++ zip/unix/configure +@@ -18,7 +18,7 @@ + + CC=${1-cc} + CFLAGS=${2-"-I. -DUNIX"} +-LFLAGS1='' ++LFLAGS1="${LDFLAGS}" + LFLAGS2='' + LN="ln -s" + +@@ -118,7 +118,7 @@ _EOF_ + fi + + # optimization flags +-if test -n "${CFLAGS_OPT}"; then ++if false; then + CFLAGS="${CFLAGS} ${CFLAGS_OPT}" + CFLAGS_BZ="${CFLAGS_BZ} ${CFLAGS_OPT}" + fi +@@ -220,13 +220,6 @@ fi + echo Check for the C preprocessor + # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp. + CPP="${CC} -E" +-# solaris as(1) needs -P, maybe others as well ? +-[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P" +-[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp +-[ -f /lib/cpp ] && CPP=/lib/cpp +-[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp +-[ -f /xenix ] && CPP="${CC} -E" +-[ -f /lynx.os ] && CPP="${CC} -E" + + echo "#include <stdio.h>" > conftest.c + $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E" diff --git a/app-arch/zip/files/zip-3.0-exec-stack.patch b/app-arch/zip/files/zip-3.0-exec-stack.patch new file mode 100644 index 000000000000..80719c961298 --- /dev/null +++ b/app-arch/zip/files/zip-3.0-exec-stack.patch @@ -0,0 +1,22 @@ +add proper GNU stack markings so we dont get the default: executable + +--- zip-2.31/crc_i386.S ++++ zip-2.31/crc_i386.S +@@ -238,3 +238,7 @@ + #endif /* i386 || _i386 || _I386 || __i386 */ + + #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */ ++ ++#if defined __ELF__ && defined __linux__ ++.section .note.GNU-stack,"",@progbits ++#endif +--- zip-2.31/match.S ++++ zip-2.31/match.S +@@ -405,3 +405,7 @@ + #endif /* i386 || _I386 || _i386 || __i386 */ + + #endif /* !USE_ZLIB */ ++ ++#if defined __ELF__ && defined __linux__ ++.section .note.GNU-stack,"",@progbits ++#endif diff --git a/app-arch/zip/files/zip-3.0-pic.patch b/app-arch/zip/files/zip-3.0-pic.patch new file mode 100644 index 000000000000..b4c53de694f7 --- /dev/null +++ b/app-arch/zip/files/zip-3.0-pic.patch @@ -0,0 +1,15 @@ +if our toolchain generates PIC by default, then do not use the hand written +assembly files as none of it is PIC friendly. + +--- unix/configure ++++ unix/configure +@@ -29,6 +29,9 @@ + echo Check if we can use asm code + OBJA="" + OCRCU8="" ++piclib="$(echo | $CPP -dM $CFLAGS - | grep -i __pic__)" ++echo "Checking if compiler wants to create pic code" ++[ "$piclib" == "" ] && \ + if eval "$CPP match.S > _match.s 2>/dev/null"; then + if test ! -s _match.s || grep error < _match.s > /dev/null; then + : diff --git a/app-arch/zip/zip-3.0.ebuild b/app-arch/zip/zip-3.0.ebuild new file mode 100644 index 000000000000..2854720226c1 --- /dev/null +++ b/app-arch/zip/zip-3.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/zip/zip-3.0.ebuild,v 1.1 2008/09/21 10:08:47 vapier Exp $ + +inherit toolchain-funcs eutils flag-o-matic + +MY_P="${PN}${PV//.}" +DESCRIPTION="Info ZIP (encryption support)" +HOMEPAGE="http://www.info-zip.org/" +SRC_URI="mirror://sourceforge/infozip/${MY_P}.zip" + +LICENSE="Info-ZIP" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="bzip2 crypt unicode" + +DEPEND="bzip2? ( app-arch/bzip2 )" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-3.0-pic.patch + epatch "${FILESDIR}"/${PN}-3.0-exec-stack.patch + epatch "${FILESDIR}"/${PN}-3.0-build.patch +} + +src_compile() { + use bzip2 || append-flags -DNO_BZIP2_SUPPORT + use crypt || append-flags -DNO_CRYPT + use unicode || append-flags -DNO_UNICODE_SUPPORT + emake \ + CC="$(tc-getCC)" \ + LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" \ + -f unix/Makefile generic \ + || die +} + +src_install() { + dobin zip zipnote zipsplit || die + doman man/zip{,note,split}.1 + if use crypt ; then + dobin zipcloak || die + doman man/zipcloak.1 + fi + dodoc BUGS CHANGES README* TODO WHATSNEW WHERE proginfo/*.txt +} |