Bug 16924

Summary: rebuild of src.rpm fails
Product: [Retired] Red Hat Linux Reporter: Pawel Salek <pawsa>
Component: postgresqlAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-25 08:06:51 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 Pawel Salek 2000-08-25 08:06:49 UTC
Rebuild of src.rpm fails. The compilation seems to be OK, rpm executes on
my home system (which is really 6.2 with rpm-3.0.5) find-provides and
find-requires but never writes the generated rpms. On pure pinstripe, the
installation fails as shown at the very bottom of this description.

Funny enough, I took postgresql-7.0.2 from contrib directory, removed pgsql
patch from postgresql.spec - and this spec file controlled successfully the
rpm build on 6.2

I guess postgresql.spec in postgresql-7.0.2 is broken.

The end of failed build on Pinstripe follows:

make[2]: Entering directory
`/usr/src/redhat/BUILD/postgresql-7.0.2/src/pl/tcl'
Makefile:22: Makefile.tcldefs: No such file or directory
/bin/sh mkMakefile.tcldefs.sh
make[2]: Leaving directory
`/usr/src/redhat/BUILD/postgresql-7.0.2/src/pl/tcl'
make[2]: Entering directory
`/usr/src/redhat/BUILD/postgresql-7.0.2/src/pl/tcl'
gcc -pipe -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -fPIC
-DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1
-DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1
-DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1
-DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1
-DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1  -I../../../src/include
-I../../../src/backend    -c -o pltcl.o pltcl.c
gcc -pipe -shared -o pltcl.so pltcl.o -L/usr/lib -ltcl8.3 -ldl  -lieee -lm
-lc
rm pltcl.o
make[2]: Leaving directory
`/usr/src/redhat/BUILD/postgresql-7.0.2/src/pl/tcl'
make[1]: Leaving directory `/usr/src/redhat/BUILD/postgresql-7.0.2/src/pl'
All of PostgreSQL is successfully made. Ready to install.
+ pushd interfaces/python
/usr/src/redhat/BUILD/postgresql-7.0.2/src/interfaces/python
/usr/src/redhat/BUILD/postgresql-7.0.2/src
/usr/src/redhat/BUILD/postgresql-7.0.2
+ cp /usr/lib/python1.5/config/Makefile.pre.in .
cp: /usr/lib/python1.5/config/Makefile.pre.in: No such file or directory
Bad exit status from /var/tmp/rpm-tmp.48669 (%build)

Comment 1 Trond Eivind Glomsrxd 2000-08-25 11:29:23 UTC
You need python-devel installed (which has since been added as a BuildPrereq).