https://bugs.freedesktop.org/show_bug.cgi?id=53857
Bug #: 53857 Summary: Unconditionally use --strip-components for bsdtar Classification: Unclassified Product: LibreOffice Version: unspecified Platform: All OS/Version: FreeBSD Status: UNCONFIRMED Severity: normal Priority: medium Component: Libreoffice AssignedTo: libreoffice-bugs@lists.freedesktop.org ReportedBy: j...@freebsd.org Created attachment 65847 --> https://bugs.freedesktop.org/attachment.cgi?id=65847 Assume --strip-components is always available for bsdtar. bsdtar has --strip-components option. However, it is not properly detected by configure scripts because it does not display the option with --help: % tar --help tar(bsdtar): manipulate archive files First option must be a mode specifier: -c Create -r Add/Replace -t List -u Update -x Extract Common Options: -b # Use # 512-byte records per I/O block -f <filename> Location of archive (default /dev/sa0) -v Verbose -w Interactive Create: tar -c [options] [<file> | <dir> | @<archive> | -C <dir> ] <file>, <dir> add these items to archive -z, -j, -J, --lzma Compress archive with gzip/bzip2/xz/lzma --format {ustar|pax|cpio|shar} Select archive format --exclude <pattern> Skip files that match pattern -C <dir> Change to <dir> before processing remaining files @<archive> Add entries from <archive> to output List: tar -t [options] [<patterns>] <patterns> If specified, list only entries that match Extract: tar -x [options] [<patterns>] <patterns> If specified, extract only entries that match -k Keep (don't overwrite) existing files -m Don't restore modification times -O Write entries to stdout, don't restore to disk -p Restore permissions (including ACLs, owner, file flags) bsdtar 3.0.4 - libarchive 3.0.4 % ls -Rl a total 2 drwxr-xr-x 3 jkim wheel 512 8 20 15:33 b a/b: total 2 drwxr-xr-x 3 jkim wheel 512 8 20 15:33 c a/b/c: total 2 drwxr-xr-x 2 jkim wheel 512 8 20 15:33 d a/b/c/d: total 0 % tar -c -f a.tar a % tar -t -f a.tar a/ a/b/ a/b/c/ a/b/c/d/ % tar -c -f a.tar --strip-components=1 a % tar -t -f a.tar b/ b/c/ b/c/d/ It seems the option is always available for bsdtar according to FreeBSD commit logs. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs