Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21641 - A possible "buildpkgonly" in FEATURES="" might be handy
Summary: A possible "buildpkgonly" in FEATURES="" might be handy
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-24 17:31 UTC by Björn Michaelsen
Modified: 2011-10-30 22:35 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 Björn Michaelsen 2003-05-24 17:31:50 UTC
After discussing crosscompiling via -B options in the forum, I took a shallow
look at /usr/bin/emerge and found that it is possible to set FEATURES="buildpkg"
but not to set FEATURES="buildpkgonly" which might be handy for situations like
the one decribed in the forum. This shouldnt be too hard to implement.
BTW as another bug files buildpkgonly is missing in the man-page.
Comment 1 SpanKY gentoo-dev 2003-07-09 12:27:13 UTC
man page has been fixed in cvs for some time
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-07-24 08:50:26 UTC
Hmm, how would this work with dependencies that need to be installed ?
Comment 3 Björn Michaelsen 2003-07-24 12:43:28 UTC
> Hmm, how would this work with dependencies that need to be installed ?
dependencies should be compiled too as packages. This can be prevented with --nodeps.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-08-17 10:35:51 UTC
I meant that the dependencies needs to be installed or the package won't find header files, libraries, needed tools, ... So should the dependencies get merged, then building the .tbz2 for the wanted package and then unmerging the package or what ? Or should portage just abort like emerge -B when dependencies are not met ?
Comment 5 Björn Michaelsen 2003-08-26 14:20:47 UTC
Should portage just abort like emerge -B when dependencies are not met ?
Yes. I think that will do.
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-19 20:00:06 UTC
The code is still in emerge.  

# Always create packages if FEATURES=buildpkg
# Imply --buildpkg if --buildpkgonly
if ("buildpkg" in portage.features) or ("--buildpkgonly" in myopts):
	if "--buildpkg" not in myopts:
		myopts.append("--buildpkg")

Either it's going to get done and we can merge changes ( bail if deps aren't installed ) or it won't be and we can close and someone can reopen if necessary.

Most poeple use crossdev ( or related ) and not portage for this anyway, so I'm not sure how much use it would get.
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2005-05-17 05:56:10 UTC
Closing this as it doesn't seem useful. FEATURES="buildpkgonly" is pretty much 
exactly the same as alias emerge='emerge -B'. Same argument could be used for 
buildpkg, but either that'll go or support for buildpkgonly will come 
incidentally. Either way, there are much better ways that cross compiling 
could be supported.