I recently upgraded an internal build server from C5.2 to C5.3 and now I'm experiencing problems initializing the mock buildroot. Specifically, I'm getting the following error: ------ /var/tmp/rpm-tmp.77062: line 6: cat: command not found /var/tmp/rpm-tmp.77062: line 7: rm: command not found /var/tmp/rpm-tmp.77062: line 22: install: command not found /var/tmp/rpm-tmp.77062: line 25: install: command not found error: %post(pam-0.99.6.2-4.el5.i386) scriptlet failed, exit status 127 ------ Googling has revealed that Fedora had a similar problem about a year ago, but doesn't reveal what to do about it. Apparently there is a circular dependency between pam and coreutils. For some reason yum has recently decided to install pam before coreutils. Has anyone else seen this? More importantly, does anyone have any tips how to resolve or work around the issue?
On Thu, Apr 09, 2009, Stuart Jansen wrote:>I recently upgraded an internal build server from C5.2 to C5.3 and now >I'm experiencing problems initializing the mock buildroot. Specifically, >I'm getting the following error: > >------ >/var/tmp/rpm-tmp.77062: line 6: cat: command not found >/var/tmp/rpm-tmp.77062: line 7: rm: command not found >/var/tmp/rpm-tmp.77062: line 22: install: command not found >/var/tmp/rpm-tmp.77062: line 25: install: command not found >error: %post(pam-0.99.6.2-4.el5.i386) scriptlet failed, exit status 127This looks like the PATH environment variable is not set properly in the RPM build script (or your /bin/ directory is missing which would cause severe heartburn :-). Bill -- INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 Skype: jwccsllc If the government can take a man's money without his consent, there is no limit to the additional tyranny it may practise upon him; for, with his money, it can hire soldiers to stand over him, keep him in subjection, plunder him at discretion, and kill him if he resists. Lysander Spooner, 1852
On 04/09/09 16:46, Stuart Jansen enlightened us:> I recently upgraded an internal build server from C5.2 to C5.3 and now > I'm experiencing problems initializing the mock buildroot. Specifically, > I'm getting the following error: > > ------ > /var/tmp/rpm-tmp.77062: line 6: cat: command not found > /var/tmp/rpm-tmp.77062: line 7: rm: command not found > /var/tmp/rpm-tmp.77062: line 22: install: command not found > /var/tmp/rpm-tmp.77062: line 25: install: command not found > error: %post(pam-0.99.6.2-4.el5.i386) scriptlet failed, exit status 127 > ------ > > Googling has revealed that Fedora had a similar problem about a year > ago, but doesn't reveal what to do about it. Apparently there is a > circular dependency between pam and coreutils. For some reason yum has > recently decided to install pam before coreutils. > > Has anyone else seen this? More importantly, does anyone have any tips > how to resolve or work around the issue? >I just started seeing this in the last week as well. I hadn't had time to start digging into it, though. Matt -- Matt Hyclak Systems and Operations Office of Information Technology Ohio University (740) 593-1222 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20090410/ec010570/attachment-0002.sig>
Stuart Jansen wrote:> I recently upgraded an internal build server from C5.2 to C5.3 and now > I'm experiencing problems initializing the mock buildroot. Specifically, > I'm getting the following error: > > ------ > /var/tmp/rpm-tmp.77062: line 6: cat: command not found > /var/tmp/rpm-tmp.77062: line 7: rm: command not found > /var/tmp/rpm-tmp.77062: line 22: install: command not found > /var/tmp/rpm-tmp.77062: line 25: install: command not found > error: %post(pam-0.99.6.2-4.el5.i386) scriptlet failed, exit status 127 > ------I saw this in my f10 buildroots hosted on centos 5.2. several bugs: 1. rpm/yum (on the buildhost) not respecting pam's Requires(post): coreutils 2. pam's scriptlets unsafe and not ending with ||: 3. rpm/yum (on the buildhost) exiting with error-code on a scriptlet failure (and mock aborting because of it). I'm fairly certain recent rpm/yum on fedora no longer suffers from this. I emailed pam's maintainers about item 2 ~6 months ago, but I don't see it implemented yet. I guess I never filed a bug, will do now. -- Rex