tar version comparison

Kristofer Henriksson kthenriksson at gmail.com
Thu Jul 2 13:27:26 PDT 2009


Even with that variant, gnutar will still be available under the name
gnutar, so you can always run gnutar without worrying about whether
you have that variant or not. The variant just adds symlinks for
everything.

Regards,
Kristofer

On Thu, Jul 2, 2009 at 2:54 PM, Darren Weber<dweber at macports.org> wrote:
>
>
> On Wed, Jul 1, 2009 at 3:57 PM, Joshua Root <jmr at macports.org> wrote:
>>
>> On 2009-7-2 07:16, Darren Weber wrote:
>> >
>> > I need to test if the system has a tar version between 1.14 and 1.14.90,
>> > what is the best way to do this in tcl?
>>
>> Toby has answered your question, but it seems like you'd be better off
>> just depending on gnutar rather than messing around doing different
>> things for different tar versions.
>>
>> - Josh
>
>
> Yes, so a dependency on gnutar is an option, but what if it's installed with
> the variant,
>
>   with_default_names: Install files without 'gnu' prefix
>
> I suppose then the script has to check for the right command - tar or gnutar
> - and if it uses tar there will have to be a check for the version of tar
> that's called (or at least a check for `which tar` to confirm that it's
> $prefix/bin/tar).
>
> Thanks,
> Darren
>
>
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
>
>


More information about the macports-dev mailing list