]> git.cworth.org Git - notmuch/commitdiff
Makefile.local: have all files in release tarball be owned by root
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 8 Apr 2017 19:00:17 +0000 (22:00 +0300)
committerDavid Bremner <david@tethera.net>
Fri, 14 Apr 2017 19:17:46 +0000 (16:17 -0300)
The tar content `git archive` creates (reproducibly) have owner and
group set to 'root'. (GNU) tar writes user ids to the added file
`version` by default. The contents of tar archive looks better and
more consistent when owner and group in all files are the same.

While at it, split this long command line to multiple lines.

Makefile.local

index 03eafaaa523bf82b00237860fd590d32c8bead7a..3d3474e0c97e213358862e671dd009a4600c536c 100644 (file)
@@ -31,7 +31,9 @@ $(TAR_FILE):
        fi ; \
        git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ $$ref > $(TAR_FILE).tmp
        echo $(VERSION) > version.tmp
-       tar --append -f $(TAR_FILE).tmp --transform s_^_$(PACKAGE)-$(VERSION)/_  --transform 's_.tmp$$__' version.tmp
+       tar --owner root --group root --append -f $(TAR_FILE).tmp \
+               --transform s_^_$(PACKAGE)-$(VERSION)/_  \
+               --transform 's_.tmp$$__' version.tmp
        rm version.tmp
        gzip < $(TAR_FILE).tmp > $(TAR_FILE)
        @echo "Source is ready for release in $(TAR_FILE)"