aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Documentation/pbuilder-doc.xml4
-rw-r--r--debian/changelog6
-rw-r--r--pbuilder-buildpackage-funcs2
4 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f8c326..a03fbf3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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