Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291271 - =sys-apps/portage-2.2_rc47 fails on installing packages from "new" categories
Summary: =sys-apps/portage-2.2_rc47 fails on installing packages from "new" categories
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
: 291325 291441 291542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-31 09:35 UTC by Vladimir Kokarev
Modified: 2009-11-02 15:26 UTC (History)
4 users (show)

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


Attachments
build.log (new file,4.46 KB, text/plain)
2009-10-31 09:35 UTC, Vladimir Kokarev
Details
only_bump_mtime_when_dir_exists (portage-crash-new-cat.patch,776 bytes, patch)
2009-10-31 11:35 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kokarev 2009-10-31 09:35:01 UTC
if a /var/db/category directory doesn't exist, installing packages from this category fails with OSError
example for net-libs/libpcap attached
reverting to =sys-apps/portage-2.2_rc46 fixed that

Reproducible: Always

Steps to Reproduce:
emerge package from any category whose directory doesn't exist in /var/db/



Actual Results:  
get OSError on install phase

Expected Results:  
succesfull emerge
Comment 1 Vladimir Kokarev 2009-10-31 09:35:47 UTC
Created attachment 208835 [details]
build.log
Comment 2 Fabian Groffen gentoo-dev 2009-10-31 11:35:22 UTC
Created attachment 208846 [details, diff]
only_bump_mtime_when_dir_exists

ok, _bump_mtime should check IMO that a path exists before it tries to touch it.

Does this patch fix it for you too?
Comment 3 Fabian Groffen gentoo-dev 2009-10-31 11:40:46 UTC
Sidenote for zmedico:
I might have killed the optimisation in that patch.  (Comment didn't say so.)  If that was the reason for not using os.path.join, then the _os.sep should not be put between root and VDB_PATH, as that causes double slashes.
Comment 4 Sebastian Luther (few) 2009-10-31 16:42:54 UTC
*** Bug 291325 has been marked as a duplicate of this bug. ***
Comment 5 Zac Medico gentoo-dev 2009-11-01 00:21:09 UTC
Thanks, this is fixed in svn r14753, and released in 2.1.7.3 and 2.2_rc48.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-11-01 14:58:17 UTC
*** Bug 291441 has been marked as a duplicate of this bug. ***
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-02 15:26:52 UTC
*** Bug 291542 has been marked as a duplicate of this bug. ***