Bug 104116 - sys-libs/ss-1.38 - parse error during configure/compilation
Bug#: 104116 Product:  Gentoo Linux Version: 2005.0 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: sohni@hot.ee
Component: Ebuilds
URL:  http://sourceforge.net/tracker/index.php?func=detail&aid=1532177&group_id=2406&atid=102406
Summary: sys-libs/ss-1.38 - parse error during configure/compilation
Keywords:  
Status Whiteboard: 
Opened: 2005-08-29 04:09 0000
Description:   Opened: 2005-08-29 04:09 0000
emerge process just freezes after configuration process with error report  
'Error in line 5: parse error in options list '.  
  
.... 
config.status: creating po/Makefile.in  
config.status: executing default-1 commands  
config.status: creating po/POTFILES  
config.status: creating po/Makefile  
make: Entering directory `/var/tmp/portage/ss-1.38/work/e2fsprogs-1.38/lib/ss'  
cd ../../util ; make subst  
make[1]: Entering directory `/var/tmp/portage/ss-1.38/work/e2fsprogs-1.38/util'  
        CC subst.c  
        LD subst  
make[1]: Leaving directory `/var/tmp/portage/ss-1.38/work/e2fsprogs-1.38/util'  
        SUBST mk_cmds  
        COMPILE_ET ss_err.et  
        CC ss_err.c  
        MK_CMDS std_rqs.c  
Error in line 5: parse error in options list

------- Comment #1 From Toomas Mottus 2005-08-29 04:14:49 0000 -------
Created an attachment (id=67158) [details]
emerge --info output

System is with KDE 3.4.1, Reiser 3.6, samba, Estonian localization.

------- Comment #2 From Toomas Mottus 2005-08-29 04:20:57 0000 -------
Created an attachment (id=67159) [details]
Full emerge output

The output indicates a problem with line:

inherit eutils flag-o-matic toolchain-funcs

in
/usr/portage/sys-libs/ss/ss-1.38.ebuild

------- Comment #3 From SpanKY 2005-08-29 05:44:59 0000 -------
try changing your locale/lang to C before emerging

------- Comment #4 From Toomas Mottus 2005-08-29 22:42:40 0000 -------
Tried: 
LANG="C" LC_ALL="C" LINGUAS="en"  emerge -u --oneshot sys-libs/ss 
and 
LANG="en" LC_ALL="en" LINGUAS="en"  emerge -u --oneshot sys-libs/ss 
Also with USE="-userlocales -kerberos -linguas_et" 
 
No change. 
 
Then changed all settings system wide to "en" and recompiled glibc like 
suggested in Gentoo Localization Guide. No improvement. 

------- Comment #5 From Toomas Mottus 2005-08-31 20:47:57 0000 -------
Created an attachment (id=67382) [details]
Makefile from /var/tmp/portage/ss-1.38/work/e2fsprogs-1.38/lib/ss

So I tried to dig deeper:

I CD-d into /var/tmp/portage/ss-1.38/work/e2fsprogs-1.38/lib/ss and made:
# make
	SUBST mk_cmds
	MKDIR elfshared
	COMPILE_ET ss_err.et
	CC ss_err.c
	MK_CMDS std_rqs.c
Error in line 5: parse error in options list

Still the same error and I decided to submit the Makefile for better oberview
of the problem.

Then I tried 
# make clean
# LANG="C" LC_ALL="C" make
in /var/tmp/portage/ss-1.38/work/e2fsprogs-1.38/lib/ss
and in /var/tmp/portage/ss-1.38/work/e2fsprogs-1.38/
and everyting worked fine. 
Why don't LANG and LC_ALL work with emerge?

------- Comment #6 From SpanKY 2005-08-31 20:57:57 0000 -------
most likely the estonian locale, we've had problems with e2fsprogs and that
locale before

ive applied the locale patch again to 1.38

------- Comment #7 From Toomas Mottus 2005-09-05 01:33:55 0000 -------
No luck, 
 
Emerge has now the locale patch, but the error is the same. Still 
 
LC_ALL="C" LANG="C" make 
works in /var/tmp/portage/ss-1.38/work/e2fsprogs-1.38/, but 
 
LC_ALL="C" LANG="C" emerge sys-libs/ss 
gives the parse error. 
 
Is there a way I could debug the process myself and give better feedback? 

------- Comment #8 From SpanKY 2005-09-05 14:20:07 0000 -------
try this patch:

--- lib/ss/mk_cmds.sh.in
+++ lib/ss/mk_cmds.sh.in
@@ -2,6 +2,7 @@
 #
 #
 
+export LC_ALL=C
 DIR="${DIR-@datadir@/ss}"
 SS_DIR="@SS_DIR@"
 AWK=@AWK@

------- Comment #9 From SpanKY 2005-09-09 22:50:30 0000 -------
added proposed patch to cvs