Subject: copying directories and tar wanting to unlink in graphics/netpbm
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/31/2003 10:36:42
When I try to install pkgsrc/graphics/netpbm, it does:

/bin/tar cf - * | /bin/tar xpCf
 /usr - &&       /bin/rm -fr
/tmp/pkgsrc/graphics/netpbm/work.shasta/staging
/bin/tar: bin: Cannot unlink: Directory not empty
/bin/tar: include: Cannot unlink: Directory not empty
/bin/tar: lib: Cannot unlink: Directory not empty
/bin/tar: man: Cannot unlink: Directory not empty
/bin/tar: man/man1: Cannot unlink: Directory not empty
/bin/tar: man/man3: Cannot unlink: Directory not empty
/bin/tar: man/man5: Cannot unlink: Directory not empty
/bin/tar: share: Cannot unlink: Directory not empty
/bin/tar: share/doc: Cannot unlink: Directory not empty
/bin/tar: share/doc/netpbm: Cannot unlink: Directory not empty
/bin/tar: share/netpbm: Cannot unlink: Directory not empty
/bin/tar: Error exit delayed from previous errors

This is part of the pkgsrc/graphics/netpbm/Makefile post-install target.

This is tar (GNU tar) 1.13.25 (under a Linux).

Does anyone know why this tar thinks this should be --unlink?

It seems like pkgsrc has several methods for copying directories. What is
the suggested way -- to be consistent? (cpio, tar, pax, cp -R)

   Jeremy C. Reed
   http://bsd.reedmedia.net/