While upgrading the Slony port for FreeBSD, I found this error when extracting files from slony1-2.1.4-docs.tar.bz2 using bsdtar 2.8.5 and libarchive 2.8.5: $ tar xvfz /usr/ports/distfiles/slony1-2.1.4-docs.tar.bz2 x slony1-2.1.4/doc/adminguide/LEGALNOTICE.html x slony1-2.1.4/doc/adminguide/additionalutils.html x slony1-2.1.4/doc/adminguide/admconninfo.html x slony1-2.1.4/doc/adminguide/administration.html x slony1-2.1.4/doc/adminguide/advanced.html [...] x slony1-2.1.4/doc/adminguide/view.sl-seqlastvalue.html x slony1-2.1.4/doc/adminguide/watchdogs.html x slony1-2.1.4/doc/adminguide/man.sgml x slony1-2.1.4/doc/adminguide/performance.html: Can't create 'slony1-2.1.4/doc/adminguide/performance.html' x slony1-2.1.4/doc/adminguide/performance.sgml x slony1-2.1.4/doc/adminguide/complexenv.png x slony1-2.1.4/doc/adminguide/complexfail.png x slony1-2.1.4/doc/adminguide/stylesheet.css x slony1-2.1.4/doc/adminguide/slony.pdf tar: Error exit delayed from previous errors. Apparently, two versions of performance.html exist, and one is a link to itself: $ tar tvfz /usr/ports/distfiles/slony1-2.1.4-docs.tar.bz2 | grep performance.html -rw-r--r-- 0 ssinger ssinger 7032 Aug 16 00:09 slony1-2.1.4/doc/adminguide/performance.html hrw-r--r-- 0 ssinger ssinger 0 Aug 16 00:09 slony1-2.1.4/doc/adminguide/performance.html link to slony1-2.1.4/doc/adminguide/performance.html This error is ignored by GNU tar, so a simple workaround is to use archivers/gtar to unpack the docs tarball.
I have rebuilt the tar file as slony1-2.1.4-docs-2.tar.bz2 this file should not have performance.html included twice