Subject: pax hanging, looping because mkdir . and then rmdir .
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 01/13/2003 16:29:54
I have pax built from bootstrap-pkgsrc on Dec. 28. This is under Linux.

Installing pkgsrc/graphics/lcms gets hung in a loop at the

 cd /home/jeremy/netbsd/usr/pkgsrc/graphics/lcms/work/lcms-1.06/doc &&
 /usr/bin/pax -rw . /usr/share/doc/lcms

strace tells me (this is what loops):

lstat("/usr", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("/usr/share/doc", {st_mode=S_IFDIR|0755, st_size=10240, ...}) = 0
lstat("/usr/share/doc/lcms", 0xbfffdbf8) = -1 ENOENT (No such file or
mkdir("/usr/share/doc/lcms", 0777)      = 0
access("/usr/share/doc/lcms", R_OK|W_OK|X_OK) = 0
mkdir("/usr/share/doc/lcms/.", 0754)    = -1 EEXIST (File exists)
lstat("/usr/share/doc/lcms/.", {st_mode=S_IFDIR|0755, st_size=1024, ...})
= 0
rmdir("/usr/share/doc/lcms/.")          = 0

(I can provide complete strace.)

othersrc/bootstrap-pkgsrc/pax hasn't been updated since I last updated to
it (Dec. 28).

I was going to try pkgtools/pax, but it (pax-19990423) doesn't build on my
Linux box. I won't look at it -- since it is old.

For graphics/lcms I just got rid of the pax and used:
 cp -dR ${WRKSRC}/doc/* ${PREFIX}/share/doc/lcms
(which probably isn't portable)

   Jeremy C. Reed

p.s. I think pkgtools/pax should be at archivers/pax instead or at least
CATEGORIES should include archivers.