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

2013-11-16 Thread Christopher Meng
On Nov 14, 2013 6:21 PM, "Matej Stuchlik"  wrote:

> 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.
>
> Matt

+1 here although it's just a trick.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

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

2013-11-14 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Nov 14, 2013 at 05:21:04AM -0500, Matej Stuchlik wrote:
> 
> 
> - Original Message -
> From: "Mathieu Bridon" 
> To: "Development discussions related to Fedora" 
> 
> 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
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

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

2013-11-14 Thread Matej Stuchlik


- Original Message -
From: "Mathieu Bridon" 
To: "Development discussions related to Fedora" 
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.

Matt


-- 
Mathieu


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

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

2013-11-14 Thread Alec Leamas

On 11/14/2013 11:12 AM, Mathieu Bridon wrote:

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?


Or maybe use an url shortener out there, keeping the "real" url in a 
comment ?


--alec

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

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

2013-11-14 Thread Mathieu Bridon
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?


-- 
Mathieu


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

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

2013-11-14 Thread Jan Lieskovsky
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.

 Have tried to provide source URI in (simple, double) quotes, or escape
both of ?, and = characters with backslash, but without any luck (it's visible
it won't work in the spec already, since having highlighted the syntax the last
source URI part isn't taken / understood as a whole - being in same color 
already).

Wondering if someone needed to solve something like the above already, and what
the workaround has been (somehow define the last part of the source URI via 
%global
variable to avoid this?)

Thank you && Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Technologies Team
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct