[MacPorts] #33444: Couldn't get rpm2cpio to work
#33444: Couldn't get rpm2cpio to work -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: -------------------------------+-------------------------------------------- I didn't try very hard to diagnose this, but: {{{ [15:16:55]====================================================================== [15:16:55]ERROR: testRPM (testunpack.TestUnpackPython) [15:16:55]---------------------------------------------------------------------- [15:16:55]Traceback (most recent call last): [15:16:55] File "/Users/zerobot/buildAgent/work/baba7dbd5dff0766/tests/testunpack.py", line 107, in testRPM [15:16:55] unpack.unpack_archive('ftp://foo/file.rpm', open('dummy-1-1.noarch.rpm'), self.tmpdir) [15:16:55] File "../zeroinstall/zerostore/unpack.py", line 209, in unpack_archive [15:16:55] extract_rpm(data, destdir, extract, start_offset) [15:16:55] File "../zeroinstall/zerostore/unpack.py", line 286, in extract_rpm [15:16:55] raise SafeException(_("rpm2cpio failed; can't unpack RPM archive; exit code %d") % status) [15:16:55]SafeException: rpm2cpio failed; can't unpack RPM archive; exit code 256 }}} https://0install.de/teamcity/viewLog.html?buildId=1677&buildTypeId=bt23&tab=..., if I can get the administrator to make that page public http://www.iagora.com/~espel/rpm2cpio ended up working in its place -- Ticket URL: <https://trac.macports.org/ticket/33444> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33444: Couldn't get rpm2cpio to work -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: afb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: rpm2cpio -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => afb@… * cc: n3npq@… (added) * port: => rpm2cpio -- Ticket URL: <https://trac.macports.org/ticket/33444#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33444: Couldn't get rpm2cpio to work -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: afb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: rpm2cpio -------------------------------+-------------------------------------------- Description changed by n3npq@…: Old description:
I didn't try very hard to diagnose this, but:
{{{ [15:16:55]====================================================================== [15:16:55]ERROR: testRPM (testunpack.TestUnpackPython) [15:16:55]---------------------------------------------------------------------- [15:16:55]Traceback (most recent call last): [15:16:55] File "/Users/zerobot/buildAgent/work/baba7dbd5dff0766/tests/testunpack.py", line 107, in testRPM [15:16:55] unpack.unpack_archive('ftp://foo/file.rpm', open('dummy-1-1.noarch.rpm'), self.tmpdir) [15:16:55] File "../zeroinstall/zerostore/unpack.py", line 209, in unpack_archive [15:16:55] extract_rpm(data, destdir, extract, start_offset) [15:16:55] File "../zeroinstall/zerostore/unpack.py", line 286, in extract_rpm [15:16:55] raise SafeException(_("rpm2cpio failed; can't unpack RPM archive; exit code %d") % status) [15:16:55]SafeException: rpm2cpio failed; can't unpack RPM archive; exit code 256 }}}
https://0install.de/teamcity/viewLog.html?buildId=1677&buildTypeId=bt23&tab=..., if I can get the administrator to make that page public
http://www.iagora.com/~espel/rpm2cpio ended up working in its place
New description: I didn't try very hard to diagnose this, but: http://www.iagora.com/~espel/rpm2cpio ended up working in its place If all you/want need is rpm2cpio, either the perl version at the URI, or the shell version I've just attached, work fine. -- -- Ticket URL: <https://trac.macports.org/ticket/33444#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33444: Couldn't get rpm2cpio to work -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: afb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: rpm2cpio -------------------------------+-------------------------------------------- Comment(by dave@…): OK... well there's an rpm2cpio port. Don't you think it should use one of the two scripty implementations rather than build-from-source and then be broken? -- Ticket URL: <https://trac.macports.org/ticket/33444#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33444: Couldn't get rpm2cpio to work -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: afb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: rpm2cpio -------------------------------+-------------------------------------------- Comment(by n3npq@…): Yes scripts instead of build-from-source (imho). rpm is a complex build and mostly useless if all one needs/wants is rpm2cpio functionality. -- Ticket URL: <https://trac.macports.org/ticket/33444#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33444: Couldn't get rpm2cpio to work --------------------------------+------------------------------------------- Reporter: dave@… | Owner: afb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: worksforme | Keywords: Port: rpm2cpio | --------------------------------+------------------------------------------- Changes (by afb@…): * status: new => closed * resolution: => worksforme Comment: The "built" version is *identical* to the attached version: {{{ xinstall ${worksrcpath}/scripts/rpm2cpio \ ${destroot}${prefix}/bin/ }}} There must be something else failing, in the 0install test. -- Ticket URL: <https://trac.macports.org/ticket/33444#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33444: Couldn't get rpm2cpio to work --------------------------------+------------------------------------------- Reporter: dave@… | Owner: afb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: worksforme | Keywords: Port: rpm2cpio | --------------------------------+------------------------------------------- Comment(by afb@…): Here was the test: {{{ $ sh -x rpm2cpio dummy-1-1.noarch.rpm | cpio -it + pkg=dummy-1-1.noarch.rpm + '[' dummy-1-1.noarch.rpm = '' -o '!' -e dummy-1-1.noarch.rpm ']' + leadsize=96 ++ expr 96 + 8 + o=104 ++ od -j 104 -N 8 -t u1 dummy-1-1.noarch.rpm + set 0000150 0 0 0 4 0 0 0 80 0000160 ++ expr 256 '*' '(' 256 '*' '(' 256 '*' 0 + 0 ')' + 0 ')' + 4 + il=4 ++ expr 256 '*' '(' 256 '*' '(' 256 '*' 0 + 0 ')' + 0 ')' + 80 + dl=80 ++ expr 8 + 16 '*' 4 + 80 + sigsize=152 ++ expr 104 + 152 + '(' 8 - '(' 152 % 8 ')' ')' % 8 + 8 + o=264 ++ od -j 264 -N 8 -t u1 dummy-1-1.noarch.rpm + set 0000410 0 0 0 49 0 0 1 239 0000420 ++ expr 256 '*' '(' 256 '*' '(' 256 '*' 0 + 0 ')' + 0 ')' + 49 + il=49 ++ expr 256 '*' '(' 256 '*' '(' 256 '*' 0 + 0 ')' + 1 ')' + 239 + dl=495 ++ expr 8 + 16 '*' 49 + 495 + hdrsize=1287 ++ expr 264 + 1287 + o=1551 + EXTRACTOR='dd if=dummy-1-1.noarch.rpm ibs=1551 skip=1' + COMPRESSION='/dev/stdin: gzip compressed data, from Unix' + echo /dev/stdin: gzip compressed data, from Unix + grep -q gzip + DECOMPRESSOR=gunzip + gunzip + dd if=dummy-1-1.noarch.rpm ibs=1551 skip=1 ./Hello 1 block }}} -- Ticket URL: <https://trac.macports.org/ticket/33444#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33444: Couldn't get rpm2cpio to work --------------------------------+------------------------------------------- Reporter: dave@… | Owner: afb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: worksforme | Keywords: Port: rpm2cpio | --------------------------------+------------------------------------------- Comment(by afb@…): By the way, the perl script at http://www.iagora.com/~espel/rpm2cpio doesn't handle LZMA/XZ compression. There's an improved version available at http://www.freebsd.org/cgi/cvsweb.cgi/ports/archivers/rpm2cpio/. -- Ticket URL: <https://trac.macports.org/ticket/33444#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33444: Couldn't get rpm2cpio to work --------------------------------+------------------------------------------- Reporter: dave@… | Owner: afb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: worksforme | Keywords: Port: rpm2cpio | --------------------------------+------------------------------------------- Comment(by afb@…): The shell version doesn't work with `rpm2cpio - < dummy-1-1.noarch.rpm` (that the zeroinstall unpack* is using), only with `rpm2cpio dummy-1-1.noarch.rpm`. That is, the shell script requires the input to be an actual file (not a stream). * http://repo.or.cz/w/zeroinstall.git/blob/HEAD:/zeroinstall/zerostore/unpack.... -- Ticket URL: <https://trac.macports.org/ticket/33444#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts