Howdy, If the USER environment variable is set, aegis's test suite uses it to determine what user it's running as. If pbuilder's configuration variable BUILDUSERNAME is set, pbuilder sets the LOGNAME environment varible to its value but not the USER environment variable, so it stays set to root. Thus, aegis's test suite believes it's running as root, which causes many of the tests to fail.
If I make pbuilder set the USER environment variable as well, the problem is fixed. I've attached the patch. Is it OK to reassign this to pbuilder? -- Matt
diff -ru pbuilder-0.171~/pbuilder-buildpackage pbuilder-0.171/pbuilder-buildpackage --- pbuilder-0.171~/pbuilder-buildpackage 2007-08-21 21:02:25.000000000 -0700 +++ pbuilder-0.171/pbuilder-buildpackage 2007-08-21 21:02:47.000000000 -0700 @@ -32,7 +32,7 @@ fi; if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then - SUTOUSER="env LOGNAME=$BUILDUSERNAME su -p $BUILDUSERNAME" + SUTOUSER="env LOGNAME=$BUILDUSERNAME USER=$BUILDUSERNAME su -p $BUILDUSERNAME" DEBBUILDOPTS="$DEBBUILDOPTS -rfakeroot" EXTRAPACKAGES="${EXTRAPACKAGES} fakeroot" echo "I: using fakeroot in build."