Bug 734983 - yum-builddep lacks --target option.
Summary: yum-builddep lacks --target option.
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 15
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-01 04:04 UTC by Maxim Cournoyer
Modified: 2014-01-21 23:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-01 06:24:54 UTC


Attachments (Terms of Use)

Description Maxim Cournoyer 2011-09-01 04:04:03 UTC
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 05:08:33 UTC
--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 06:24:54 UTC
Consider this your lucky day ;) Implemented now at rpm + yum-utils upstreams:

http://yum.baseurl.org/gitweb?p=yum-utils.git;a=commitdiff;h=76a2bbb7728bfacb364de8eacf88d7a91735820a
http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=f07ab5c1afa9b0b7105082a8617ec6a7657fc27e

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 11:50:24 UTC
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.