summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@lazu.co.uk>2020-02-07 19:10:36 +0000
committerGerhard Lazu <gerhard@lazu.co.uk>2020-02-07 19:16:04 +0000
commit7f9c45ac00137288cfb632cdfa093bc2f87c045b (patch)
treee57a285d1d9e7a1418f49a6d2010d52dc7d7c5b4 /Makefile
parent52e6c65e004affb27489aab2d1bda2ca51aa7519 (diff)
downloadrabbitmq-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--Makefile3
1 files changed, 3 insertions, 0 deletions
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 \