diff options
author | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-05-27 16:18:26 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-05-27 16:18:26 +0900 |
commit | 78e0322ace6d4748cfe0eac806205a23bbc6d63e (patch) | |
tree | bee4f1275c1a1a8546c0fe419a2db1dea1c3fd00 | |
parent | 1b14e2b043dc5f4813961fff08c62583127ccde6 (diff) | |
download | pbuilder-78e0322ace6d4748cfe0eac806205a23bbc6d63e.tar pbuilder-78e0322ace6d4748cfe0eac806205a23bbc6d63e.tar.gz |
try setting LOGNAME when user is already created
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Documentation/pbuilder-doc.xml | 4 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | pbuilder-buildpackage-funcs | 2 |
4 files changed, 13 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2007-05-27 Junichi Uekawa <dancer@debian.org> + * pbuilder-buildpackage-funcs: set LOGNAME when build user is + created inside chroot. + * testsuite/run-test.sh: fix scripting for less diffs. * pdebuild.1: fix from diff --git a/Documentation/pbuilder-doc.xml b/Documentation/pbuilder-doc.xml index eae9497..2c8c9c1 100644 --- a/Documentation/pbuilder-doc.xml +++ b/Documentation/pbuilder-doc.xml @@ -980,7 +980,9 @@ cd /var/cache/pbuilder/result/ It is currently safe to ignore this warning message. Please report back if you find any problem with having LOGNAME unset. Setting LOGNAME caused a few problems when invoking - <command>chroot</command>. + <command>chroot</command>. For example, dpkg requires getpwnam + to succeed inside chroot, which means LOGNAME and the related + user information have to be set up inside chroot. </para> </sect1> <sect1 id="nobuildconflictessential"> diff --git a/debian/changelog b/debian/changelog index a80b8ea..24b423e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +pbuilder (0.168) UNRELEASED; urgency=low + + * set LOGNAME when build user is created within chroot. + + -- Junichi Uekawa <dancer@debian.org> Sun, 27 May 2007 16:11:03 +0900 + pbuilder (0.167) unstable; urgency=low [ Junichi Uekawa ] diff --git a/pbuilder-buildpackage-funcs b/pbuilder-buildpackage-funcs index d220c76..62726b0 100644 --- a/pbuilder-buildpackage-funcs +++ b/pbuilder-buildpackage-funcs @@ -94,7 +94,7 @@ function createbuilduser () { cowprotect $BUILDPLACE/etc/shadow echo "$BUILDUSERNAME:!:::::::" >> $BUILDPLACE/etc/shadow fi - unset LOGNAME || true + export LOGNAME="${BUILDUSERNAME}" else unset LOGNAME || true fi |