Bug 10763
Summary: | rpm-3.0.4-5x breaks all rebuilt RPM's. | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Pekka Savola <pekkas> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 5.2 | CC: | bugzilla, herrold, petr.novotny |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-07-17 12:52:39 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
Pekka Savola
2000-04-12 20:40:32 UTC
Installing either rpm-devel or rpm-build didn't help. One other user wrote about the same thing on the RPM mailing-list on 2000/03/30. Also, rebuilding rpm from rpm-3.0.4-5x.src.rpm and installing it from there before this won't help. On a heavily upgraded RH5.2 I have tried: rpm -i PKG.src.rpm rpm -ba SPECS/PKG.spec rpm --rebuild SRPMS/PKG.src.rpm (PKG = rsync-2.2.1-1.src.rpm, rpm-3.0.4-[56]x.src.rpm) With rpm-3.0.2-4.x everything works. With rpm(-build)-3.0.4-[56]x the rebuild fails with: unpacking of archive failed ... : cpio: read failed One major thing that is _not_ upgraded is libc (still glibc-2.0.7-29). Forgot to mention: When -ba'ing with rpm-3.0.4 the resulting .src.rpm is significantly smaller than the original src.rpm. Original SRPM and the smaller SRPM can be found here: http://ole.tange.dk/rpm/ If you try rebuilding the smaller SRPM with rpm-3.0.2 it fails with the same error (cpio: read failed). From this I reason that the error is in the generated .src.rpm file, and since rpm-3.0.4 generated the .src.rpm file the error is probably in the SRPM generation routines in rpm-3.0.4. /Ole I confirm, and can re-create this fault at will. Parts of the unpack are occuring -- that is some binaries are being installed --- but celarly post-install scripts are not happening. Some updating of RPM database is ocurring. The same symptoms (RedHat 5.1 plus way-too-many-updates). It should be also noted that cpio archive extracted from the rebuilt rpm with rpm2cpio is invalid - at least according to my cpio-2.4.2-7. This explains all the symptoms above: The cpio archive created by rpm 3.0.4-5.x seems corrupt! This is now fixed in (soon to be released) rpm-3.0.5-7.5x.. Turns out that fclose on libio FILE pointers doesn't do the right thing at all in older glibc versions. Meanwhile, adding --nolibio when invoking rpm-3.0.4 should also provide a solution. |