[csw-maintainers] GAR: tweaking distribution file names

Dagobert Michelsen dam at opencsw.org
Wed Nov 4 22:14:25 CET 2009


Hi Maciej,

Am 04.11.2009 um 21:38 schrieb Maciej (Matchek) Blizinski:
> I have the following problem: The purveyor of software distributes
> binaries. There are different binaries for x86, amd64, sparcv8 and
> sparcv9, but they are all named the same:
>
> http://www.example.com/download/x86/foo
> http://www.example.com/download/amd64/foo
> http://www.example.com/download/sparcv8/foo
> http://www.example.com/download/sparcv9/foo
>
> I can't just say DISTFILES = foo, because there is an assumption that
> different files have distinct file names. I want to do some sort of
> mapping:
>
> DISTFILES  = foo-$(GARVERSION)-x86
> DISTFILES += foo-$(GARVERSION)-amd64
> DISTFILES += foo-$(GARVERSION)-sparcv8
> DISTFILES += foo-$(GARVERSION)-sparcv9
>
> It means that I want to download
> http://www.example.com/download/x86/foo and after downloading it,
> rename it to foo-$(GARVERSION)-x86, and associate the checksum with
> foo-$(GARVERSION)-x86, not just foo.
>
> What's the most elegant way of going about it? I tried defining  
> targets such as:
>
> $(DOWNLOADDIR)/foo-$(GARVERSION)-x86
>
> ...but it did not work. gmake seems to be ignoring these targets.

Mmhhh, looks like the download-section needs some more work. There are
other issues also with the current scheme when you have 10 files from
10 different locations where GAR tries every file at every location
taking forever when you don't prime /home/src.

What is in the files? Would they unpack to different directories? Or do
you want modulation-specific sources?


Best regards

   -- Dago



More information about the maintainers mailing list