[oe-commits] org.oe.dev perl-native 5.8.8: Fix for building with SSP-modified host gcc's, as

lenehan commit openembedded-commits at lists.openembedded.org
Thu Jun 7 05:26:39 UTC 2007


perl-native 5.8.8: Fix for building with SSP-modified host gcc's, as
requested in bug #1980. Closes #1980.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: 7c5741a3a4f2a7ad883bd3230a46e4c9ebac2106
ViewMTN: http://monotone.openembedded.org/revision.psp?id=7c5741a3a4f2a7ad883bd3230a46e4c9ebac2106
Files:
1
packages/perl/perl-5.8.8/native-ssp.patch
packages/perl/perl-native_5.8.8.bb
Diffs:

#
# mt diff -r48c054bdb6b41b760afa8a343847c539f5ebf826 -r7c5741a3a4f2a7ad883bd3230a46e4c9ebac2106
#
# 
# 
# add_file "packages/perl/perl-5.8.8/native-ssp.patch"
#  content [4c615884d98871a7a8c0e32556ada8193f43bce5]
# 
# patch "packages/perl/perl-native_5.8.8.bb"
#  from [e9ee05100dabfbe3bc15ebb347c19860a472f457]
#    to [c0743df758d0d39ece2b86e2f02407860b131a37]
# 
============================================================
--- packages/perl/perl-5.8.8/native-ssp.patch	4c615884d98871a7a8c0e32556ada8193f43bce5
+++ packages/perl/perl-5.8.8/native-ssp.patch	4c615884d98871a7a8c0e32556ada8193f43bce5
@@ -0,0 +1,14 @@
+Fix for compiling with ssp enabled gcc:
+See http://bugs.openembedded.org/show_bug.cgi?id=1980
+
+diff -Naur perl-5.8.7.orig/cflags.SH perl-5.8.7/cflags.SH
+--- perl-5.8.7.orig/cflags.SH	2002-09-30 10:59:07.000000000 +0000
++++ perl-5.8.7/cflags.SH	2005-10-02 04:08:39.000000000 +0000
+@@ -165,6 +165,8 @@
+ esac
+ 
+     : Can we perhaps use $ansi2knr here
++    [[ $file == regcomp ]] && export ccflags="${ccflags} -fno-stack-protector"
++    [[ $file == regexec ]] && export ccflags="${ccflags} -fno-stack-protector"
+     echo "$cc -c -DPERL_CORE $ccflags $optimize $warn"
+     eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $warn"'
============================================================
--- packages/perl/perl-native_5.8.8.bb	e9ee05100dabfbe3bc15ebb347c19860a472f457
+++ packages/perl/perl-native_5.8.8.bb	c0743df758d0d39ece2b86e2f02407860b131a37
@@ -1,9 +1,9 @@ DEPENDS = "virtual/db-native gdbm-native
 DESCRIPTION = "Perl is a popular scripting language."
 HOMEPAGE = "http://www.perl.org/"
 SECTION = "libs"
 LICENSE = "Artistic|GPL"
 DEPENDS = "virtual/db-native gdbm-native"
-PR = "r10"
+PR = "r11"
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}"
 
@@ -14,7 +14,8 @@ SRC_URI = "http://ftp.funet.fi/pub/CPAN/
            file://native-nopacklist.patch;patch=1 \
            file://native-no-gdbminc.patch;patch=1 \
            file://native-perlinc.patch;patch=1 \
-           file://native-makedepend-dash.patch;patch=1"
+           file://native-makedepend-dash.patch;patch=1 \
+           file://native-ssp.patch;patch=1"
 
 S = "${WORKDIR}/perl-${PV}"
 






More information about the Openembedded-commits mailing list