Bug 147705

Summary: su does not work in a build-root
Product: [openSUSE] SUSE Linux 10.1 Reporter: Karsten Keil <karsten.keil>
Component: DevelopmentAssignee: Michael Schröder <mls>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: aj, forgotten_OS1JNCFbCX, kukuk, ro
Version: Beta 3   
Target Milestone: ---   
Hardware: 32bit   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: strace of chroot /var/tmp/build-root su - abuild
proposed patch

Description Karsten Keil 2006-02-02 16:49:17 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.
Comment 1 Karsten Keil 2006-02-02 16:52:41 UTC
Created attachment 66223 [details]
strace of chroot /var/tmp/build-root su - abuild
Comment 2 Michael Schröder 2006-02-02 16:54:51 UTC
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".
Comment 3 Karsten Keil 2006-02-03 12:24:36 UTC
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.
Comment 4 Karsten Keil 2006-02-03 12:33:06 UTC
Created attachment 66335 [details]
proposed patch

If you accept this patch, I can submit a new package.
Comment 5 Hendrik Vogelsang 2006-02-27 12:07:30 UTC
*** Bug 149389 has been marked as a duplicate of this bug. ***
Comment 6 Michael Schröder 2006-03-17 18:14:26 UTC
The build.rpm from the last beta should work.