Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 462678

Summary: Request FEATURES=rpm (just like buildpkg)
Product: Portage Development Reporter: Alan Hourihane <alanh>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 472632    

Description Alan Hourihane 2013-03-22 11:38:26 UTC
It would be nice if an RPM could be built when building a package, just as "buildpkg" can be set as a FEATURE to build a binary package.

Thanks !
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-22 17:14:11 UTC
       RPMDIR = [path]
              Defines the location where created RPM packages will be stored.
              Defaults to ${PORTDIR}/rpm.

Somehow I can't get that to work, but it should suffice if it did work.
Comment 2 Alan Hourihane 2013-03-22 17:23:26 UTC
I know "ebuild xxxx.ebuild rpm" works and makes the RPM package. But that means building the package again.

I'd like to just add ...

FEATURES="buildpkg rpm"

and then do ...

emerge xxxxx

and it auto-generates the RPM (from the rpm FEATURE), and also the TAR.GZ (from the buildpkg FEATURE).

I already use the latter.
Comment 3 Zac Medico gentoo-dev 2013-08-25 19:38:27 UTC
Since 2.2.0 we have a PORTAGE_BINPKG_FORMAT variable that you can set in make.conf, and also emerge --pkg-format

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=73a972e0cac5d7e5f59a58c11e998793fe2b1a2d