Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 525876

Summary: app-portage/ufed-0.91 does not support /etc/portage/package.use/
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: Current packagesAssignee: Sven Eden <sven.eden>
Status: RESOLVED FIXED    
Severity: normal CC: fuzzyray, proxy-maint, rose
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to treat dirs as files _noncomments

Description Martin Väth 2014-10-19 17:07:25 UTC
Created attachment 386958 [details, diff]
Patch to treat dirs as files _noncomments

When /etc/portage/package.use is a directory, ufed-0.91 (and current live version) ignores the content of that directory, actually even printing an warning message about an undefined values used in concatenation.

The fix is simple: For directories, simply use _get_files_from_dir and concatenate all found files.

In order to fix similar possible issues with other files/dirs as well, I think it is simplest to do this in the function _noncomments.

A corresponding patch is appended.
Comment 1 Sven Eden 2014-10-28 11:46:05 UTC
Thank you very much for the fix.

I currently have no classic files as directories, but the live version should now be able to use those (like package.use) as directories.
Comment 2 Sven Eden 2014-10-28 14:14:06 UTC
*** Bug 527092 has been marked as a duplicate of this bug. ***
Comment 3 Sven Eden 2015-03-09 10:53:13 UTC
Fixed in ufed-0.92