Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142260 - portage should track the version of gcc used to build a package
Summary: portage should track the version of gcc used to build a package
Status: RESOLVED LATER
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 187268 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-31 02:57 UTC by Duncan
Modified: 2007-07-31 18:48 UTC (History)
2 users (show)

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 Duncan 2006-07-31 02:57:35 UTC
Perhaps this suggestion has come up before, it seems so obvious, but my bugzilla searches were timing out, and I was unsure about narrowing down the returned bugs, given emerge --info results, so attempts to check weren't working.

Looking thru /var/db/pkg, it appears portage tracks all manner of stuff, but not the gcc version used to build the package.  That would be /very/ handy information to have at times, particularly when attempting to rebuild old-gcc build packages (thus avoiding an emerge --emptytree system, when much of it has already been compiled with the newer gcc), and when tracking down certain package interaction bugs.

Note that this information will need to be included in binpkgs as well, and portage will need to track /that/, not simply what version of gcc was configured at the time of merge.  Still, even the latter would be useful, for those of us with FEATURES=buildpkg, altho it wouldn't necessarily always be accurate.

The info could be tracked either as a new file, GCCVERSION or some such, or simply added to the environment before it's saved, as an appropriately labeled variable.
Comment 1 Zac Medico gentoo-dev 2006-08-04 11:42:56 UTC
Well, I don't think a feature like this should be gcc specific.  There are lots of different languages/compilers used for various types of ebuilds.  I think it should be the ebuild's job to tell portage what kind of compiler it used.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-01-29 16:38:43 UTC
Adding arbitrary keys to the VDB is not currently feasable, and that is essentially what you are asking for.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-31 18:48:55 UTC
*** Bug 187268 has been marked as a duplicate of this bug. ***