Bug 734983 - yum-builddep lacks --target option.
yum-builddep lacks --target option.
Product: Fedora
Classification: Fedora
Component: yum-utils (Show other bugs)
Unspecified Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2011-09-01 00:04 EDT by Maxim Cournoyer
Modified: 2014-01-21 18:19 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-09-01 02:24:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Maxim Cournoyer 2011-09-01 00:04:03 EDT
Description of problem:

I am reopening bug 475758 because it was closed and is still an issue in Fedora 15. When setting up a cross-building environment, such a feature is almost a necessity to install easily the non native packages. 

Additional info:

In the meantime, I am using such monstruosities to get by: sudo yum install $(sudo yum-builddep SRPMS/pulseaudio-0.99.3-0.1.fc15.src.rpm | tr '\n'  " " | sed 's/Modules complémentaires chargés : langpacks, presto, refresh-packagekit//' | sed 's/Getting requirements for pulseaudio-0.99.3-0.1.fc15.src//' | sed 's/No uninstalled build requires//' | sed 's/ --> Already installed : //g' | sed 's/x86_64/i686/g')
Comment 1 Panu Matilainen 2011-09-01 01:08:33 EDT
--target in yum-builddep is not possible with current rpm-python bindings, the bindings need a way to reset + reload the entire rpm configuration before it becomes doable.

In the meantime, your self-made monster is much uglier than it needs to be :)
Instead of yum-build, use rpmspec (which does support --target) to grab the real build-requires out of a spec and feed the output to yum. Note spec, not src.rpm - dependencies in src.rpm headers can be specific to the arch the src.rpm happened to get built on.
Comment 2 Panu Matilainen 2011-09-01 02:24:54 EDT
Consider this your lucky day ;) Implemented now at rpm + yum-utils upstreams:


Whether these actually ever trickle down to F15 I can't promise, but at least future versions of Fedora will have it.
Comment 3 Maxim Cournoyer 2011-09-01 07:50:24 EDT
Wow, that was quick :)

Amazing news!

Also thank you for letting me know about rpmspec. I've also discovered how easy it is to build 32 bits RPMS packages using mock & 32 bits chroot!

Have a great day!

Note You need to log in before you can comment on or make changes to this bug.