How to escape question mark / equality sign in spec's source URI to get proper source name

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Nov 14 13:41:03 UTC 2013


On Thu, Nov 14, 2013 at 05:21:04AM -0500, Matej Stuchlik wrote:
> 
> 
> ----- Original Message -----
> From: "Mathieu Bridon" <bochecha at fedoraproject.org>
> To: "Development discussions related to Fedora" <devel at lists.fedoraproject.org>
> Sent: Thursday, November 14, 2013 11:12:21 AM
> Subject: Re: How to escape question mark / equality sign in spec's source	URI to get proper source name
> 
> On Thu, 2013-11-14 at 05:01 -0500, Jan Lieskovsky wrote:
> > Hello guys,
> > 
> >      I have one source which has the form of (in the last part of it's URI):
> >   "checklist-cce-feed?id=295" (the source doesn't seem to be available otherwise
> > than via aforementioned query string - or at least I wasn't able to obtain
> > it's final location past the query => if you known there's a way how to find
> > out the final file location past the query string would be expanded, let me know).
> > 
> >     For now I present that source URI in the particular spec in it's original form
> > (including the query string to avoid rpmlint to complain about non-existing
> > source, and later in the %install moving that source to some more meaningful
> > name). This works on RHEL5 (maybe question mark / equality sign not having
> > special meaning there yet?), but not for example at Fedora-19.
> > 
> >      At Fedora 19 rpmbuild strips off the part till equality sign, iow
> > "checklist-cce-feed?id=" from the source and searches only for '295' =>
> > rpmbuild fails with a complain not being able to find "rpmbuild/SOURCES/295"
> > file.
> 
> Maybe use only the name of the source file, and add a comment above
> explaining that it comes from that URL?
> 
> You can use "checklist-cce-feed?id=295#nameofthesource.tar.bz2", but I'd say ^ is
> the best idea.

Or Use "checklist-cce-feed?id=295&ignorethispart=nameofthesource.tar.bz2".
I actually think using a live URL is important so that it can be automatically
verified to match and can be easily updated to a new version.

Zbyszek


More information about the devel mailing list