[coreboot-gerrit] New patch to review for coreboot: util/release/build-release: Update tar command

Martin Roth (martinroth@google.com) gerrit at coreboot.org
Thu Oct 6 00:35:48 CEST 2016


Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16900

-gerrit

commit e8efb386f79ef12e620c8570b7c7093f26cd4970
Author: Martin Roth <martinroth at google.com>
Date:   Wed Oct 5 16:35:29 2016 -0600

    util/release/build-release: Update tar command
    
    Between GNU Tar 1.28 & 1.29, the files excluded by --exclude-vcs was
    updated.  This breaks the reproducibility.  Instead, just manually
    exclude the files to match what was excluded in v 1.28 and earlier.
    
    Change-Id: Ie0717891506f4a6d750ff264f9cc2494a296265b
    Signed-off-by: Martin Roth <martinroth at google.com>
---
 util/release/build-release | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/util/release/build-release b/util/release/build-release
index 20fbfb6..895285e 100755
--- a/util/release/build-release
+++ b/util/release/build-release
@@ -56,8 +56,8 @@ printf "%s-%s\n" "$VERSION_NAME"  "$(git log --pretty=%H|head -1)" > .coreboot-v
 tstamp=$(git log --pretty=format:%ci -1)
 cd ..
 
-tar --sort=name --mtime="$tstamp" --owner=coreboot:1000 --group=coreboot:1000 --exclude-vcs --exclude="coreboot-${VERSION_NAME}/3rdparty/blobs" -cvf - "coreboot-${VERSION_NAME}" |xz -9 > "coreboot-${VERSION_NAME}.tar.xz"
-tar --sort=name --mtime="$tstamp" --owner=coreboot:1000 --group=coreboot:1000 --exclude-vcs -cvf - "coreboot-${VERSION_NAME}/3rdparty/blobs" |xz -9 > "coreboot-blobs-${VERSION_NAME}.tar.xz"
+tar --sort=name --mtime="$tstamp" --owner=coreboot:1000 --group=coreboot:1000 --exclude=*/.git --exclude=*/.gitignore --exclude="coreboot-${VERSION_NAME}/3rdparty/blobs" -cvf - "coreboot-${VERSION_NAME}" |xz -9 > "coreboot-${VERSION_NAME}.tar.xz"
+tar --sort=name --mtime="$tstamp" --owner=coreboot:1000 --group=coreboot:1000 --exclude=*/.git --exclude=*/.gitignore -cvf - "coreboot-${VERSION_NAME}/3rdparty/blobs" |xz -9 > "coreboot-blobs-${VERSION_NAME}.tar.xz"
 
 if [ -n "${GPG_KEY_ID}" ]; then
 	gpg2 --armor --local-user "$GPG_KEY_ID" --output "coreboot-${VERSION_NAME}.tar.xz.sig" --detach-sig "coreboot-${VERSION_NAME}.tar.xz"



More information about the coreboot-gerrit mailing list