Red Hat Bugzilla – Bug 66137
SRPM Packages for RPM <=4.1 have old config.guess
Last modified: 2008-05-01 11:38:02 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.7-10 i586)
Description of problem:
When --rebuild'ing RPM on a Playstation 2 under the official Sony Linux 1.0, I
noticed that the config.guess files would not correctly recognise the "mipsel"
processor type and the config.guess script would halt.
I contacted Ben Elliston (firstname.lastname@example.org) who suggested that the config.guess
scripts be upgraded to the current version from
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Download rpm-4.1-0.19.7x.src.rpm (as an example) ona Sony PS2 Linux PC.
2. From the same directory, issue:
rpm --rebuild rpm-4.1-0.19.7x.src.rpm
3. Wait for the configure script to invoke config.guess
Actual Results: config.guess reports that it cannot identify the processor type
and suggests that you notify the authors.
Expected Results: config.guess should recognise the CPU as a "mipsel". If the
config.guess scripts are replaced, this happens properly.
The RPM will still fail to build until this patch is applied to RPM's legacy.c:
RCS file: /cvs/devel/rpm/rpmdb/legacy.c,v
retrieving revision 1.6
diff -u -r1.6 legacy.c
--- legacy.c 2 May 2002 22:16:31 -0000 1.6
+++ legacy.c 4 Jun 2002 12:48:41 -0000
@@ -37,7 +37,9 @@
xx = madvise(mapped, st->st_size, MADV_SEQUENTIAL);
ctx = rpmDigestInit(PGPHASHALGO_MD5, RPMDIGEST_NONE);
xx = rpmDigestUpdate(ctx, mapped, st->st_size);
However, I am unsure of the stability of this patch on other platforms.
config.guess/config.sub from the URL are identical
to (at least) what's in rpm-4.1-0.61.
The MADVISE avoidance is included as well.