Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 523200

Summary: sys-libs/tdb injects -fstack-protector into CFLAGS based on bad test
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED FIXED    
Severity: minor CC: hppa, matoro_bugzilla_gentoo, samba
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: tdb-1.3.1-fstack-protector.patch

Description Jeroen Roovers (RETIRED) gentoo-dev 2014-09-19 08:01:50 UTC
Created attachment 385098 [details, diff]
tdb-1.3.1-fstack-protector.patch

Checking compiler accepts ['-fstack-protector']          : yes
Checking linker accepts ['-fstack-protector']            : yes

# echo 'int maint() { :; }' | hppa2.0-unknown-linux-gnu-gcc -E -fstack-protector - 1>/dev/null 
<stdin>:1:0: warning: -fstack-protector not supported for this target [enabled by default]
# echo $?
0

The above warning is repeated for every $CC call, which is rather annoying if harmless. Besides, tdb has no business injecting that kind of compiler flag in the first place. (waf should probably focus on not crashing 2:3 times).
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-19 08:07:05 UTC
Actually, 1.2 does this too.