FS#34644 - [firefox] can't build from source
Attached to Project:
Arch Linux
Opened by Arch User (superlex) - Saturday, 06 April 2013, 19:44 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 10 April 2013, 13:21 GMT
Opened by Arch User (superlex) - Saturday, 06 April 2013, 19:44 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 10 April 2013, 13:21 GMT
|
Details
Description:
You can't build firefox 20 from source (https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/firefox) Additional info: makepkg -s returns " checking for nspr-config... /usr/bin/nspr-config checking for NSPR - version >= 4.9.4... yes configure: error: system NSPR does not support PR_STATIC_ASSERT or including prtypes.h does not provide it " The problem seems to be " ac_add_options --with-system-nspr " in mozconfig, so nspr package. Steps to reproduce: Download firefox files with abs and start makepkg -s |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Wednesday, 10 April 2013, 13:21 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in /trunk and released for both arches; wait a few hours for ABS to sync.'
Wednesday, 10 April 2013, 13:21 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in /trunk and released for both arches; wait a few hours for ABS to sync.'
Now you can specify CPPFLAGS in makepkg.conf, but Firefox doesn't seem to like the default ones.
Put "unset CPPFLAGS" before the "make" line, and it works!
configure scripts generated by our current autoconf version don't have this issue; AC_PROG_CPP correctly detects 'gcc -E' as the C preprocessor command.
Firefox's configure script, however, appears to have been generated by an ancient version of autoconf which doesn't include this change from 2001 (!):
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=f5d0e4f28b1d058f
@Allan: Any ideas on how to overcome this issue of -D_FORTIFY_SOURCE=2 being used without an optimization level during preprocessing?
(I have attached a relevant excerpt from config.log.)
¹ Firefox's configure script checks the stderr output using the following command:
$ grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"
Anything other than an empty string is considered an error.
I am about to rebuild all of [core] so we can see how much is affected by this issue and then come to a global decision.