On Thu, 15 Dec 2022, Matthew Selsky via devel wrote:
On Wed, Dec 14, 2022 at 03:39:29PM -0800, James Browning via devel wrote:
'Do not apply transform to symbolic link targets' [1] Which I
got from googling 'gnu tar transform' IIRC. It is also a
gnuism, but I do not see a portable transform type option as
tar on macOS uses -s and some BSDs seem to lack even that.
I'll take a look this weekend about using "gtar" on macos so we get the GNU
semantics.
GPSD used to have a similar issue, and at one time I made the exact same
fix to the --transform option to avoid garbling symlinks. It would have
been more convenient to test it on the Mac, but using 'gnutar' instead of
'tar' segfaulted, so I had to use a Linux VM to test the change.
Subsequent to that, the GPSD build was reorganized for an unrelated
reason, with the result that the tarball files all now appear in a
directory named the way they should appear in the tarball, rendering the
use of --transform unnecessary. That's probably a better overall
approach, even if it requires making copies (or hardlinks) of the tarball
files, since plain old POSIX tar is then adequate.
Fred Wright
_______________________________________________
devel mailing list
devel@ntpsec.org
https://lists.ntpsec.org/mailman/listinfo/devel