On 4/20/20 7:13 AM, Ashley Dixon wrote:
Hi gentoo-user,
Hi,
Following the recent conversation started by Meino, I have decided to
convert my package.* files to directory structures. For all but
one, this has proven tedious, but relatively painless. My
package.use file is another story: at over three-hundred lines, the
thought of manually converting this to a directory structure
does not attract me.
Are there any tools in Portage to help with this, or must I resort to
writing a shell script ?
I'm not aware of a tool to do the conversion. However there may be one
that I'm not aware of.
For example, considering the following lines in my flat package.use:
media-video/openshot printsupport
sys-apps/util-linux tty-helpers
I want to take this file and create a directory structure:
media-video/openshot, containing "media-video/openshot printsupport"
sys-apps/util-linux, containing "sys-apps/util-linux tty-helpers"
I wasn't aware that you could put sub-directories in
/etc/portage/package.use. I've always had to put the files directly in
that directory, not sub-directories. As such, my files have names like
sys-apps-util-linux to avoid naming collisions. Perhaps things have
changed since I last tried to use a sub-directory or I am misremembering.
How can this be done ?
I think it should be relatively easy to script reading the line,
extracting the package name, munging the name, and writing the entire
unmodified line to a new file based on the munged name. If directories
work, create and populate them without munging names.
--
Grant. . . .
unix || die