[opensuse-buildservice] Use Macro with source service?
Hi all, I have a package that uses the download_files source service to get a file that is listed as Source0 in the spec file. This works fine if Source0 lists the exact filename, but not if Source0 contains a macro. This works with the source service: ... Source0: http://www.kernel.org/pub/linux/kernel/projects/backports/2012/09/18/compat-... ... This doesn't work with the source service: ... Source0: http://www.kernel.org/pub/linux/kernel/projects/backports/2012/09/18/compat-... -d '1 day ago' +%Y-%m-%d).tar.bz2 ... Using a macro in the Source0 filename works ok if there's no source service. So any ideas on how to make it work w/ a source service? Thanks very much in advance, Ann -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Ann, check that example it works with Git (note The build may fail some days but that is an other story). https://build.opensuse.org/package/files?package=OpenCPN&project=home%3Adominig%3AOpenCPN%3AHead Documentation is here. http://en.opensuse.org/openSUSE:Build_Service_private_instance_software_live... Dominig ar Foll Senior Architect Intel Open Source Technology Centre Le 19/09/12 23:12, Ann Davis a écrit :
Hi all,
I have a package that uses the download_files source service to get a file that is listed as Source0 in the spec file. This works fine if Source0 lists the exact filename, but not if Source0 contains a macro.
This works with the source service:
... Source0: http://www.kernel.org/pub/linux/kernel/projects/backports/2012/09/18/compat-... ...
This doesn't work with the source service:
... Source0: http://www.kernel.org/pub/linux/kernel/projects/backports/2012/09/18/compat-... -d '1 day ago' +%Y-%m-%d).tar.bz2 ...
Using a macro in the Source0 filename works ok if there's no source service. So any ideas on how to make it work w/ a source service?
Thanks very much in advance,
Ann
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am Dienstag, 2. Oktober 2012, 09:40:12 schrieb Dominig ar Foll: ...
Le 19/09/12 23:12, Ann Davis a écrit :
Hi all,
I have a package that uses the download_files source service to get a file that is listed as Source0 in the spec file. This works fine if Source0 lists the exact filename, but not if Source0 contains a macro.
Actually, it should. It used to work with the standard %name and %version at least. It will not work with macros which require to execute code for security reasons though. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Adrian Schröter
-
Ann Davis
-
Dominig ar Foll (Intel OTC)