Bug 162253 - Can't use spectool on excluded archs
Can't use spectool on excluded archs
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: fedora-rpmdevtools (Show other bugs)
4
All Linux
medium Severity low
: ---
: ---
Assigned To: Nils Philippsen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-01 13:41 EDT by Ville Skyttä
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 1.4-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-24 08:39:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Ignore ExlusiveArch and friends (299 bytes, patch)
2005-12-25 14:25 EST, Ville Skyttä
no flags Details | Diff

  None (edit)
Description Ville Skyttä 2005-07-01 13:41:10 EDT
It doesn't seem to be possible have spectool pass --target to rpmbuild, 
therefore making it impossible to fetch stuff let's say on a i386 with a 
specfile that states "ExclusiveArch: i586 i686". 
 
Could you fix this in the "upstream" spectool distribution?  Then, I'd just 
import it to rpmdevtools. 
 
On a further note, it would be cool if spectool could be a bit more verbose 
about encountered errors... for example in the above case, nothing happens.  
Using the -D option I can get the stderr filename and go look up what's wrong, 
but ideally I'd like to see the error right there on the console if things 
fail.
Comment 1 Ville Skyttä 2005-12-25 14:25:56 EST
Created attachment 122580 [details]
Ignore ExlusiveArch and friends

Here's one approach that appears to work for me.  Thoughts?
Comment 2 Nils Philippsen 2005-12-28 10:42:17 EST
I've applied this patch and released spectool-1.0.5.
Comment 3 Ville Skyttä 2005-12-30 13:16:20 EST
Included in 1.4-1, thanks.
Comment 4 Ville Skyttä 2006-02-09 14:28:39 EST
Hmm, BuildArch needs treatment too.  Fix below; Nils, could you roll a new
spectool again for this?

--- spectool~   2005-12-30 11:48:09.000000000 +0200
+++ spectool    2006-02-09 00:21:28.000000000 +0200
@@ -85,7 +85,7 @@
                                last;
                        }
                }
-               next if ($line =~ m/^\s*Exclu(d|siv)e(Arch|OS)\s*:/i);
+               next if ($line =~ m/^\s*(Build|Exclu(d|siv)e)(Arch|OS)\s*:/i);
                $preamble .= $line;
                if ($line !~ m/^\s*(?:source|patch)\d*\s*:/) {
                        print $tmpspec_fh $line;
Comment 5 Nils Philippsen 2006-02-24 08:39:20 EST
I've applied a  slightly modified -- I don't think there is a BuildOS: tag ;-)
-- fix in spectool-1.0.7. 
Comment 6 Ville Skyttä 2006-02-24 11:45:59 EST
Right, thanks.

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