First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 131275
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Harald van Dijk <truedfx@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christopher Thorjussen <joffer@online.no>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
source Limited source support for ufed patch Harald van Dijk 2006-04-26 02:20 0000 1.60 KB Details | Diff
make.conf make.conf that breaks ufed text/plain David Grant 2006-06-01 23:55 0000 21.53 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 131275 depends on: Show dependency tree
Show dependency graph
Bug 131275 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-04-25 14:44 0000
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 From Harald van Dijk 2006-04-25 23:00:59 0000 -------
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 From Gunnar Wrobel 2006-04-26 00:28:23 0000 -------
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 From Harald van Dijk 2006-04-26 02:20:08 0000 -------
Created an attachment (id=85522) [edit]
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 From Christopher Thorjussen 2006-04-26 04:42:47 0000 -------
I will try the patch later today, when I get home.

------- Comment #5 From Christopher Thorjussen 2006-04-30 05:39:34 0000 -------
Worked :)

------- Comment #6 From Harald van Dijk 2006-05-22 22:13:11 0000 -------
I decided to just add ufed-0.40-r2 with this patch, so fixed now, thanks for
the report.

------- Comment #7 From Jakub Moc (RETIRED) 2006-05-29 04:36:20 0000 -------
*** Bug 134749 has been marked as a duplicate of this bug. ***

------- Comment #8 From Jakub Moc (RETIRED) 2006-06-01 15:35:35 0000 -------
*** Bug 135209 has been marked as a duplicate of this bug. ***

------- Comment #9 From David Grant 2006-06-01 23:28:44 0000 -------
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 From Harald van Dijk 2006-06-01 23:33:36 0000 -------
(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 From David Grant 2006-06-01 23:55:25 0000 -------
Created an attachment (id=88160) [edit]
make.conf that breaks ufed

Here you go! Thanks a lot!

------- Comment #12 From Harald van Dijk 2006-06-02 00:36:47 0000 -------
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 From Jakub Moc (RETIRED) 2006-06-30 00:08:14 0000 -------
*** Bug 138549 has been marked as a duplicate of this bug. ***

------- Comment #14 From Jakub Moc (RETIRED) 2006-09-02 06:49:19 0000 -------
*** Bug 145993 has been marked as a duplicate of this bug. ***

------- Comment #15 From Jakub Moc (RETIRED) 2006-09-24 23:07:20 0000 -------
*** Bug 149016 has been marked as a duplicate of this bug. ***

------- Comment #16 From Harald van Dijk 2006-11-26 13:49:07 0000 -------
*** Bug 156337 has been marked as a duplicate of this bug. ***

------- Comment #17 From Jakub Moc (RETIRED) 2006-12-13 14:07:06 0000 -------
*** Bug 158077 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug