Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31524 - UFED disregards files in PORDIR_OVERLAY
Summary: UFED disregards files in PORDIR_OVERLAY
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-19 11:15 UTC by Markus Rippl
Modified: 2005-04-06 08:53 UTC (History)
1 user (show)

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


Attachments
Adds $PORTDIR_OVERLAY/profiles/use.{,local.}desc support. (ufed-0.34-overlay.diff,1.78 KB, patch)
2003-10-19 14:30 UTC, Doug Weimer
Details | Diff
ufed-0.35-overlay.diff (ufed-0.35-overlay.diff,2.08 KB, patch)
2004-09-28 07:48 UTC, Harald van Dijk (RETIRED)
Details | Diff
ufed-0.35-overlay.patch (ufed-0.35-overlay.patch,2.45 KB, patch)
2004-12-23 07:22 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rippl 2003-10-19 11:15:55 UTC
Hi,

ufed doesnt look for use.desc and use.local.desc in the PORTDIR_OVERLAY
directory. As emerge itself concerns these files (i get an added flag displayed
with emerge -pv, e.g.) I think ufed should, too.

regards
Markus

Reproducible: Always
Steps to Reproduce:
1. cp /usr/portage/profiles/use.local.desc /usr/local/portage/profiles

2. echo "net-mail/cyrus-imapd:autocreate - Enable INBOX autocreate support
(patch)" >>/usr/local/portage/profiles

3. emerge -pv cyrus-imapd
[ebuild   R   ] net-mail/cyrus-imapd-2.1.15  -afs -snmp +ssl -kerberos -ipv6
-cyrus-imapd:autocreate
* local use flag is shown *

4. run ufed - it does not show the new use flag



Expected Results:  
ufed should read the use.[local.]desc in PORTDIR_OVERLAY too.

version used: app-portage/ufed-0.34
Comment 1 Markus Rippl 2003-10-19 11:23:07 UTC
typo.. diff follows ;-)

1. cp /usr/portage/profiles/use.local.desc /usr/local/portage/profiles

-2. echo "net-mail/cyrus-imapd:autocreate - Enable INBOX autocreate support
(patch)" >>/usr/local/portage/profiles
+2. echo "net-mail/cyrus-imapd:autocreate - Enable INBOX autocreate support
(patch)" >>/usr/local/portage/profiles/use.local.desc

3. emerge -pv cyrus-imapd
Comment 2 Doug Weimer 2003-10-19 14:30:04 UTC
Created attachment 19488 [details, diff]
Adds $PORTDIR_OVERLAY/profiles/use.{,local.}desc support.

This patch is applied against ufed.pl so that it can be easily integrated
with
the ebuild. To use it place the diff in /usr/portage/app-portage/ufed/files/
and then add: 
src_unpack() {
    unpack ${A}
    cd ${S}
    epatch ${FILESDIR}/${P}-overlay.diff
}

to the ufed-0.34.ebuild. Then, reemerge ufed for the patched version.
Comment 3 Fred Van Andel (RETIRED) gentoo-dev 2003-10-19 22:09:39 UTC
Agreed, anything in PORTDIR_OVERLAY should overrule the standard files.

I will investigate the patch provided and upgrage ufed within a couple of
days.  

Thank you Doug for the patch.
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-03-20 14:48:04 UTC
overlay is a space delimited list, btw.
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2004-09-28 07:48:56 UTC
Created attachment 40618 [details, diff]
ufed-0.35-overlay.diff

I've updated the patch to support multiple overlay directories. Is there
anything wrong with this approach that ufed doesn't yet support this, or has
this simply been forgotten about?
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-11-21 18:48:42 UTC
Well, ufed is maintainlerless for several months now ...
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-11-21 21:28:41 UTC
Also portage doesn't read use*.desc even from $PORTDIR.
Comment 8 Harald van Dijk (RETIRED) gentoo-dev 2004-11-21 22:30:33 UTC
> Well, ufed is maintainlerless for several months now ...
That's unfortunate. Thanks for taking the time to look at ufed's bugreports, then.

> Also portage doesn't read use*.desc even from $PORTDIR.
portage doesn't have any need for descriptions or even a list of flags. ufed does.
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2004-11-22 00:07:39 UTC
the last comment was just a reply for the original statement about portage looking at use*.desc in overlays. Right now the profiles/ directory in an overlay has absolutely no meaning to portage, that's why I'm not sure if I like this functionality or not.
Comment 10 Harald van Dijk (RETIRED) gentoo-dev 2004-11-22 06:02:49 UTC
Oh, sorry, I misunderstood, then.

I would like to see this functionality in ufed because the only way with an unmodified ufed to enable use flags for ebuilds in an overlay directory is to modify /usr/portage/profiles/use*.desc and add them to rsync_excludes. I think the problem with that is obvious. use*.desc files in an overlay seem to me, and apparently the bug reporter too, like the best solution for this. If you have a better idea for this, I would be happy to modify the patch.
Comment 11 Marius Mauch (RETIRED) gentoo-dev 2004-12-08 19:39:07 UTC
Ok, I'm considering this for the patchset for the next (and I hope last) ufed version, however if I read it correctly it won't work with those cascaded profiles that don't have a make.defaults themself but only inherit one, so I'm holding this one back for now.
Comment 12 Harald van Dijk (RETIRED) gentoo-dev 2004-12-23 07:22:55 UTC
Created attachment 46713 [details, diff]
ufed-0.35-overlay.patch

Hi, you're right, it would fail when make.defaults is missing, though that's a
bug of its own, since it also fails in an unpatched ufed. I modified this patch
to try and handle it properly, and it's even uglier than the fix for
get_make_defaults_flags :)

get_make_conf_flags also assumes /etc/make.profile/make.defaults is the only
make.defaults used, by the way. A fix for that should be similar to a fix for
get_make_defaults_flags. I'll report that as a new bug if I can manage to
create a patch for that.
Comment 13 Harald van Dijk (RETIRED) gentoo-dev 2005-04-06 08:53:34 UTC
Should be working with ufed 0.36. Please reopen if that still has problems.