Bug 62375 - Can't rebuild rpm-4.0.4-7x.src.rpm on 7.1
Summary: Can't rebuild rpm-4.0.4-7x.src.rpm on 7.1
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-30 19:08 UTC by hjl
Modified: 2007-04-18 16:41 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-10 14:15:32 UTC
Embargoed:


Attachments (Terms of Use)
A patch (413 bytes, patch)
2002-03-31 08:06 UTC, hjl
no flags Details | Diff

Description hjl 2002-03-30 19:08:15 UTC
I got

gcc -c -I. -I/export/rearden/rst/BUILD/rpm-4.0.4/lib
-I/export/rearden/rst/BUILD/rpm-4.0.4/rpmdb
-I/export/rearden/rst/BUILD/rpm-4.0.4/rpmio
-I/export/rearden/rst/BUILD/rpm-4.0.4/popt -fno-strict-aliasing -O2 -march=i386
-mcpu=i686     -DVERSION=\"0.32\" -DXS_VERSION=\"0.32\" -fPIC
-I/usr/lib/perl5/5.6.0/i386-linux/CORE -DRPM_MAJOR=4 -DRPM_MINOR=0 -DRPM_PATCH=2
-DRPM_VERSION=0x040002 RPM/Constants.c -o RPM/Constants.o
Constants.xs: In function `constant':
Constants.xs:19: `CHECKSIG_GPG' undeclared (first use in this function)
Constants.xs:19: (Each undeclared identifier is reported only once
Constants.xs:19: for each function it appears in.)
Constants.xs:21: `CHECKSIG_MD5' undeclared (first use in this function)
Constants.xs:23: `CHECKSIG_PGP' undeclared (first use in this function)
Constants.xs:47: `QUERY_FOR_CONFIG' undeclared (first use in this function)
Constants.xs:49: `QUERY_FOR_DOCS' undeclared (first use in this function)
Constants.xs:51: `QUERY_FOR_DUMPFILES' undeclared (first use in this function)
Constants.xs:53: `QUERY_FOR_LIST' undeclared (first use in this function)

The problem is Perl-RPM picks the wrong rpm binary to get the rpm version
string. It should use the rpm just build, not the one on the system.

Comment 1 Jeff Johnson 2002-03-30 19:56:20 UTC
Perl-rpm is not self hosting.

Build without, install, build again.

Comment 2 hjl 2002-03-31 08:06:23 UTC
Created attachment 51527 [details]
A patch

Comment 3 hjl 2002-03-31 08:08:29 UTC
I submitted a patch. It may not be suitable in the Perl-RPM
package. But it can be used inside the rpm source and applied
from the spec file.

Comment 4 Jeff Johnson 2004-10-10 14:15:32 UTC
perl-RPM has been removed from rpm sub-packages.


Note You need to log in before you can comment on or make changes to this bug.