[Bug 920227] New: rpm fails with "error reading from file" when installing (relocating) RPMs that contain only a single file
http://bugzilla.opensuse.org/show_bug.cgi?id=920227 Bug ID: 920227 Summary: rpm fails with "error reading from file" when installing (relocating) RPMs that contain only a single file Classification: openSUSE Product: openSUSE 13.1 Version: Final Hardware: x86-64 OS: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: lulaefae@gmx.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Trying to rpm install the genuine upstream LibreOffice 4.4.1 RPMs from http://download.documentfoundation.org/libreoffice/stable/4.4.1/rpm/x86/ as a normal user results in rpm throughing an "error: error reading from file". This bug is only triggered when the installation is relocating the rpm, i.e. the "--prefix" option is used with the rpm command. The interesting thing about it is, that there has been a fix for this from 2013 in Fedora's rpm which has not yet made it into SuSE's rpm: https://bugzilla.redhat.com/show_bug.cgi?id=1001553#c6 http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=65c7cc17664358051f0358de272e6... I have
cat /etc/os-release NAME=openSUSE VERSION="13.1 (Bottle)" VERSION_ID="13.1" PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:13.1" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://opensuse.org/" ID_LIKE="suse"
rpm -qi rpm Name : rpm Version : 4.11.1 Release : 6.17.1 Architecture: x86_64 Install Date: Mo 31 Jan 2015 14:30:46 CET Group : System/Packages Size : 4663090 License : GPL-2.0+ Signature : RSA/SHA256, Do 22 Jan 2015 08:24:35 CET, Key ID b88b2fd43dbdc284 Source RPM : rpm-4.11.1-6.17.1.src.rpm Build Date : Mi 21 Jan 2015 17:41:50 CET Build Host : build31 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE Summary : The RPM Package Manager
Steps to reproduce: Download LibreOffice_4.4.1_Linux_x86-64_rpm.tar.gz with md5 hash 8de6f3d1d4af3826a3a1695a47444948 from the LibreOffice download site. Unpack the tar. And either try to install libobasis4.4-draw-4.4.1.2-2.x86_64.rpm (md5 hash 6b1fbdfd4c23c851bdec86c48450d9f2) directly or try to install the whole bunch rpm -Uhv --nodeps --dbpath ~/rpm-db --prefix /home/lule/LibreOffice-4.4.1 LibreOffice_4.4.1.2_Linux_x86-64_rpm/RPMS/*.rpm error: error reading from file LibreOffice_4.4.1.2_Linux_x86-64_rpm/RPMS/libobasis4.4-draw-4.4.1.2-2.x86_64.rpm -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=920227 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com Assignee|bnc-team-screening@forge.pr |mls@suse.com |ovo.novell.com | --- Comment #1 from Bernhard Wiedemann <bwiedemann@suse.com> --- btw: you can use "unrpm" to extract contents of such an rpm. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=920227 --- Comment #2 from Re Kama <lulaefae@gmx.de> --- Thanks, yes, that is the workaround I use. Plus moving the extracted files manually to the places where rpm would install them into. But since there is already a fix somewhere out there, just not in opensuse's rpm, I thought, reporting the bug here may help. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com