From ffff77fd94cb5612339215caae3c2edc55def84d Mon Sep 17 00:00:00 2001 From: Fred Wright Date: Sun, 23 Dec 2018 18:24:41 -0800 Subject: Fixes symlink handling in tarball creation. The --transform pattern was prepending gpsd- to the targets of the relative symlinks, which is completely wrong. Fortunately, the 'S' flag in --transform is available to suppress that behavior. TESTED: Verified that the new tarball has correct symlinks, and no unexpected differences from the old one. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index d763e512..76d67a06 100644 --- a/SConstruct +++ b/SConstruct @@ -2592,7 +2592,7 @@ if os.path.exists("gpsd.c") and os.path.exists(".gitignore"): # How to build a tarball. dist = env.Command('dist', distfiles, [ - '@tar --transform "s:^:gpsd-${VERSION}/:" ' + '@tar --transform "s:^:gpsd-${VERSION}/:S" ' ' -czf gpsd-${VERSION}.tar.gz $SOURCES', '@ls -l gpsd-${VERSION}.tar.gz', ]) -- cgit v1.2.1