Bug 103483 - media-libs/jpeg-6b-r5 configure fails (error: static: invalid feature name)
Bug#: 103483 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: graphics@gentoo.org Reported By: muusik@gmail.com
Component: Unspecified
URL: 
Summary: media-libs/jpeg-6b-r5 configure fails (error: static: invalid feature name)
Keywords:  
Status Whiteboard: 
Opened: 2005-08-23 11:31 0000
Description:   Opened: 2005-08-23 11:31 0000
Anytime I "emerge jpeg" (media-libs/jpeg-6b-r5), it quits, saying "configure:
error: static: invalid feature name"

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:  
jpeg fails to configure, compile and install

Expected Results:  
jpeg should configure, compile and install

I will add the output of 'emerge info' as an attatchment.

------- Comment #1 From Johannes Dahl 2005-08-23 11:33:23 0000 -------
Created an attachment (id=66670) [details]
output of 'emerge info'

------- Comment #2 From Johannes Dahl 2005-08-23 11:39:59 0000 -------
Created an attachment (id=66671) [details]
output of 'emerge info'

------- Comment #3 From Karol Wojtaszek (RETIRED) 2005-08-24 08:22:42 0000 -------
Could you show me all output from that emerge, because i can't reproduce it.

------- Comment #4 From Karol Wojtaszek (RETIRED) 2005-08-24 08:31:03 0000 -------
and attach config.log from /var/tmp/portage/jpeg-6b-r5/work

------- Comment #5 From Johannes Dahl 2005-08-24 12:18:25 0000 -------
Created an attachment (id=66783) [details]
output of 'emerge jpeg'

------- Comment #6 From Johannes Dahl 2005-08-24 12:20:57 0000 -------
(In reply to comment #4)
> and attach config.log from /var/tmp/portage/jpeg-6b-r5/work

Sorry, it doesn't exist.

------- Comment #7 From scott 2005-08-24 16:24:07 0000 -------
(In reply to comment #6)
> (In reply to comment #4)
> > and attach config.log from /var/tmp/portage/jpeg-6b-r5/work
> 
> Sorry, it doesn't exist.

Could you try the merge again and re-post the screen-scrape of the error
message?   The current one is funky...  the lines appear out of order.

Also, after this merge fails, could you check for the presence of that
config.log file?

------- Comment #8 From Johannes Dahl 2005-08-24 17:52:58 0000 -------
Created an attachment (id=66829) [details]
output of 'emerge jpeg'

------- Comment #9 From Johannes Dahl 2005-08-24 18:00:03 0000 -------
config.log is not present neither during nor after the emerge process -- I just
checked.

------- Comment #10 From Markus Arro 2005-08-25 01:40:58 0000 -------
Created an attachment (id=66842) [details]
Output of emerge media-libs/jpeg

------- Comment #11 From Markus Arro 2005-08-25 01:56:35 0000 -------
(From update of attachment 66842 [details])
Calculating dependencies ...done!
>>> emerge (1 of 1) media-libs/jpeg-6b-r5 to /
>>> md5 files   ;) jpeg-6b-r5.ebuild
>>> md5 files   ;) jpeg-6b-r4.ebuild
>>> md5 files   ;) files/jpeg-6b-freebsd.patch
>>> md5 files   ;) files/jpeg-6b-gentoo.patch
>>> md5 files   ;) files/digest-jpeg-6b-r4
>>> md5 files   ;) files/digest-jpeg-6b-r5
>>> md5 src_uri ;) jpegsrc.v6b.tar.gz
>>> Unpacking source...
>>> Unpacking jpegsrc.v6b.tar.gz to /var/tmp/portage/jpeg-6b-r5/work
 * Applying jpeg-6b-freebsd.patch ...
 * Applying uClibc/libtool patches ...
 * Fixing ${S}/ltconfig ...
 * Applying jpeg-6b-gentoo.patch ...
