[gentoo-portage-dev] RFC: new virtual metadata variable to list combined deps
Ok, I have to admit the subject may be a bit confusing, so let me get the motivation first: Often people want to know the dependencies of a package. Not much of a problem when they know how to use auxget or the portageq metadata commands. However these all work on the specific DEPEND, RDEPEND and PDEPEND vars directly, so to get all dependencies of a package one has to read all three variables. And as in general some entries exist in both DEPEND and RDEPEND one gets even more info than wanted. At least this me this manual parsing gets annoying over time. So in my auxget script[1] I added support for a new virtual metadata variable '*DEPEND' that basically reads and concatenates the three dep variables, then eliminates duplicates (of course only on the top level, complex atoms are treated as a single unit). This allows a quick check what dependencies a package has ignoring if it's buildtime, runtime or postbuild (or however you want translate the P in PDEPEND). So now I was wondering a) if I'm the only one who finds this feature useful and b) if adding it at the dbapi level (in dbapi.aux_get) would be considered a good idea, so it could be used by other tools? Marius -- Public Key at http://www.genone.de/info/gpg-key.pub In the beginning, there was nothing. And God said, 'Let there be Light.' And there was still nothing, but you could see a bit better. -- gentoo-portage-dev@gentoo.org mailing list
[gentoo-portage-dev] Is there a tool to manage USE flags? (use-config?)
Other than a text editor? I'd like to have a tool that can add USE flags on a per package or global level. (I'm doing this in some build scripts and would prefer just to have a tool, rather than sed or some other shell hackery). I couldn't find anything via a quick search on google. Here's my interface: use-config --add --component sys-devel/gcc --flag fortran (adds the fortran USE flag to package.use for gcc) A --remove would remove the fortran USE flag, and --unset would put -fortran instead. A --global would update make.conf instead of package.use. Make sense? Are there other features that people would want? Unless this already exists, I'll probably create a tool for this. -matt -- gentoo-portage-dev@gentoo.org mailing list
Re: [gentoo-portage-dev] RFC: new virtual metadata variable to list combined deps
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marius Mauch wrote: So now I was wondering a) if I'm the only one who finds this feature useful and b) if adding it at the dbapi level (in dbapi.aux_get) would be considered a good idea, so it could be used by other tools? I think of aux_get as a simple, low-level, and raw interface to package metadata. I'd rather not see higher level dependency logic mangling this data behind the scenes. If a *DEPEND attribute is needed, I think that it should be an attribute of some higher level package class that provides access to various useful information that's derived from the raw metadata. Zac -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFQPpb/ejvha5XGaMRAvoOAKC2YTgPWFKjEzNRD4ItElL7Axx0YgCgkKlr c43KAzP85svLxNp4Yu+J0Rg= =sv/O -END PGP SIGNATURE- -- gentoo-portage-dev@gentoo.org mailing list
[gentoo-portage-dev] [RFC] USE flags that don't affect package
It would be useful if ebuilds listed any USE flags that don't affect the package the ebuild is for, so that emerge knows it doesn't need to rebuild the package if these change (or are newly added to the ebuild). These include flags like glibc-compat20 and nptl on glibc-2.4-r3 (if they aren't set correctly, it just doesn't build, because this version doesn't support other configurations, but the USE flag is there so you don't blindly lose some obsolete feature you needed), or minimal on (e.g.) xinit (which affects RDEPEND, but not anything else). It's obviously not important for correctness, but it would save a whole lot of time, because it seems to be mostly big packages that end up with these, and ignoring them is a pain when you actually change a meaningful global USE flag and want to rebuild everything that's actually different. -Daniel *This .sig left intentionally blank* -- gentoo-portage-dev@gentoo.org mailing list
[gentoo-portage-dev] Re: [gentoo-dev] Is there a tool to manage USE flags? (use-config?)
m h wrote: Other than a text editor? I'd like to have a tool that can add USE flags on a per package or global level. (I'm doing this in some build scripts and would prefer just to have a tool, rather than sed or some other shell hackery). I couldn't find anything via a quick search on google. Here's my interface: use-config --add --component sys-devel/gcc --flag fortran (adds the fortran USE flag to package.use for gcc) A --remove would remove the fortran USE flag, and --unset would put -fortran instead. A --global would update make.conf instead of package.use. Make sense? Are there other features that people would want? Unless this already exists, I'll probably create a tool for this. euse from app-portage/gentoolkit provides this functionality for global use flags, ie euse --enable java euse --disable xmms and so on. -- Joshua Nichols Gentoo/Java - Project Lead -- gentoo-portage-dev@gentoo.org mailing list
Re: [gentoo-portage-dev] Is there a tool to manage USE flags? (use-config?)
Well, you just described what flagedit does, only with a bit tidier interface ;). In general, I'd suggest taking a look under app-portage category.. George четвер, 26. жовтень 2006 20:08, m h Ви написали: [...] Here's my interface: use-config --add --component sys-devel/gcc --flag fortran [...] -matt -- gentoo-portage-dev@gentoo.org mailing list