Bugzilla – Bug 147705
su does not work in a build-root
Last modified: 2006-03-17 18:14:26 UTC
I try to make build (from build.rpm, not our internal) running on a SUSE OSS Beta3 installation. First problem was, that build want install libselinux, but this does not exist, so I removed it from the default package list. Then build did setup the /var/tmp/build-root successfully but failed to run the chroot $BUILD_ROOT su -c "$RPMBUILD \ $BUILD_PARAMETERS /usr/src/packages/SOURCES/$SPECFILE" - $BUILD_USER command with 'su abuild - invalid password' Also chroot /var/tmp/build-root su abuild does not work. /etc/passwd does contain abuild without a password. I set this to critical, since partners need a working build to create KMP packages and Beta3 is really late to start tests with partner supplied external (None GPL) drivers.
Created attachment 66223 [details] strace of chroot /var/tmp/build-root su - abuild
Well, I have no time to change the external build at the moment. It needs a lot of work, e.g. package expansion, spec file parsing and so on. So I'll ignore the "critical".
OK I found the reason for the su problem, pam_modules was missing and some other packages. I now have a working build that also compile KMP (patch follows). I do not think that we need all enhancements (better spec file parsing, package expansion) now, but we need a solution for partners. Maybe the patch is enough for the moment.
Created attachment 66335 [details] proposed patch If you accept this patch, I can submit a new package.
*** Bug 149389 has been marked as a duplicate of this bug. ***
The build.rpm from the last beta should work.