Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29424 - add USE flags to binary package name
Summary: add USE flags to binary package name
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-23 07:24 UTC by Sascha Silbe
Modified: 2011-10-30 22:18 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 Sascha Silbe 2003-09-23 07:24:43 UTC
It would be great if you could add the USE flags to the name of the resulting binary package, so one can precompile packages for hosts with different USE flags.
Since IUSE lists the USE flags recognized by each single package, this is feasible.

Proposed naming: <packageName>-<packageVersion>.{-?flag.}tbz2
E.g.: wget-1.8.2-r2.ssl.nls.-static.ipv6.tbz2

This is very useful for managing a whole network of workstations with different configurations.



Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2003-09-23 21:11:19 UTC
the tbz2 has the USE file in it, you can parse that
Comment 2 Sascha Silbe 2003-09-25 13:31:40 UTC
But that way (i.e. as it currently is) has two problems:
"Server" side: /usr/portage/packages can only contain a single "version"
(regarding USE flags) of a package, so I need some special logic to export,
scan and publish packages. Some work, but I could do it.
"Client" side: Portage only looks for any binary version of the package,
not the one with exactly the USE flags needed. That's impossible to work
around. Well, I could "just" set up a directory for each client that contains
exactly the packages it needs, if I have that information on my build host.
But that gets impractical as the number of clients rises.

Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-09-26 07:14:06 UTC
Supporting an exponetial number of package modifications isn't particularly
practical. It won't become part of the package name, but will probably be
possible when kept in various directories on a binhost.

Use a defined set of USE flags, as it will make life simpler.
Comment 4 Sascha Silbe 2003-09-27 05:43:12 UTC
The number of hosts is going to grow much more rapidly than the number of
USE flags supported by each single package, so it's better to stuff it into
portage than on the package server.
But it suffices to do that in a special downloader. Just provide something
like FETCHCOMMAND/RESUMECOMMAND for binary packages, too. The environment
of FETCHCOMMAND already contains almost everything I need to write such a
downloader (sourcing $EBUILD will get IUSE).