Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 323451 - Implement PROPERTIES="precompiled" feature
Summary: Implement PROPERTIES="precompiled" feature
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 17:28 UTC by Pacho Ramos
Modified: 2022-12-14 05:10 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 Pacho Ramos gentoo-dev 2010-06-10 17:28:52 UTC
With recent gcc-4.4 stabilization, I have been running "emerge -e world" in my systems to be able to remove old gcc safely (as talked in http://www.gentoo.org/doc/en/gcc-upgrading.xml#doc_chap2 ). With this, I have noticed that I could have saved a lot of time if portage were able to skip precompiled packages (like flash-player, lots of huge games, firefox-bin...) that doesn't need to be re-emerged in cases like this simply running, for example, "emerge -e world --jobs=4 --keep-going --accept-properties=-precompiled")

Thanks a lot for thinking about this :-)

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2011-04-19 16:40:39 UTC
This could probably be handled with "MERGE_TYPE=binary" from eapi4 :-/
http://devmanual.gentoo.org/ebuild-writing/eapi/index.html
Comment 2 Zac Medico gentoo-dev 2011-04-20 03:55:44 UTC
(In reply to comment #0)
> With recent gcc-4.4 stabilization, I have been running "emerge -e world" in my
> systems to be able to remove old gcc safely (as talked in
> http://www.gentoo.org/doc/en/gcc-upgrading.xml#doc_chap2 ). With this, I have
> noticed that I could have saved a lot of time if portage were able to skip
> precompiled packages (like flash-player, lots of huge games, firefox-bin...)
> that doesn't need to be re-emerged in cases like this simply running, for
> example, "emerge -e world --jobs=4 --keep-going
> --accept-properties=-precompiled")

The --accept-properties=-precompiled thing would work without any changes to portage. You'd just have to be set the appropriate PROPERTIES value in all of the relevant ebuilds. This is really something that should be documented/specified in PMS.

(In reply to comment #1)
> This could probably be handled with "MERGE_TYPE=binary" from eapi4 :-/
> http://devmanual.gentoo.org/ebuild-writing/eapi/index.html

MERGE_TYPE=binary applies to a different kind of "precompiled package", like the those that emerge creates from *any* ebuild when the --buildpkg option is enabled.
Comment 3 Brian Harring (RETIRED) gentoo-dev 2011-06-12 14:11:11 UTC
Offhand, this seems like the wrong tact- the correct way of handling this is backtracking whatever depends on gcc (meaning we eliminate implicit system dep).

Reason I say this is that such an approach, implemented sanely, would allow rebuilding python targets, perl targets, etc.  Or we add in PROPERTIES=precompiled which has a murky interpretation...
Comment 4 Ulrich Müller gentoo-dev 2017-06-07 15:17:38 UTC
Please define what is meant by "precompiled". Does this apply to C/C++ only, or other languages too? What about documentation built from various source formats?

(In reply to Brian Harring from comment #3)
> Offhand, this seems like the wrong tact- the correct way of handling this is
> backtracking whatever depends on gcc (meaning we eliminate implicit system
> dep).
> 
> Reason I say this is that such an approach, implemented sanely, would allow
> rebuilding python targets, perl targets, etc.  Or we add in
> PROPERTIES=precompiled which has a murky interpretation...

I agree. Closing for now, since this appears to be rather vague (and in addition, there is no progress in this bug since several years).