Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2006 16:06:03 -0500
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Pav Lucistnik <pav@freebsd.org>
Cc:        Boris Samorodov <bsam@ipt.ru>, Brooks Davis <brooks@one-eyed-alien.net>, freebsd-ports@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: extract both bz2 and gz files from distfiles
Message-ID:  <20060807210603.GA85637@lor.one-eyed-alien.net>
In-Reply-To: <1154984178.95608.6.camel@ikaros.oook.cz>
References:  <14817321@bsam.ru> <20060807183724.GA47899@xor.obsecurity.org> <16560673@bsam.ru> <20060807201203.GA84762@lor.one-eyed-alien.net> <50488990@bsam.ru> <1154984178.95608.6.camel@ikaros.oook.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 07, 2006 at 10:56:18PM +0200, Pav Lucistnik wrote:
> Boris Samorodov p??e v ?t 08. 08. 2006 v 00:24 +0400:
> > On Mon, 7 Aug 2006 15:12:03 -0500 Brooks Davis wrote:
> > > On Mon, Aug 07, 2006 at 11:56:46PM +0400, Boris Samorodov wrote:
> > > > On Mon, 7 Aug 2006 14:37:25 -0400 Kris Kennaway wrote:
> > > > > On Mon, Aug 07, 2006 at 03:12:06AM +0400, Boris Samorodov wrote:
> > > >=20
> > > > > > We have got a port (lang/gnat-gcc34) which has both bz2 and gz
> > > > > > distfiles. As for 5.x+ extracting is gone automagically. But no=
t at
> > > > > > 4.x. Well, at 4.x extracting may be done for example, by using
> > > > > > USE_BZIP2 knob and doing gunzipping at after-extract:.
> > > > > >=20
> > > > > > Does someone know a better solution?
> > > > > > Does we have examples at our ports?
> > > >=20
> > > > > Use a do-extract that extracts all distfiles or EXTRACT_ONLY with
> > > > > post-extract that extracts the other ones.
> > > >=20
> > > > Thanks, Kris. I'm trying to test (actually, to find an 4.x system)
> > > > some broken ports with a patch(es) which includes (thanks Brooks):
> > > > -----
> > > > .if ${OSVERSION} < 500000
> > > > EXTRACT_DEPENDS+=3D       bsdtar:${PORTSDIR}/archivers/libarchive
> > > > TAR=3D            /usr/local/bin/bsdtar
> > > > .endif
> > > > -----
> > > >=20
> > > > To me that seems a good solution.
> >=20
> > > I'd suggest using not using an absolute path in the TAR definition
> > > since the dependency check doesn't and using 502111 as the version si=
nce
> > > that's the first version bump after the initial bsdtar import.  Not t=
hat
> > > we really need to worry about such early 5.x release, but it's more
> > > correct.
> >=20
> > Thanks again, Brooks. The patch will include (if Kris won't complain):
> > -----
> > .if ${OSVERSION} < 502111
> > EXTRACT_DEPENDS+=3D       bsdtar:${PORTSDIR}/archivers/libarchive
> > TAR=3D            bsdtar
> > .endif
> > -----
>=20
> Would writing own do-extract: target be better alternative?

It seems list unnecessicary work to me.  The nice thing about setting to
TAR bsdtar is that you get the same behavior on all releases.  Obviously
a do-extract target would work, but this way we can get rid of the
compatability code at some point in the future.  In some ways I think
we should consider alwasy depending on bsdtar in older versions just to
eliminate the differences and to reduce cross branch compatability
issues now that less and less people can test on 4.x systems.

-- Brooks

--BOKacYhQ+x31HxR3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFE16s6XY6L6fI4GtQRAn5LAJ4nj9dRoJqWbnidYscRbe7ELfgjQgCgogQP
kjd9YC8oRKk7CNmMEbC3NkQ=
=dsKk
-----END PGP SIGNATURE-----

--BOKacYhQ+x31HxR3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060807210603.GA85637>