Bug 2261

Summary: Error running "rpm -bb libPropList.spec"
Product: [Retired] Red Hat Raw Hide Reporter: parabola
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: ftp://rufus.w3.org/linux/rawhide/1.0/SRPMS/SRPMS/libPropList-0.8.3-2.src.rpm
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-08-30 23:22:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description parabola 1999-04-19 07:18:21 UTC
When I try to build the RPM, it bombs out:

[root@garfield] /usr/src/redhat/SPECS
# rpm -bb libPropList.spec
Executing: %prep
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf libPropList-0.8.3
+ /bin/gzip -d
+ tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd libPropList-0.8.3
+ chown -R root .
+ chgrp -R root .
+ chmod -R a+rX,g-w,o-w .
+ exit 0
Executing: %build
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd libPropList-0.8.3
+ %configure
fg: no job control
+ make
make: *** No targets.  Stop.
Bad exit status from /var/tmp/rpm-tmp.88865 (%build)
Command exited with non-zero status 1

I have to change one line in the spec file in order to make
it work.  Here's the patch:

*** -   Mon Apr 19 17:13:34 1999
--- libPropList.spec    Mon Apr 19 17:12:35 1999
***************
*** 21,27 ****
  %setup -q

  %build
! %configure
  make

  %install
--- 21,27 ----
  %setup -q

  %build
! ./configure
  make

  %install

Comment 1 Jeff Johnson 1999-04-19 08:22:59 UTC
This is an rpm version problem. Rpm-3.0 uses macros, and the
%configure expands to

	[ -f configure.in ] && libtoolize --copy --force
	CFLAGS="$RPM_OPT_FLAGS" ./configure $RPM_ARCH-redhat-linux
\ 	          --prefix=/usr

You probably need to upgrade to rpm-2.9x or add "--prefix=/usr"

Comment 2 parabola 1999-04-19 11:34:59 UTC
If rpm-2.9x is a prerequisite of the SRPM then it should bomb out with
meanlingful err msg, when "rpm -i" or "rpm -bb" is run.  Especially
when the rpm that comes with RH-5.2 and the one found by "rpmfind
--sources rpm" is rpm-2.5.6-5.0 and rpm-2.5.5-5.2 only, meaning that's
what most ppl are running.

Any idea where to d/l SRPM of rpm-2.9x?

Comment 3 Jeff Johnson 1999-04-19 14:01:59 UTC
ftp://rpm.redhat.com/pub/rpm/dist/rpm-3.0.x.