>>> Source unpacked.
 * econf: updating jpeg-6b/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating jpeg-6b/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-shared
--enable-static
configure: error: static: invalid feature name

------- Comment #12 From Markus Arro 2005-08-25 01:58:21 0000 -------
(From update of attachment 66842 [details])
I also have encountered this. Here is my output of emerge jpeg.

The problem ocurred already in jpeg-6b-r4. 

Also, if I run the configure script in
/var/tmp/portage/jpeg-6b-r5/work/jpeg-6b/ with the same options, except
"--enable-static", the configure script completes fine.

------- Comment #13 From SpanKY 2005-09-05 23:16:27 0000 -------
what does this show on your systems ?  what version of sed do you guys have ?

ac_option="--enable-static"
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
ac_sed=`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`
if test -n "$ac_sed"; then
  echo "configure: error: $ac_feature: invalid feature name ($ac_sed)"
else
  echo "configure: $ac_feature: feature name is ok"
fi

------- Comment #14 From Johannes Dahl 2005-09-07 03:18:38 0000 -------
configure: error: static: invalid feature name (tt)

GNU Sed version 4.1.4

------- Comment #15 From SpanKY 2005-09-07 05:40:15 0000 -------
do you use a different LANG or something ?  if you export LC_ALL=C before
running that test code i posted, does it work ?

------- Comment #16 From Johannes Dahl 2005-09-07 09:42:06 0000 -------
Ok, when I set LC_ALL to C, I can emerge jpeg (well, at least it doesn't stop
with the configure error). Thanks, but could anyone explain this weird behavior?

------- Comment #17 From SpanKY 2005-09-07 10:10:39 0000 -------
you never said what langauge you normally have your system set to use

not all languages have an alphabet which starts with a and ends with z

------- Comment #18 From SpanKY 2005-09-07 18:57:57 0000 -------
Created an attachment (id=67881) [details]
07_all_jpeg-LANG.patch

try this patch please

------- Comment #19 From Johannes Dahl 2005-09-08 05:57:22 0000 -------
When I patched /var/tmp/portage/jpeg-6b-r5/work/jpeg-6b/configure and ran it
with the same options 'emerge jpeg' provides, it configured properly, so I guess
the patch works. Was that what I was supposed to do :)?

You're right about the system language; I never said what it is (it's Estonian
(et_EE.utf8)) and it doesn't end with z (it ends with 

------- Comment #20 From Johannes Dahl 2005-09-08 05:57:22 0000 -------
When I patched /var/tmp/portage/jpeg-6b-r5/work/jpeg-6b/configure and ran it
with the same options 'emerge jpeg' provides, it configured properly, so I guess
the patch works. Was that what I was supposed to do :)?

You're right about the system language; I never said what it is (it's Estonian
(et_EE.utf8)) and it doesn't end with z (it ends with ΓΌ).

------- Comment #21 From SpanKY 2005-09-08 16:57:18 0000 -------
added patch to current ebuild

------- Comment #22 From Enrico 'nekrad' Weigelt 2006-07-05 06:21:33 0000 -------
This patch isn't really a fix, just a ugly workaround, since it changes an
auto-created file. Its works only in the special case, that this ebuild doesn't
recreate ./configure. Maybe its okay for gentoo, but not for the upstream. 
(and the badness: this patch is used by other packages, ie gpm, too).

Could anyone explain what this patch actually does, exactly ?

It moves some lines (but I didn't track where they're exactly, yet), which seem
to come from some from somewhere in the deep of autoconf. So if there's a bug,
we should fix it there.

------- Comment #23 From SpanKY 2006-07-05 16:17:43 0000 -------
if you read more into autotools you'd know that is the correct fix

there is no fix for everyone else because if you simply regenerate configure
with a newer version of autoconf, the fix i posted will be part of it ...
that's all i did, rip code out of newer autoconf's that does not exist in older
autoconf's because autoconf-2.13 is broken now and forever