[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

(%prep) stage failes on EVERY build?!



Okay, I've tried to solve this one on my own, but I can't seem find any
information on this generic problem (maybe I'm not looking in the right
place). I have the following (from RedHat 7.3 with updates):

- - - - - - - - - -

# rpm -qa | grep -i rpm | sort
rpm2html-1.7-6
rpm-4.0.4-7x.18
rpm-build-4.0.4-7x.18
rpmfind-1.7-7
rpmlint-0.38-5
rpm-python-4.0.4-7x.18

- - - - - - - - - -

I cannot build ANY package from a tarball. No matter which one I try, I
get something like the following:

- - - - - - - - - -

# rpm -tb /usr/src/redhat/SOURCES/nagios-1.0b3.tar.gz
find: /var/tmp/nagios-buildroot/etc/: No such file or directory
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.81084
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf nagios-1.0b3
+ /bin/gzip -dc /usr/src/redhat/SOURCES/nagios-1.0b3.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nagios-1.0b3
/var/tmp/rpm-tmp.81084: cd: nagios-1.0b3: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.81084 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.81084 (%prep)

- - - - - - - - - -

What's REALLY frustrating is that the directory it claims to be missing
actually is there:

- - - - - - - - - -

# cd /usr/src/redhat/BUILD
#  ls
total 4
   4 nagios-1.0b3/

- - - - - - - - - -

What's worse is that the script that claims to fail, can be run by hand
just find:

- - - - - - - - - -

# chmod +x /var/tmp/rpm-tmp.81084
# /var/tmp/rpm-tmp.81084
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf nagios-1.0b3
+ /bin/gzip -dc /usr/src/redhat/SOURCES/nagios-1.0b3.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nagios-1.0b3
/var/tmp/rpm-tmp.81084: cd: nagios-1.0b3: No such file or directory
++ /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,g-w,o-w .
+ mv contrib/htaccess.sample .
mv: cannot stat `contrib/htaccess.sample': No such file or directory
+ exit 0

- - - - - - - - - -

What gives? This happens with EVERY tarball I try to do a "rpm -tb" on
(and every spec file I try to do a "rpm -bb" on). I'm just about at my
wit's end trying to figure this thing out. I'm sorry if this is
redundant, and I appreciate any assistance. Thanks in advance.

--Matt

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []