Bug 151769

Summary: y2pmbuild fails to run su in chroot
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Kai Blin <blin>
Component: DevelopmentAssignee: Ludwig Nussel <lnussel>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: pth
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: SuSE Linux 10.0   
URL: http://suse.pastebin.com/558515
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Kai Blin 2006-02-17 11:53:23 UTC
When trying to build a package according to the documentation found on http://en.opensuse.org/SUSE_Build_Tutorial, y2pmbuild reports su: incorrect password. A full trace of the run can be found at http://suse.pastebin.com/558515.
stracing y2pmbuild shows that the failing call is chroot "$buildroot" su - -c /sbin/SuSEconfig on line 277 in runsuseconfig() in y2pmbuild. Trying to confirm that manually, I first did a chroot /var/tmp/build-root.root.10.0-i386/ /sbin/SuSEconfig, which worked just fine. Then I did chroot /var/tmp/build-root.root.10.0-i386/ su -  -c /sbin/SuSEconfig which failed with su: incorrect password
Removing the su - -c calls makes y2pmbuild to continue a bit further. It will then fail on the chroot "$buildroot" /usr/sbin/useradd -m $builduser -d $builduserhome call.
Comment 1 Ludwig Nussel 2006-02-17 13:35:53 UTC
your BuildRequires/neededforbuild line is incomplete. You need to either add a full working set of packages or (better) remove the aaa_base requirement in which case y2pmbuild will complete the set for you depending on the distribution you are building for. The missing package leading to failing su specifically is pam-modules.