Bug 746376 - rpm2cpio.sh needs updating
Summary: rpm2cpio.sh needs updating
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-15 04:09 UTC by JW
Modified: 2013-04-11 23:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-11 23:36:33 UTC
Type: ---


Attachments (Terms of Use)
Updated rpm2cpio.sh with xz support (2.40 KB, application/octet-stream)
2011-10-15 04:09 UTC, JW
no flags Details

Description JW 2011-10-15 04:09:33 UTC
Created attachment 528297 [details]
Updated rpm2cpio.sh with xz support

Description of problem:
The file scripts/rpm2cpio.sh is well out of date. It doesn't even support the 'xz' compression method which the rpm2cpio binary supports.

Version-Release number of selected component (if applicable):
rpm-4.9.1.2-1

How reproducible:
Always

Steps to Reproduce:
1. grep xz /usr/lib/rpm/rpm2cpio.sh (or scripts/rpm2cpio.sh)
  
Actual results:
1.

Expected results:
1. unxz) ...

Additional info:
I have taken the liberty of adding an improved version of rpm2cpio.sh largely based one of the more recent versions floating around.

Having an rpm2cpio.sh can be extremely useful when back-porting newer source rpms to older fedora systems (let's face it, an older system like fedora 7, with upgraded rpms, works just as well as, say, fedora 15 - the release numbers being merely an annoying contrivance based mostly on an arbitrary elapsed clock period).

Comment 1 Fedora End Of Life 2012-08-07 18:05:46 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 JW 2012-08-08 00:06:21 UTC
still a problem

Comment 3 Mikolaj Izdebski 2012-10-09 14:07:20 UTC
I confirm this is still a problem with rpm-4.9.1.3-7 (Fedora 17).

Besides not supporting xz, this script uses "return" instead of "exit":
/usr/lib/rpm/rpm2cpio.sh: line 35: return: can only `return' from a function or sourced script

Comment 4 Fedora Update System 2013-03-27 06:39:12 UTC
rpm-4.9.1.3-8.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/rpm-4.9.1.3-8.fc17

Comment 5 Fedora Update System 2013-03-27 20:32:32 UTC
Package rpm-4.9.1.3-8.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpm-4.9.1.3-8.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-4488/rpm-4.9.1.3-8.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-04-11 23:36:36 UTC
rpm-4.9.1.3-8.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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