Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16540 - Portage 2.0.47-r7: ebuilds in portage overlay are ignored
Summary: Portage 2.0.47-r7: ebuilds in portage overlay are ignored
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 16778 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-28 03:59 UTC by Simon Koch
Modified: 2011-10-30 22:19 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 Simon Koch 2003-02-28 03:59:42 UTC
If an ebuild exists in both the main portage tree and the overlay, portage uses the 
one modified most recently.  Therefore, an emerge sync will effectively cause 
portage to use the ebuilds in the main tree in favor of the ebuilds in the overlay. 
Expected behavior:  Portage should use ebuilds in the overlay regardless of the 
date modified.
Comment 1 SpanKY gentoo-dev 2003-03-03 23:23:18 UTC
*** Bug 16778 has been marked as a duplicate of this bug. ***
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-03-11 01:40:47 UTC
That's not true. Timestamps are maintained in the portage tree.
If an ebuild is updated it's probably to your benefit to use that
update. If you want to use a particular ebuild always, then use
a revision that is quite high. -r99 would work.
Comment 3 Felipe Ghellar 2003-03-11 07:34:33 UTC
>> That's not true. Timestamps are maintained in the portage tree.
What do you mean? If it's not true, then what causes this?

# emerge -p -u world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild    UD] media-libs/freetype-2.1.2-r2 [2.1.3-r2]
[ebuild    UD] media-libs/fontconfig-2.1 [2.1-r1]
[ebuild    UD] x11-base/xfree-4.2.1-r2 [4.2.99.4]
[ebuild    U ] media-libs/xine-lib-1_beta2 [0.9.13-r2]
[ebuild    UD] net-www/mozilla-1.2.1-r5 [1.3_beta]

# find /usr/local/portage/ -type f -exec touch {} \;
# emerge -p -u world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild    U ] media-libs/xine-lib-1_beta2 [0.9.13-r2]


>> If an ebuild is updated it's probably to your benefit to use that update.
Agreed. But none of the above were updated, they were just re-sync'ed.
If there is an ebuild with the same version and revision number both in the
main tree and in the overlay tree, portage should pick the one in the overlay,
as it has before. If it is there, it's because the user put it there,
and he did it because he wants to use that one instead of the official one.
That's pretty logical to me.

>> If you want to use a particular ebuild always, then use a revision that is quite high. -r99 would work.
Yes, that would work, but I don't want to use particular ebuild always.
I want to use that particular locally modified revision _only_ until there's
a newer revision. Renaming it to -r99 would prevent any true updates.
Besides, this would be a workaround to a portage bug, not a solution to that bug.
"Blame the user instead of the application" is not a good policy.


This bug should be reopened, since it's not fixed and is by no means invalid.
Comment 4 Simon Koch 2003-03-11 14:19:40 UTC
Apparently I came to an incorrect conclusion about the cause of the bug.  I mistakenly  
assumed that 'emerge sync' touched the entire portage tree. 
 
The bug still exists, however.  I often copy ebuilds to my overlay in order to change the 
KEYWORDS from "~x86" to "x86".  I'm not avoiding updates; I'm simply unmasking ebuilds I 
want to test.  Previous to 2.0.47, this worked flawlessly.  Now, as Felipe and Christian (from 
the duplicate bug #16778) describe, 'emerge sync' makes portage forget about the 
unmasking in my overlay until I touch the entire overlay tree. 
Comment 5 Simon Koch 2003-05-23 01:01:34 UTC
This is fixed in 2.0.48.  Thanks.