[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lilypond-auto] Issue 2634 in lilypond: aclocal.m4 incorrectly remove pa
From: |
lilypond |
Subject: |
[Lilypond-auto] Issue 2634 in lilypond: aclocal.m4 incorrectly remove parts of python-cflags output |
Date: |
Mon, 02 Jul 2012 09:44:06 +0000 |
Status: Accepted
Owner: ----
Labels: Type-Build
New issue 2634 by address@hidden: aclocal.m4 incorrectly remove parts
of python-cflags output
http://code.google.com/p/lilypond/issues/detail?id=2634
Cyprien Nicolas reported:
http://lists.gnu.org/archive/html/bug-lilypond/2012-07/msg00001.html
Hi,
At Gentoo, we've got a bug [1] about lilypond-2.14.2 configure's process.
To summary the bug report:
Line 978 of aclocal.m4, a sed rule is applied to remove "junk" in
python-cflags output, according to python issue 3290 [2].
It turns out that this sed expression is not correct, and strips parts
of some cflags. The remaining part is no longer a valid CFLAGS, making
the configure fails, saying it can't find Python.h.
The sed rule's purpose is to remove unnecessary CFLAGS like -march,
warning flags, optimization flags or definition flags. The sed rule
matches strings that start with -[WDOm].
We observed that if some flags contains the above described pattern, the
matching part will be removed, event if it is part of another flag. For
instance: -floop-strip-mime or -fvector-cost-model. -mime and -model
will match the sed rule, and will get removed. Thus -floop-strip and
-fvector-cost are passed to the C compiler which does not know about
those flags. It then exit on failure, making the configure check failing.
We propose a corrected sed rule [3] to match only -[WDOm] at the
beginning of a string element, in order to not match substrings.
1. https://bugs.gentoo.org/show_bug.cgi?id=415793
2. http://bugs.python.org/issue3290
3, https://415793.bugs.gentoo.org/attachment.cgi?id=316865
Ī¤hanks,
--
Cyprien
- [Lilypond-auto] Issue 2634 in lilypond: aclocal.m4 incorrectly remove parts of python-cflags output,
lilypond <=