[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Fri Aug 18 13:17:37 UTC 2017


The branch master has been updated
       via  77a9c26e03ccfec8d16985bce79e95eb6dc2dd2e (commit)
       via  17c84aa763b1d69c5446542bf9b4e2f642c570f2 (commit)
       via  34a5b7d727204eb990acd44899d457245ac94d7c (commit)
      from  fdf9450f4266971035ca5f87c46c3826b49b5757 (commit)


- Log -----------------------------------------------------------------
commit 77a9c26e03ccfec8d16985bce79e95eb6dc2dd2e
Author: Richard Levitte <levitte at openssl.org>
Date:   Thu Aug 17 14:08:43 2017 +0200

    Add a comment on expectations in the "tar" target
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/4179)

commit 17c84aa763b1d69c5446542bf9b4e2f642c570f2
Author: Richard Levitte <levitte at openssl.org>
Date:   Thu Aug 17 14:04:36 2017 +0200

    Prepare tarball in dist directory
    
    We changed directory to the wrong directory.
    This change also separates the preparation phase from the tarball
    building phase.
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/4179)

commit 34a5b7d727204eb990acd44899d457245ac94d7c
Author: Richard Levitte <levitte at openssl.org>
Date:   Thu Aug 17 14:04:18 2017 +0200

    Turn on error sensitivity in the "tar" target
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/4179)

-----------------------------------------------------------------------

Summary of changes:
 Configurations/unix-Makefile.tmpl | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index 0603b41..fbe7e9a 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -679,9 +679,12 @@ tags TAGS: FORCE
 
 # Release targets (note: only available on Unix) #####################
 
+# If your tar command doesn't support --owner and --group, make sure to
+# use one that does, for example GNU tar
 TAR_COMMAND=$(TAR) $(TARFLAGS) --owner 0 --group 0 -cvf -
 PREPARE_CMD=:
 tar:
+	set -e; \
 	TMPDIR=/var/tmp/openssl-copy.$$$$; \
 	DISTDIR=$(NAME); \
 	mkdir -p $$TMPDIR/$$DISTDIR; \
@@ -690,17 +693,17 @@ tar:
 	 excl_re="^(fuzz/corpora|`echo $$excl_re | sed -e 's/ /$$|/g'`\$$)"; \
 	 echo "$$excl_re"; \
 	 git ls-tree -r --name-only --full-tree HEAD \
-	 | grep -v -E "$$excl_re" \
+	 | egrep -v "$$excl_re" \
 	 | while read F; do \
 	       mkdir -p $$TMPDIR/$$DISTDIR/`dirname $$F`; \
 	       cp $$F $$TMPDIR/$$DISTDIR/$$F; \
 	   done); \
-	(cd $$TMPDIR; \
+	(cd $$TMPDIR/$$DISTDIR; \
 	 $(PREPARE_CMD); \
-	 find $$TMPDIR/$$DISTDIR -type d -print | xargs chmod 755; \
-	 find $$TMPDIR/$$DISTDIR -type f -print | xargs chmod a+r; \
-	 find $$TMPDIR/$$DISTDIR -type f -perm -0100 -print | xargs chmod a+x; \
-	 $(TAR_COMMAND) $$DISTDIR) \
+	 find . -type d -print | xargs chmod 755; \
+	 find . -type f -print | xargs chmod a+r; \
+	 find . -type f -perm -0100 -print | xargs chmod a+x); \
+	(cd $$TMPDIR; $(TAR_COMMAND) $$DISTDIR) \
 	| (cd $(SRCDIR); gzip --best > $(TARFILE).gz); \
 	rm -rf $$TMPDIR
 	cd $(SRCDIR); ls -l $(TARFILE).gz


More information about the openssl-commits mailing list