Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 163561

Summary: euse parsing problems
Product: Portage Development Reporter: Morgun Leonid <morgunl>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED INVALID    
Severity: normal CC: xenoterracide
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: make.conf where it fails
make.conf parsed ok

Description Morgun Leonid 2007-01-24 07:39:43 UTC
equery && euse fail parsing make.conf:

localhost mudiller # euse --active
/etc/make.conf: line 29: unexpected EOF while looking for matching `"'
/etc/make.conf: line 30: syntax error: unexpected end of file
/etc/make.conf: line 29: unexpected EOF while looking for matching `"'
/etc/make.conf: line 30: syntax error: unexpected end of file
/etc/make.conf: line 29: unexpected EOF while looking for matching `"'
/etc/make.conf: line 30: syntax error: unexpected end of file

I know where's the error. It fails parsing quotes " in the comments


Reproducible: Always
Comment 1 Morgun Leonid 2007-01-24 07:40:53 UTC
Created attachment 107980 [details]
make.conf where it fails
Comment 2 Morgun Leonid 2007-01-24 07:42:02 UTC
Created attachment 107982 [details]
make.conf parsed ok

Pay attention at row #10
No quote in the comment parsed well!
Comment 3 Paul Varner (RETIRED) gentoo-dev 2007-01-24 17:58:58 UTC
/etc/make.conf is supposed to be valid bash syntax. The bash comment character has to be preceded with whitespace or be at the beginning of a line in order for it to be considered a comment by bash.

Changing the offending line from:

FEATURES="prelink digest ccache "#distcc"
to
FEATURES="prelink digest ccache " #distcc"

makes that line contain a valid comment
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-03-24 17:47:39 UTC
*** Bug 172070 has been marked as a duplicate of this bug. ***