[PLUG] centos4.3 rpmbuild not working as normal user

Paul Heinlein heinlein at madboa.com
Mon Aug 7 17:19:13 UTC 2006


On Mon, 7 Aug 2006, Galen Seitz wrote:

> In the past I have been able to build rpm packages on my CentOS 4.3 
> (x86_64) system as a normal user, but something has broken.  Now the 
> prep and build stages seem to be NOPs, causing the install stage to 
> complain about missing files.
> 
> Here I run the prep stage as a normal user.  The cdecl directory does
> not get created under BUILD. [....]
> 
> [galens at toto ~]$ cat .rpmmacros
> %_topdir        /home/galens/rpm
> [galens at toto ~]$ rpm -i download/cdecl-2.5-30.src.rpm
> warning: user buildcentos does not exist - using root
> warning: group buildcentos does not exist - using root
> warning: user buildcentos does not exist - using root
> warning: group buildcentos does not exist - using root
> warning: user buildcentos does not exist - using root
> warning: group buildcentos does not exist - using root
> [galens at toto ~]$ cd rpm/SPECS/
> [galens at toto SPECS]$ rpmbuild -bp cdecl.spec
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.92486

Do you still have /var/tmp/rpm-tmp.92486 lying around your filesystem? 
If so, do the contents look like the script that produced the 
root-invoked output:

> [root at toto SPECS]# rpmbuild -bp cdecl.spec
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.39676
> + umask 022
> + cd /usr/src/redhat/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /usr/src/redhat/BUILD
> + rm -rf cdecl-2.5
> + /bin/gzip -dc /usr/src/redhat/SOURCES/cdecl-2.5.tar.gz
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd cdecl-2.5
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chown -Rhf root .
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chgrp -Rhf root .
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + echo 'Patch #0 (cdecl-2.5.misc.patch):'
> Patch #0 (cdecl-2.5.misc.patch):
> + patch -p1 -b --suffix .misc -s
> + exit 0

-- 
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com



More information about the PLUG mailing list