[CentOS] mock %post(pam) failure

Fri Apr 10 11:26:55 UTC 2009
Fabian Arrotin <fabian.arrotin at arrfab.net>

Stuart Jansen wrote:
> On Thu, 2009-04-09 at 16:54 -0700, Bill Campbell wrote:
>> 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 127
>> This 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 :-).
> 
> Except that isn't _my_ RPM. I'm trying to build a python package. This
> is happening during the initial phase when mock creates a build chroot
> by yum installing required build RPMs.
> 

*ack*

Same thing here when trying to initialize the buildroot with `mock init 
-r centos-5-i386.cfg --debug`

/var/tmp/rpm-tmp.15029: line 6: cat: command not found
/var/tmp/rpm-tmp.15029: line 7: rm: command not found
/var/tmp/rpm-tmp.15029: line 22: install: command not found
/var/tmp/rpm-tmp.15029: line 25: install: command not found
error: %post(pam-0.99.6.2-4.el5.i386) scriptlet failed, exit status 127

But that doesn't happen with x86_64 though .. To be investigated


-- 
--
Fabian Arrotin
  idea=`grep -i clue /dev/brain`
  test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer.sh