diff options
author | Gerhard Lazu <gerhard@lazu.co.uk> | 2020-02-07 19:10:36 +0000 |
---|---|---|
committer | Gerhard Lazu <gerhard@lazu.co.uk> | 2020-02-07 19:16:04 +0000 |
commit | 7f9c45ac00137288cfb632cdfa093bc2f87c045b (patch) | |
tree | e57a285d1d9e7a1418f49a6d2010d52dc7d7c5b4 /Makefile | |
parent | 52e6c65e004affb27489aab2d1bda2ca51aa7519 (diff) | |
download | rabbitmq-server-git-7f9c45ac00137288cfb632cdfa093bc2f87c045b.tar.gz |
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 <gerhard@lazu.co.uk>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 \ |