Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525876 - app-portage/ufed-0.91 does not support /etc/portage/package.use/
Summary: app-portage/ufed-0.91 does not support /etc/portage/package.use/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Eden
URL:
Whiteboard:
Keywords: PATCH
: 527092 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-19 17:07 UTC by Martin Väth
Modified: 2015-03-09 10:53 UTC (History)
3 users (show)

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


Attachments
Patch to treat dirs as files _noncomments (ufed-recurse.patch,545 bytes, patch)
2014-10-19 17:07 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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