Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275362 - app-portage/gentoolkit-0.2.4.2-r1: euse creates broken /etc/make.conf when USE declaration starts with empty line
Summary: app-portage/gentoolkit-0.2.4.2-r1: euse creates broken /etc/make.conf when US...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2009-06-25 07:05 UTC by amitds
Modified: 2011-05-10 23:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amitds 2009-06-25 07:05:56 UTC
I have the following USE setup in /etc/make.conf:

USE="
a b
c

-d -e
"

Portage seems ok with this layout.

However, when I euse to enable some other flag, /etc/make.conf gets
corrupted:

amit0 ~ # euse -E f
/etc/make.conf was modified, a backup copy has been placed at
/etc/make.conf.euse_backup
amit0 ~ # grep -A 5 ^USE /etc/make.conf
USE="a b c -d -e f"
a b
c

-d -e
"


Reproducible: Always

Steps to Reproduce:
See description

Actual Results:  
See description
make.conf is broken.


Suggested workaround is to terminate lines with backslash. 
However, I believe euse and portage should read make.conf in the same fashion: Having portage regard a/m syntax as valid and euse - as invalid seems like a bug to me.
Comment 1 amitds 2009-06-30 15:34:41 UTC
I've open a bug in gentoo:

http://bugs.gentoo.org/show_bug.cgi?id=275362

Comment 2 amitds 2009-06-30 15:35:49 UTC
oops.. sorry about that last comment.
Comment 3 Jared Hancock 2009-08-10 02:40:57 UTC
Fixed in patch attachment to bug #259318
Comment 4 Paul Varner (RETIRED) gentoo-dev 2011-01-05 16:13:12 UTC
Added with the updated euse from bug 259318.  It can be tested using gentoolkit-9999
Comment 5 Jared Hancock 2011-04-25 02:26:55 UTC
Can you verify this is fixed in gentoolkit-0.3.0?
Comment 6 Paul Varner (RETIRED) gentoo-dev 2011-05-10 23:39:24 UTC
This was released in gentoolkit-0.3.0