pcp
[Top] [All Lists]

Re: [pcp] Makepkgs dependence on gnu tar

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] Makepkgs dependence on gnu tar
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Sun, 30 Mar 2014 17:54:29 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <00a201cf4b98$fdff4170$f9fdc450$@internode.on.net>
References: <680787555.3349055.1395974183412.JavaMail.zimbra@xxxxxxxxxx> <5335DC0F.50105@xxxxxxxxxxxxxxxx> <00a201cf4b98$fdff4170$f9fdc450$@internode.on.net>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: AQI+f68U8mcODFpWn5P3G9AJuyq1ogJoHYO9mgbu3sA3yJweTw==
Thread-topic: Makepkgs dependence on gnu tar

----- Original Message -----
> > I'm OK to stick with gtar.
> 
> Update - the tar in my CentOS 5.10 (and I presume RHEL 5) system is gnu tar,
> but too old to have the --transform option.
> 

Ugh.

> I've picked the SRPM from Fedora 10 (!), remade the rpm and installed.  This
> has the --transform option and Makepkgs worked.
> 
> If you go later than Fedora 10 you run into autoconf version
> incompatibilities (certainly by Fedora 16 this prevents the source rpm
> rebuild).  Earlier then Fedora 10 and the version of gnu tar is too old.
> 
> Bit of a battle, but done now.

Another option I've looked into - if we (optionally?) relax the requirement
that modifications to files are included in the tarball, life becomes a bit
simpler once more (I spent a fair bit of time trying to coerce git-stash to
help us here, but without any luck).

So, if we do that, we can use the built-in git-archive tarball generation;
git archive --format=tar --prefix=pcp-xyz/ HEAD | gzip > pcp-xyz.src.tar.gz
(and then we need to make sure gzip exists!)

Any interest in adding this mode as a fallback, when no gnu tar is found?
(perhaps using "git-status --porcelain" to warn about any modifications?)

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>