[Reproducible-builds] [misc] 02/03: chown -R pbuilder:pbuilder <result-path>

Stéphane Glondu glondu at moszumanska.debian.org
Sun Feb 23 13:28:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

glondu pushed a commit to branch master
in repository misc.

commit f3f3d3229ccb7537e2adcf001711fa31421d528f
Author: Stephane Glondu <steph at glondu.net>
Date:   Sun Feb 23 09:53:22 2014 +0100

    chown -R pbuilder:pbuilder <result-path>
---
 rebuild-twice-in-same-path/README           | 4 ++++
 rebuild-twice-in-same-path/pbuilder-execute | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/rebuild-twice-in-same-path/README b/rebuild-twice-in-same-path/README
index 0ed4523..922437e 100644
--- a/rebuild-twice-in-same-path/README
+++ b/rebuild-twice-in-same-path/README
@@ -43,3 +43,7 @@ It will run the `pbuilder-execute` script through pbuilder, which is
 itself run through make. With make, you can rebuild several packages
 in parallel using the -j option (beware, the interactive output might
 not make any sense then).
+
+The output will be in <result-path> and owned by pbuilder:pbuilder
+inside the chroot. Because of that, you might want it to have the same
+UID/GID as your regular user outside of the chroot.
diff --git a/rebuild-twice-in-same-path/pbuilder-execute b/rebuild-twice-in-same-path/pbuilder-execute
index e026e91..7a97edf 100755
--- a/rebuild-twice-in-same-path/pbuilder-execute
+++ b/rebuild-twice-in-same-path/pbuilder-execute
@@ -58,6 +58,7 @@ umount /usr/src/debian
 changes=/tmp/src/a/$base.changes
 if [ ! -f $changes ]; then
     echo "First build of $pkg failed"
+    chown -R pbuilder:pbuilder $result/$pkg
     exit 4
 fi
 
@@ -76,6 +77,7 @@ umount /usr/src/debian
 changes=/tmp/src/b/$base.changes
 if [ ! -f $changes ]; then
     echo "Second build of $pkg failed"
+    chown -R pbuilder:pbuilder $result/$pkg
     exit 4
 fi
 
@@ -85,3 +87,5 @@ else
     dcmd cp $changes $result/$pkg/b
 fi
 rm -rf /tmp/src/b
+
+chown -R pbuilder:pbuilder $result/$pkg

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-builds mailing list