Subject: Re: "EXTRACT_AFTER_ARGS" in p5-gdbm-5.4.4
To: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: Simon Burge <simonb@netbsd.org>
List: tech-pkg
Date: 05/19/1999 22:29:07
Hubert Feyrer wrote:

> Hi Simon,
> 
> On Wed, 19 May 1999, Simon Burge wrote:
> > Can anyone tell me what the "EXTRACT_AFTER_ARGS" is in p5-gdbm's
> > Makefile?  I can find no reference in mk/bsd.pkg.mk of this.  This
> > is on a 1.4 machine, but it appears the -current also has the same
> > problem.
> > 
> > Here's a bit of the Makefile:
> > 
> > 	EXTRACT_ELEMENTS=       perl5.004_04/ext/GDBM_File
> > 	WRKSRC=                 ${WRKDIR}/${EXTRACT_AFTER_ARGS}
> > 
> > Changing it to:
> > 
> > 	EXTRACT_ELEMENTS=       perl5.004_04/ext/GDBM_File
> > 	WRKSRC=                 ${WRKDIR}/${EXTRACT_ELEMENTS}
> > 
> > seems to work ok, but obviously doesn't handle the general case if more
> > than one "thing" is in EXTRACT_ELEMENTS.
> 
> It seems the extraction process was rototiles several times within the
> last few weeks, and i think this just fell through the cracks - i've fixed
> this now, thanks. 

Ta.  You should also send a pull-up to releng so they can fix the 1.4
branch.

> For your question, the "canonical" way to extract several files is to set
> EXTRACT_ONLY (which defaults to all distfiles). If you want a special
> extraction command, put it in EXTRACT_CMD, and refer to the (single)
> distfile to be extracted (in this look's run) with ${DOWNLOADED_DISTFILE}.
> If you need only some files extracted from a tar- or whatever archive, set
> EXTRACT_ELEMENTS (defaulting to all).
> 
> Returning to your original question, setting WRKSRC to anything like
> EXTRACT_ELEMENTS (or similar the old EXTRACT_AFTER_ARGS), this only works
> if you have one element to extract, of course.
>
> I hope this helps a bit.

Yup - thanks.

Simon.