guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: build: 'assert-no-store-file-names' depends on ChangeLog.


From: Ludovic Courtès
Subject: 01/03: build: 'assert-no-store-file-names' depends on ChangeLog.
Date: Sun, 14 May 2017 09:50:04 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit dfd248648f59af374bf2c74403f0e561464f6afe
Author: Ludovic Courtès <address@hidden>
Date:   Sun May 14 11:46:08 2017 +0200

    build: 'assert-no-store-file-names' depends on ChangeLog.
    
    This fixes a bug whereby "make distcheck -j4" might invoke
    'assert-no-store-file-names' when the temporary $(distdir)/cl-t
    exists (and contains store file names), before $(distdir)/ChangeLog has
    been created.
    
    * Makefile.am (assert-no-store-file-names): Depend on $(distdir)/ChangeLog.
    (dist-hook): Depend on $(distdir)/ChangeLog instead of 'gen-ChangeLog'.
    (gen-ChangeLog): Add $(distdir)/ChangeLog left of the colon.
---
 Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index d85b671..4b5a29a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -518,7 +518,7 @@ guix-binary.%.tar.xz:
        cp "$$tarball" "address@hidden" ; mv "address@hidden" "$@"
 
 
-dist-hook: gen-ChangeLog gen-AUTHORS gen-tarball-version
+dist-hook: $(distdir)/ChangeLog gen-AUTHORS gen-tarball-version
 dist-hook: assert-no-store-file-names
 
 distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
@@ -531,7 +531,7 @@ $(top_srcdir)/.version:
 gen-tarball-version:
        echo $(VERSION) > "$(distdir)/.tarball-version"
 
-gen-ChangeLog:
+gen-ChangeLog $(distdir)/ChangeLog:
        $(AM_V_GEN)if test -d .git; then                \
          $(top_srcdir)/build-aux/gitlog-to-changelog   \
            > $(distdir)/cl-t;                          \
@@ -638,7 +638,7 @@ update-guix-package:
           "`git rev-parse HEAD`"
 
 # Make sure we're not shipping a file that embeds a local /gnu/store file name.
-assert-no-store-file-names:
+assert-no-store-file-names: $(distdir)/ChangeLog
        $(AM_V_at)if grep -r --exclude=*.texi --exclude=*.info                  
\
             --exclude=*.info-[0-9] --exclude=*.dot                             
\
             --exclude=*.eps --exclude-dir=bootstrap                            
\



reply via email to

[Prev in Thread] Current Thread [Next in Thread]