Subject: Extracting files with ${EXTRACT_CMD}
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 09/04/2003 09:47:38
Hi!

We have several packages [1] which abuse "${GTAR} xzf" to extract
additional files. I see problems in Linux where /bin/tar's z flag
does not understand bz2 files.

Let's say whe have something like this (e.g. gmplayer):


EXTRACT_SUFX=   .tar.bz2
SKINS+=         default-1.7${EXTRACT_SUFX}

do-install:
.for SKIN in ${SKINS}
     ${GTAR} xCmzf somedirectory ${DISTDIR}/${DIST_SUBDIR}/${SKIN}
.endfor


How should I re-write the for loop? Use ${EXTRACT_CMD} with the filename
exported into ${extract_file}?

I can try to fix all those packages if I just get an example...

Martti

[1] cd /usr/pkgsrc && grep -r 'GTAR.*z' * | cut -d: -f1