[MacPorts] #33444: Couldn't get rpm2cpio to work

MacPorts noreply at macports.org
Mon Mar 5 11:04:32 PST 2012


#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


More information about the macports-tickets mailing list