Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86583 - syslist empty, emerge -Du system doesn't check for empty syslist
Summary: syslist empty, emerge -Du system doesn't check for empty syslist
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 14:33 UTC by caspar-gentoo-bugs
Modified: 2005-03-25 21:19 UTC (History)
0 users

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 caspar-gentoo-bugs 2005-03-24 14:33:11 UTC
After sync and update today I tried to depclean my machines.  Only one succeeded, the others told me:

!!! You have no system list. Cannot determine system from world.

I wasn't able to detect the source of failure yet.

But one thing is clear:

depclean checks if syslist is empty.  But deep update -- `emerge -Duv system` doesn't and so can't find any package to update even though there are!

As of yesterday `emerge -Dup system` returned app-arch/tar to be updated on one of the now failing machines -- so at least on this machine the machanism broke within the last 24 hours.

Reproducible: Always
Steps to Reproduce:
1. emerge -pv depclean
2. emerge -Dup system
Actual Results:  
emerge -pv depclean tells me there is no system list
emerge -Dup system returns very fast and tells me there are no packages to update.

Expected Results:  
emerge -pv depclean should give me a summary of installed packages and maybe a
list of packages it would unmerge
emerge -Dup system should check, if system needs to be updated.
Comment 1 caspar-gentoo-bugs 2005-03-24 15:36:09 UTC
Don't tell me why but /usr/portage/profiles/base/packages does not exist on the failing machines, it does exist on the machine I sync with.  Copying it manually fixes the "no system list" failure.

It doesn't change anything with emerge though -- emerge update has to check for a  syslist.  That's vital.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2005-03-25 09:38:30 UTC
Caspar, check your machine which serves as your rsync host.  In the rsyncd.conf file please remove the exclude lines, OR prefix packages and distfiles with /:

exclude = /packages /distfiles

^^^ like that. But, portage already natively does NOT sync those directories anyway, so even removing that line entirely will be fine.  Restart your rsync server, attempt emerge sync.

*** This bug has been marked as a duplicate of 86131 ***
Comment 3 caspar-gentoo-bugs 2005-03-25 09:45:42 UTC
I don't agree with the decision to mark it a duplicate.

I reported a bug that emerge does not properly check for empty syslist.  How and why syslist is empty is not important at that point.
Comment 4 Brian Harring (RETIRED) gentoo-dev 2005-03-25 10:44:56 UTC
Portage's behaviour in regards to emerge -pv depclean and emerge -Dup system is valid.  You lack a system list on the client boxes cause of the bug this is duped on, so their isn't anything really to report.
Comment 5 caspar-gentoo-bugs 2005-03-25 12:51:05 UTC
It is possible for syslist to be empty.  If this is the case some functions work differently, eg update doesn't check for system updates.

And you say it's not a bug if a function doesn't perform its intended functionality?  That's ridiculous.

This was my last bug report on Gentoo.  Bye...
Comment 6 SpanKY gentoo-dev 2005-03-25 13:22:16 UTC
the 'system' list is stored in rsync

the list on your system was empty

portage checked for updates in the empty list and, finding none, aborted
Comment 7 caspar-gentoo-bugs 2005-03-25 15:11:39 UTC
That's wrong -- depclean checks for an empty syslist.  Running depclean aborted noticing me about this situation.  That behaviour is fine.

Running update was just faster but its' output was the normal one telling me there were no updates.  And this is plain wrong.  It did a check for the syslist content but not for the system.  Normally syslist represents the system but in this situation it didn't.  And syslist can only be empty if there is a failure within the system, not catching it is a bug.

The only reason I got notion of the missing packages file within hours was only because I tried to do a depclean.  I don't know how often you perform that on your system.
Comment 8 Brian Harring (RETIRED) gentoo-dev 2005-03-25 21:19:42 UTC
Depclean of *course* checks for empty syslist.  Else it could potentially remove all packages on a system.

If you've either via a bug, or via your own custom profile ixnaying the syslist, it's not portages job to go rooting through each profile, trying to verify that there is in fact a set of atom that 'system'.
So no, it's not 'wrong'.  Quite likely it did no such check.  Just grabbed the syslist, no nodes to work on, ok, user is a bit whacky, no work to do thus I exit.

Re: depclean I don't use it.  It has known flaws I don't care to deal with (whether -p, or being dumb and letting it actually do it's thing).
I'm not really understanding the continuing push from you on this.