Bug 127729 - rpmbuild --target=... --showrc does not evalute the --target=
Summary: rpmbuild --target=... --showrc does not evalute the --target=
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords: Patch
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-07-12 23:22 UTC by Mark Hatle
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2006-08-05 16:29:29 UTC


Attachments (Terms of Use)
Patch that makes --target= apply before the --showrc in rpmbuild (3.70 KB, patch)
2004-07-12 23:24 UTC, Mark Hatle
no flags Details | Diff
Revised patch to support --showrc and --eval when --target= is used in rpmbuild (3.73 KB, patch)
2004-07-29 18:11 UTC, Mark Hatle
no flags Details | Diff

Description Mark Hatle 2004-07-12 23:22:50 UTC
Description of problem:
When using rpmbuild --target=<target> --showrc, the output shows what
the rpm macros would be without specifying --target=.

I believe it makes more sense to evaluate the --target= parameter.

Version-Release number of selected component (if applicable):
all

How reproducible:
rpmbuild --showrc > output1
rpmbuild --target=i386-linux --showrc > output2
diff output1 output2

Actual results:
Same..

Expected results:
Different based on per arch macros

Additional info:
I will be attaching a patch we have used to solve this issue since RPM
4.1.  It has been HEAVILY tested.

Comment 1 Mark Hatle 2004-07-12 23:24:53 UTC
Created attachment 101842 [details]
Patch that makes --target= apply before the --showrc in rpmbuild

This patch has been applied and tested with MontaVista Linux since RPM 4.1.  It
seems to "work for us".

Comment 2 Mark Hatle 2004-07-29 18:09:42 UTC
Comment on attachment 101842 [details]
Patch that makes --target= apply before the --showrc in rpmbuild

slight change to allow --eval to work.

Comment 3 Mark Hatle 2004-07-29 18:11:28 UTC
Created attachment 102291 [details]
Revised patch to support --showrc and --eval when --target= is used in rpmbuild

Revised patch.	Supports both --eval and --showrc operations to rpmbuild when
--target= is selected.

Comment 4 Jeff Johnson 2004-10-17 19:01:10 UTC
This is almost correct, but does not handle
multiple platforms after --target. Purty easy
to just use the first target for --showrc
instead.

Comment 5 David Juran 2005-10-08 17:42:25 UTC
This is still the case in rpm-4.4.1-22 in FC4

Comment 6 Jeff Johnson 2006-08-05 16:29:29 UTC
A slightly modified patch has been added to rpm cvs, will be in rpm-4.4.7 when released.


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