From 7f9c45ac00137288cfb632cdfa093bc2f87c045b Mon Sep 17 00:00:00 2001 From: Gerhard Lazu Date: Fri, 7 Feb 2020 19:10:36 +0000 Subject: Do not use tar flags for reproducible builds on macOS Some of the flags that we currently use are not recognised, so rather than adding a third set of flags, let's just ignore everything for now and circle back to this when it becomes an issue. Signed-off-by: Gerhard Lazu --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a306798e85..0bb41eef63 100644 --- a/Makefile +++ b/Makefile @@ -275,12 +275,15 @@ $(SOURCE_DIST).manifest: $(SOURCE_DIST) find $(notdir $(SOURCE_DIST)) | LC_COLLATE=C sort > $@ ifeq ($(shell tar --version | grep -c "GNU tar"),0) +# Skip all flags if this is Darwin (a.k.a. macOS, a.k.a. OS X) +ifeq ($(shell uname | grep -c "Darwin"),0) TAR_FLAGS_FOR_REPRODUCIBLE_BUILDS = --uid 0 \ --gid 0 \ --numeric-owner \ --no-acls \ --no-fflags \ --no-xattrs +endif else TAR_FLAGS_FOR_REPRODUCIBLE_BUILDS = --owner 0 \ --group 0 \ -- cgit v1.2.1