summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-12-01 10:34:25 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 23:27:10 +0000
commitef010c1a1d823870aba80152fc13c32c62e95146 (patch)
treea7ce0de895c6e09cd900f20fb6920eb64aae0b00 /meta/recipes-devtools/perl
parent2cdaa0c493b61b73cbc3e53dc0b6ea6b510f2dad (diff)
downloadpoky-ef010c1a1d823870aba80152fc13c32c62e95146.tar.gz
perl-native: Remove usage of -fstack-protector=strong
Some distributions (like opensuse421) supported by the project comes with older gcc releases, -fstack-protector=strong is supported by GCC>=4.9. This causes a build failure when install perl-native from a sstate that comes from a machine supporting -fstack-protector=strong [1]. So disable usage of this flag in perl-native builds, this patch could be removed when all supported distros comes with GCC>=4.9. [YOCTO #10338] [1] http://errors.yoctoproject.org/Errors/Details/109589/ (From OE-Core rev: 37fd073526811dee6edcfbb78a1864dd37991f4d) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl')
-rw-r--r--meta/recipes-devtools/perl/perl-native_5.24.1.bb1
-rw-r--r--meta/recipes-devtools/perl/perl/0001-Configure-Remove-fstack-protector-strong-for-native-.patch103
2 files changed, 104 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-native_5.24.1.bb b/meta/recipes-devtools/perl/perl-native_5.24.1.bb
index d111bcdd42..896a379db6 100644
--- a/meta/recipes-devtools/perl/perl-native_5.24.1.bb
+++ b/meta/recipes-devtools/perl/perl-native_5.24.1.bb
@@ -11,6 +11,7 @@ SRC_URI += "\
11 file://debian/errno_ver.diff \ 11 file://debian/errno_ver.diff \
12 file://dynaloaderhack.patch \ 12 file://dynaloaderhack.patch \
13 file://perl-PathTools-don-t-filter-out-blib-from-INC.patch \ 13 file://perl-PathTools-don-t-filter-out-blib-from-INC.patch \
14 file://0001-Configure-Remove-fstack-protector-strong-for-native-.patch \
14 " 15 "
15 16
16SRC_URI[md5sum] = "af6a84c7c3e2b8b269c105a5db2f6d53" 17SRC_URI[md5sum] = "af6a84c7c3e2b8b269c105a5db2f6d53"
diff --git a/meta/recipes-devtools/perl/perl/0001-Configure-Remove-fstack-protector-strong-for-native-.patch b/meta/recipes-devtools/perl/perl/0001-Configure-Remove-fstack-protector-strong-for-native-.patch
new file mode 100644
index 0000000000..7391ac5837
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/0001-Configure-Remove-fstack-protector-strong-for-native-.patch
@@ -0,0 +1,103 @@
1Some distributions (like opensuse421) supported by the project
2comes with older gcc releases, -fstack-protector=strong is supported
3by GCC>=4.9.
4
5This causes a build failure when install perl-native from a sstate that
6comes from a machine supporting -fstack-protector=strong [1].
7
8So disable usage of this flag in perl-native builds, this patch could
9be removed when all supported distros comes with GCC>=4.9.
10
11[YOCTO #10338]
12
13Upstream-status: Inappropriate [configuration]
14
15[1] http://errors.yoctoproject.org/Errors/Details/109589/
16
17Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
18---
19 Configure | 54 ------------------------------------------------------
20 1 file changed, 54 deletions(-)
21
22diff --git a/Configure b/Configure
23index efbdcfd..d5bd98c 100755
24--- a/Configure
25+++ b/Configure
26@@ -5468,30 +5468,6 @@ default|recommended)
27 eval $checkccflag
28 ;;
29 esac
30-
31- # on x86_64 (at least) we require an extra library (libssp) in the
32- # link command line. This library is not named, so I infer that it is
33- # an implementation detail that may change. Hence the safest approach
34- # is to add the flag to the flags passed to the compiler at link time,
35- # as that way the compiler can do the right implementation dependant
36- # thing. (NWC)
37- case "$osname" in
38- amigaos) ;; # -fstack-protector builds but doesn't work
39- *) case "$gccversion" in
40- ?*) set stack-protector-strong -fstack-protector-strong
41- eval $checkccflag
42- case "$dflt" in
43- *-fstack-protector-strong*) ;; # It got added.
44- *) # Try the plain/older -fstack-protector.
45- set stack-protector -fstack-protector
46- eval $checkccflag
47- ;;
48- esac
49- ;;
50- esac
51- ;;
52- esac
53- ;;
54 esac
55
56 case "$mips_type" in
57@@ -5634,21 +5610,6 @@ case "$ldflags" in
58 ;;
59 *) dflt="$ldflags";;
60 esac
61-# See note above about -fstack-protector
62-case "$ccflags" in
63-*-fstack-protector-strong*)
64- case "$dflt" in
65- *-fstack-protector-strong*) ;; # Don't add it again
66- *) dflt="$dflt -fstack-protector-strong" ;;
67- esac
68- ;;
69-*-fstack-protector*)
70- case "$dflt" in
71- *-fstack-protector*) ;; # Don't add it again
72- *) dflt="$dflt -fstack-protector" ;;
73- esac
74- ;;
75-esac
76
77 : Try to guess additional flags to pick up local libraries.
78 for thislibdir in $libpth; do
79@@ -8571,21 +8532,6 @@ EOM
80 ''|' ') dflt='none' ;;
81 esac
82
83- case "$ldflags" in
84- *-fstack-protector-strong*)
85- case "$dflt" in
86- *-fstack-protector-strong*) ;; # Don't add it again
87- *) dflt="$dflt -fstack-protector-strong" ;;
88- esac
89- ;;
90- *-fstack-protector*)
91- case "$dflt" in
92- *-fstack-protector*) ;; # Don't add it again
93- *) dflt="$dflt -fstack-protector" ;;
94- esac
95- ;;
96- esac
97-
98 rp="Any special flags to pass to $ld to create a dynamically loaded library?"
99 . ./myread
100 case "$ans" in
101--
1022.1.4
103