Re: rpmbuild -t? tarball options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/13/2015 12:33 PM, Schwarz, Konrad wrote:
>> -----Original Message-----
>> From: Florian Festi [mailto:ffesti@xxxxxxxxxx]
>> Sent: Freitag, 13. November 2015 11:29
>> To: General discussion about the RPM package manager; Schwarz, Konrad
>> Subject: Re: rpmbuild -t? tarball options
>>
>> Sorry for the late reply. Your mail got lost somewhere in the
>> moderation queue.
> 
> Thanks anyway.
> 
>>
>> As rpm 4.2 is pretty old (2003) I assume you are using AIX or Hpux or
>> any of the other Unixes (who are probably shipping their own version of
>> tar). So I doubt anyone is interested fixing this issue. It is probably
>> easier to just use rpm -b after extracting the spec file from the
>> tarball and copying it to the SPECS directory on your own.
> 
> As it turns out, I am using GNU tar 1.26.
> 
> I can accept (and actually already implement) your proposed workaround.
> 
> However, the fact that
> https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch11s02s02.html
> don't really get this to work either seems to indicate that other people are having problems
> here too.  Do you know if the feature works for an up-to-date version of rpmbuild?
> 
> If so, would it be possible to document more clearly where the spec file needs to reside
> in the sources?


There needs to be exactly one file either named "Specfile" or matching
"*.spec". Unfortunately we only recently improved the parsing to not
fail with very obscure error messages if more than one spec file was
found or anthing else goes wrong (which might still not give a good
error message).

The glory details can be found at
https://github.com/rpm-software-management/rpm/blob/master/rpmbuild.c#L338

Florian

-- 

Red Hat GmbH, http://www.de.redhat.com/ Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael Cunningham, Michael
O'Neill, Charles Peters
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux