Overview

Request 287843 revoked

- Pass -P in CPPFLAGS to configure to make AC_EGREP_CPP happy
with GCC 5.

Loading...
Request History
Richard Biener's avatar

rguenther created request

- Pass -P in CPPFLAGS to configure to make AC_EGREP_CPP happy
with GCC 5.


Dr. Werner Fink's avatar

WernerFink added rguenther as a reviewer

Richard?


Richard Biener's avatar

rguenther accepted review

Well, as explained in the description AC_EGREP_CPP with GCC 5 results in extra #line directives which in the emacs case confuses the libjpeg
version detection:

[ 1328s] checking for jerror.h... yes
[ 1328s] checking for jpeg_destroy_compress in -ljpeg... yes
[ 1328s] configure: WARNING: libjpeg found, but not version 6b or later

which uses AC_EGREP_CPP with a pattern that does not expect those
#line directives to appear. So the real fix would be to AC_EGREP_CPP but I didn't figure out where it originates from
(and it needs all packages using that to re-generate from fixed
sources).

The fix for AC_EGREP_CPP is simple - simply preprocess with -P
which tells GCC to _not_ emit any #line directives at all.

Or for emacs not to use AC_EGREP_CPP but sth more sensible, like
a AC_COMPILE test with sth that errors if the version doesn't match
its expectations.


Richard Biener's avatar

rguenther approved review

Well, as explained in the description AC_EGREP_CPP with GCC 5 results in extra #line directives which in the emacs case confuses the libjpeg
version detection:

[ 1328s] checking for jerror.h... yes
[ 1328s] checking for jpeg_destroy_compress in -ljpeg... yes
[ 1328s] configure: WARNING: libjpeg found, but not version 6b or later

which uses AC_EGREP_CPP with a pattern that does not expect those
#line directives to appear. So the real fix would be to AC_EGREP_CPP but I didn't figure out where it originates from
(and it needs all packages using that to re-generate from fixed
sources).

The fix for AC_EGREP_CPP is simple - simply preprocess with -P
which tells GCC to _not_ emit any #line directives at all.

Or for emacs not to use AC_EGREP_CPP but sth more sensible, like
a AC_COMPILE test with sth that errors if the version doesn't match
its expectations.


Richard Biener's avatar

rguenther revoked request

fixed by andreas

openSUSE Build Service is sponsored by