Thread: I can't build the 8.1.0 source rpm from postgresql.org

I can't build the 8.1.0 source rpm from postgresql.org

From
Jerry LeVan
Date:

I downloaded the postgresql-8.1.0 source rpm for Fedora Core 4 from the
rpm repository at postgresql.org.

I installed the rpm with " rpm -i postgresql-8.1.0-2PGDG.src.rpm"

I then attempted to rebuild the packages with

rpmbuild --rebuild --define 'tcl 1' --define 'kerberos 0' --define
'tcldevel 1' \
   --define 'pltcl 1' postgresql-8.1.0....

It appears to die in the prep stage:
************************************************************************
********
++ basename /usr/src/redhat/SOURCES/pgtcldocs-20041108.zip .zip
+ PGTCLDOCDIR=pgtcldocs-20041108
+ mv pgtcldocs-20041108 Pgtcl-docs
+ echo 'Patch #5 (pgtcl-no-rpath.patch):'
Patch #5 (pgtcl-no-rpath.patch):
+ patch -p0 -s
+ pushd Pgtcl
/usr/src/redhat/BUILD/postgresql-8.1.0/Pgtcl /usr/src/redhat/BUILD/
postgresql-8.1.0
+ %aconfver
/var/tmp/rpm-tmp.58757: line 79: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.58757 (%prep)


RPM build errors:
    InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID
748f7d0e
    user devrim does not exist - using root
    group devrim does not exist - using root
    user devrim does not exist - using root
    group devrim does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.58757 (%prep)
********************************************

Any suggestions?

Jerry





Re: I can't build the 8.1.0 source rpm from postgresql.org

From
han.holl@informationslogik.nl
Date:
On Tuesday 29 November 2005 00:42, Jerry LeVan wrote:

> /var/tmp/rpm-tmp.58757: line 79: fg: no job control
> error: Bad exit status from /var/tmp/rpm-tmp.58757 (%prep)
[ cut ]
> Any suggestions?
>
Well, I would look at what line 79 of  /var/tmp/rpm-tmp.58757 has to say.

Cheers,

Han Holl

Re: I can't build the 8.1.0 source rpm from postgresql.org

From
Devrim GUNDUZ
Date:
Hi,

On Mon, 28 Nov 2005, Jerry LeVan wrote:

> I downloaded the postgresql-8.1.0 source rpm for Fedora Core 4 from the
> rpm repository at postgresql.org.
>
> I installed the rpm with " rpm -i postgresql-8.1.0-2PGDG.src.rpm"
>
> I then attempted to rebuild the packages with
>
> rpmbuild --rebuild --define 'tcl 1' --define 'kerberos 0' --define 'tcldevel
> 1' \
> --define 'pltcl 1' postgresql-8.1.0....
>
> It appears to die in the prep stage:
> ********************************************************************************
> ++ basename /usr/src/redhat/SOURCES/pgtcldocs-20041108.zip .zip
> + PGTCLDOCDIR=pgtcldocs-20041108
> + mv pgtcldocs-20041108 Pgtcl-docs
> + echo 'Patch #5 (pgtcl-no-rpath.patch):'
> Patch #5 (pgtcl-no-rpath.patch):
> + patch -p0 -s
> + pushd Pgtcl
> /usr/src/redhat/BUILD/postgresql-8.1.0/Pgtcl
> /usr/src/redhat/BUILD/postgresql-8.1.0
> + %aconfver
> /var/tmp/rpm-tmp.58757: line 79: fg: no job control
> error: Bad exit status from /var/tmp/rpm-tmp.58757 (%prep)

I can reproduce this in tcl-enabled builds. Working on it and will send a
patch for the spec file ASAP.

Regards,
--
Devrim GUNDUZ
Kivi Bilişim Teknolojileri         -          http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                       http://www.gunduz.org

Re: I can't build the 8.1.0 source rpm from postgresql.org

From
Devrim GUNDUZ
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Wed, 30 Nov 2005, Devrim GUNDUZ wrote:

>> + %aconfver
>> /var/tmp/rpm-tmp.58757: line 79: fg: no job control
>> error: Bad exit status from /var/tmp/rpm-tmp.58757 (%prep)
>
> I can reproduce this in tcl-enabled builds. Working on it and will send a
> patch for the spec file ASAP.

Ok found it. It seems that during the cleanup process of 8.1 specfile, I
had accidentally removed aconfver macro :(

%{!?aconfver:%define aconfver autoconf}

This is now fixed in our CVS and the change will appear in 8.1.1 RPM set.

Until then, use

- --define 'aconfver autoconf'

to build the rpms with tcl support. Thanks for the report.

Regards,
- --
Devrim GUNDUZ
Kivi Bilişim Teknolojileri         -          http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                       http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDjYp24zE8DGqpiZARAvNuAJ9osse0ec+I85jOOo3WFaHnX7ZDCgCePetN
zdpBmc9pf6neB2iRY8/quog=
=tvk1
-----END PGP SIGNATURE-----