1 Sep 2004 07:08
installing many files in subdirectories ... and cpio
Jeremy C. Reed <reed <at> reedmedia.net>
2004-09-01 05:08:43 GMT
2004-09-01 05:08:43 GMT
pkgsrc has use of cpio for installing files. Example:
emulators/linux-locale/Makefile
cross/i386-linuxglibc1/Makefile
I thought I saw a use of pax to install cpio files. But I don't see now.
And pax is used to extract cpio distfiles. Example:
devel/sfio/Makefile
sysutils/storage-manager/Makefile
fonts/chkfontpath/Makefile
And cpio is used to extract cpio distfiles. Example:
fonts/ko-mizi/Makefile
cross/i386-linux/Makefile
Variable CPIO does not exist.
Should we define CPIO? Should we get rid of all cpio use and just use PAX
since it supports same?
I am using for a new package (openclipart):
CPIO?= /usr/bin/cpio
...
cd ${WRKSRC} && ${FIND} [a-z]* \! -name "*.png" | \
${CPIO} -p ${PREFIX}/share/openclipart
Should I use cpio? Or what is the recommended way to pass through?
(Continue reading)
I'm now encountering several other problems,
which I'm tackling one after the other :
- All the packages that I want to install seem to have a dependency with
gcc (/usr/ports/lang/gcc, not gcc3), even the "low-level" ones (gettext,
gmake, libiconv, ...). So, I'm beginning with gcc-2.95.3. As before, I'm
using IBM's gcc 2.95 for the job.
- gcc-2.95.3 didn't want to compile because it couldn't find
/usr/pkg/bin/zcat. So, I created a symlink from /usr/bin/zcat to
/usr/pkg/bin/zcat, but it didn't help. This is because the original AIX
zcat only handles compressed (.Z), not gzipped files. Fortunately, I
managed to find another zcat on the system, /opt/freeware/bin/zcat
(maybe coming from IBM's collection of Linux tools ?). A new symlink
solved the problem.
- Then it complained about a missing /usr/pkg/bin/gpatch. Again, I
managed to find a remplacement in /opt/freeware/bin/patch, and symlink
from it.
- Then it complained about a missing /usr/pkg/bin/gmake. (But I can't
install gmake if I don't have gcc first...). Rather than create a
Cheers
RSS Feed