Author Topic: <Solved> Using fedora srpm - cpio digest when unpacking  (Read 1711 times)

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
<Solved> Using fedora srpm - cpio digest when unpacking
« on: December 18, 2009, 06:04:22 AM »
...snip...snip
Rpmpbone net is another good source for srpms however most of the Fedora sprms won't uncompress on PCLinuxOS:

http://rpm.pbone.net/



Been looking into the fedora packages, I'm working on a package and only resource seems to be from Fedora (mlt-python) - and they have a fine updated mlt and mlt-python srpm that I desperatly need but I get the cpio digest match problem every time (with all fedora packages I have tried),

I don't think it is a signature issue - rather some compress problem.... any tips?

cheers,
MBantz
« Last Edit: December 18, 2009, 07:38:24 AM by MBantz »

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2874
    • other projects...
Re: Using fedora srpm - cpio digest when unpacking
« Reply #1 on: December 18, 2009, 06:42:56 AM »
I'm definitely not a packager, so at the risk of saying the obvious:
Code: [Select]
rpm2cpio foo.src.rpm |cpio -idmv --no-absolute-filenames
An easy alternative could be: start mc (midnight commander), browse to the directory of the srpm, then open the srpm (select it and press the enter key), go to the file of interest, and press F5 to copy that file to any directory of your choice.

hope this helps,
-p.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: Using fedora srpm - cpio digest when unpacking
« Reply #2 on: December 18, 2009, 07:11:15 AM »
pinoc! You just saved my day!

the rpm2cpio command worked perfectly - MAN this saves me a lot of time.

mc only show file information, does not seem to be able to grab the files from there.

Now you have saved me a bunch of time - do you want me to package a program for you ;-)

cheers,
MBantz

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2874
    • other projects...
Re: <Solved> Using fedora srpm - cpio digest when unpacking
« Reply #3 on: December 18, 2009, 07:51:28 AM »
Hi MBantz,

great to hear it worked! But mc should have worked as well.  It is true that the files are displayed but then you can use the arrow-keys to highlight your file of interest and after that press the F5-key which will ask you to where to copy that highlighted file, and this way mc will extract the file to the directory you choose before from where you can then access it as usual.
Thank you for your offer to package, watch out, I may come back to that  ;)
have a nice day,
-p.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: <Solved> Using fedora srpm - cpio digest when unpacking
« Reply #4 on: December 18, 2009, 08:11:46 AM »
Thanks again Pinoc,

(I use mc regularly, from the early Norton days :-) even built the current version :-)

just doublechecked, there is only text information files, one INSTALL and one UPGRADE executable in this src.rpm, - I try some other at a later time,

just for interest, where did you know of the solution to the cpio problem, I've searched for hours!

nice day to you as well :-)

/MBantz

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2874
    • other projects...
Re: <Solved> Using fedora srpm - cpio digest when unpacking
« Reply #5 on: December 18, 2009, 09:57:44 AM »
hmmm, I never knew of any cpio problem, probably because I don't know how to package, still something to learn ... ;)

About a year ago I had my first encounter with cpio when all-mighty Old-Polack explained to me how to create a new shotgun initrd. Then at some point I wanted to extract the language mo-files from the rpms to create the language archives for addlocale, so I did some reading here, and some more browsing of the respective man entries, and so far the usual
Code: [Select]
rpm2cpio foo.rpm | cpio -idmv worked well for me. 

best,
-p.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: <Solved> Using fedora srpm - cpio digest when unpacking
« Reply #6 on: December 18, 2009, 01:38:58 PM »
oooooh, I soo like your humor ;-)

I feel so dumb now :-) What a great link :-)

Actually, I searched for pubkey and srpm and fedora in all possible ways, you get a plethora of errors when extracting this. After figuring out how to disable the gpg signature check that errormessage disappeared and the cpio error was left. A bunch of posts on the web has the exact same problem - and I guess it is differences in rpm that is the issue.

This solution ignore the folders and you need to move the files by hand, but this is peanuts in time saved by getting at the spec,

look out for OpenShot video editing, coming to a Linuxdistribution near you very soon :-)

thanks again,
/MBantz

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2874
    • other projects...
Re: <Solved> Using fedora srpm - cpio digest when unpacking
« Reply #7 on: December 18, 2009, 01:50:23 PM »
Hi MBantz,

I'm really sorry for the lmgtfy but I just couldn't resist, that was just too cool  :D :D  :D
Most likely your problem really was for that specific rpm, I never had such an issue before, but as I said, I don't do packaging...
So it seems we were just lucky with the "--no-absolute-filenames" option. Well, in any case, the issue is solved and that is the most important.

have a nice evening and best regards!
-pinoc