Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Mike Frysinger (vapier)" <vapier@g.o>
Subject: gentoo-x86 commit in app-arch/zip/files: zip-3.0-pic.patch zip-3.0-build.patch zip-3.0-exec-stack.patch
Date: Sun, 21 Sep 2008 10:08:48 +0000
vapier      08/09/21 10:08:48

  Added:                zip-3.0-pic.patch zip-3.0-build.patch
                        zip-3.0-exec-stack.patch
  Log:
  Version bump #237141 by Conrad Kostecki.
  (Portage version: 2.2_rc8/cvs/Linux 2.6.26.2 x86_64)

Revision  Changes    Path
1.1                  app-arch/zip/files/zip-3.0-pic.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/zip/files/zip-3.0-pic.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/zip/files/zip-3.0-pic.patch?rev=1.1&content-type=text/plain

Index: zip-3.0-pic.patch
===================================================================
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
     :



1.1                  app-arch/zip/files/zip-3.0-build.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/zip/files/zip-3.0-build.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/zip/files/zip-3.0-build.patch?rev=1.1&content-type=text/plain

Index: zip-3.0-build.patch
===================================================================
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"



1.1                  app-arch/zip/files/zip-3.0-exec-stack.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/zip/files/zip-3.0-exec-stack.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/zip/files/zip-3.0-exec-stack.patch?rev=1.1&content-type=text/plain

Index: zip-3.0-exec-stack.patch
===================================================================
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





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in app-arch/zip: ChangeLog zip-3.0.ebuild
Next by thread:
gentoo-x86 commit in sys-devel/prelink: prelink-20050314.ebuild prelink-20061201.ebuild prelink-20050610.ebuild prelink-20050901.ebuild prelink-20060213.ebuild
Previous by date:
gentoo-x86 commit in app-arch/zip: ChangeLog zip-3.0.ebuild
Next by date:
gentoo-x86 commit in sys-devel/prelink: prelink-20050314.ebuild prelink-20061201.ebuild prelink-20050610.ebuild prelink-20050901.ebuild prelink-20060213.ebuild


Updated May 09, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.