Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131275 - layman blocks ufed from working
Summary: layman blocks ufed from working
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Harald van Dijk (RETIRED)
URL:
Whiteboard:
Keywords:
: 134749 135209 138549 145993 149016 156337 158077 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-25 14:44 UTC by Christopher Thorjussen
Modified: 2007-05-30 18:39 UTC (History)
8 users (show)

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


Attachments
Limited source support for ufed (source,1.60 KB, patch)
2006-04-26 02:20 UTC, Harald van Dijk (RETIRED)
Details | Diff
make.conf that breaks ufed (make.conf,21.53 KB, text/plain)
2006-06-01 23:55 UTC, David Grant
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Thorjussen 2006-04-25 14:44:25 UTC
layman(-0.9.1) blocks app-portage/ufed(-0.40r1) from running if there is a "source /path/to/layman/make.conf" in /etc/make.conf. I had to comment that line out to run ufed, and then reenable it again.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2006-04-25 23:00:59 UTC
This is going to be a bit hard to fix properly in ufed, firstly because portage's own parsing of make.conf and python's shlex interact in strange ways, meaning 'source' can behave strangely in special cases, and secondly, because supporting 'source' means ufed may have to save the USE flags in another file.

I will try to include limited support for 'source' when reading make.conf, and if USE-affecting variables are set in other files, have ufed abort (but only then). This shouldn't break things with layman, right? (I have no idea how layman works, I don't use it.)
Comment 2 Gunnar Wrobel (RETIRED) gentoo-dev 2006-04-26 00:28:23 UTC
No, layman won't be affected by this. layman does not directly use anything from the make.conf file. It just modifies the PORTAGE_OVERLAY variable and as a safety precaution it does not do that directly with /etc/make.conf since I disliked having a tool automatically modifying this rather central config file.

So I just used the "source" feature since it is supported by portage. The sourced file only sets PORTAGE_OVERLAY.

As a workaround people can also omit the 
"source /path/to/layman/make.conf" in /etc/make.conf and modify the layman config like this:

#-----------------------------------------------------------
# Path to the make.conf file that should be modified by 
# layman
make_conf : /etc/make.conf

This way you don't need the source statement and layman will directly modify your /etc/make.conf. Decide for yourself if you consider that dangerous or safe enough :)
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2006-04-26 02:20:08 UTC
Created attachment 85522 [details, diff]
Limited source support for ufed

This should make ufed deal with it. Could you please make sure it works for you? Just run

(cd /; patch -l -p0) < whatever-filename-you-picked

I will add a cleaner but longer (because of whitespace differences, and unrelated modifications) patch to CVS, so this should be fixed in the next version. The next version is taking a really long time though, and most users won't use "source", so just modify ufed locally for now, okay?
Comment 4 Christopher Thorjussen 2006-04-26 04:42:47 UTC
I will try the patch later today, when I get home.
Comment 5 Christopher Thorjussen 2006-04-30 05:39:34 UTC
Worked :)
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2006-05-22 22:13:11 UTC
I decided to just add ufed-0.40-r2 with this patch, so fixed now, thanks for the report.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-05-29 04:36:20 UTC
*** Bug 134749 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 15:35:35 UTC
*** Bug 135209 has been marked as a duplicate of this bug. ***
Comment 9 David Grant 2006-06-01 23:28:44 UTC
Doesn't work... It reads make.conf fine, but it has trouble writing to it:

Parse error when writing make.conf - did you modify it while ufed was running?
Comment 10 Harald van Dijk (RETIRED) gentoo-dev 2006-06-01 23:33:36 UTC
(In reply to comment #9)
> Doesn't work... It reads make.conf fine, but it has trouble writing to it:

Could you please attach your make.conf ?
Comment 11 David Grant 2006-06-01 23:55:25 UTC
Created attachment 88160 [details]
make.conf that breaks ufed

Here you go! Thanks a lot!
Comment 12 Harald van Dijk (RETIRED) gentoo-dev 2006-06-02 00:36:47 UTC
Thanks, fixed in 0.40-r3. I checked for 'source' commands before the USE="..." line in make.conf when writing, but forgot to do so after it.
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-06-30 00:08:14 UTC
*** Bug 138549 has been marked as a duplicate of this bug. ***
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-09-02 06:49:19 UTC
*** Bug 145993 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-09-24 23:07:20 UTC
*** Bug 149016 has been marked as a duplicate of this bug. ***
Comment 16 Harald van Dijk (RETIRED) gentoo-dev 2006-11-26 13:49:07 UTC
*** Bug 156337 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-12-13 14:07:06 UTC
*** Bug 158077 has been marked as a duplicate of this bug. ***