The current monotone-0.44 ebuild has the following in src_compile(): # more aggressive optimizations cause trouble with the crypto library strip-flags append-flags $(test-flags -fno-stack-protector-all -fno-stack-protector) append-flags -fno-strict-aliasing -fno-omit-frame-pointer None of these should be necessary; for one because the crypto library that was having problems with these flags was Crypto++, which monotone stopped using in version 0.22 (almost 4 years ago) and additionally since version 0.43 monotone does not even include the source of the crypto library anymore but requires it already be installed. Reproducible: Always
In addition to this, the ebuild is doing: if ! has userpriv ${FEATURES} && has test ${FEATURES}; then ewarn "No test will be performed due to lack of FEATURES=userpriv" fi Which is wrong since FEATURES shouldn't be tested from inside ebuild. Instead of this it should be doing something like: if [ $UID == 0 ]; then .. fi or if [ $UID != 0 ]; then .. fi
+ 16 Jul 2009; Samuli Suominen <ssuominen@gentoo.org> monotone-0.44.ebuild: + Remove obsolete strip-flags and replace FEATURES testing by UID testing + wrt #277450, thanks to Jack Lloyd for reporting.