Subject: Extracting files with ${EXTRACT_CMD}
To: None <>
From: Martti Kuparinen <>
List: tech-pkg
Date: 09/04/2003 09:47:38

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}

.for SKIN in ${SKINS}
     ${GTAR} xCmzf somedirectory ${DISTDIR}/${DIST_SUBDIR}/${SKIN}

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...


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