LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2010, 02:26 AM   #1
Andrey0
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
rpmbuild force to use cpio.gz on RHEL 5.3


Hi,

I have RHEL 5.3.

I am trying to build a e1000 network card driver rpm with particular requirement to have cpio.gz inside rpm.

But after i build my rpm driver it has cpio.lzma inside.
I simply build using command from the readme: rpmbuild -tb *.tar.gz.

I have googled and found that from around 5.0 RHEL includes lzma and uses it as a default setting. Is there any way to force to use cpio.gz or somehow repackage my rpm correctly?

I have searched through makefile and other files but was not able to find a clue.

Thank you,
Andrey
 
Old 10-19-2010, 11:01 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by Andrey0 View Post
I have googled and found that from around 5.0 RHEL includes lzma and uses it as a default setting.
Where does it say that? AFAIK using XZ / LZMA started with Fedora 11 or 12. Don't you mean RHEL6? AFAIK RHEL5 still uses gzip compression if I look at /usr/lib/rpm/brp-compress (which is called at the end of the rpmbuild process) and even though a patch was applied (http://rpm.org/ticket/84)?
 
Old 10-19-2010, 07:11 PM   #3
Andrey0
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
Where does it say that? AFAIK using XZ / LZMA started with Fedora 11 or 12. Don't you mean RHEL6? AFAIK RHEL5 still uses gzip compression if I look at /usr/lib/rpm/brp-compress (which is called at the end of the rpmbuild process) and even though a patch was applied (http://rpm.org/ticket/84)?
Thank you, I had a look at my brp-compress and I have no patch applied, hence as you mentioned it should use cpio.gz.

The way i originally discovered this is I extracted the rpm using 7-zip on Windows after building it. I guess it's not best way to check, but still when I extract rpm's from RHEL media with same 7-zip they come up as cpio.gz, however when I extract this particular rpm it shows up as cpio.lzma.

So rpm I built is still seems to be different in some way from the normal ones which come on media...
 
Old 10-19-2010, 07:24 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by Andrey0 View Post
I guess it's not best way to check
No, it isn't.


Quote:
Originally Posted by Andrey0 View Post
when I extract this particular rpm it shows up as cpio.lzma.
Where did you get that specific package from? SuSE? Fedora? Vendor? Got a download link?
 
Old 10-19-2010, 08:49 PM   #5
Andrey0
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
No, it isn't.



Where did you get that specific package from? SuSE? Fedora? Vendor? Got a download link?
its this network adapter driver:
http://downloadcenter.intel.com/Deta...15817&lang=eng

trying to slipstream into esx installer...

thank you again!
 
Old 10-20-2010, 12:21 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Here is the end of me doing 'rpmbuild -tb e1000e-1.2.10.tar.gz':
Code:
Provides: e1000e
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
(..)
on Centos5.5 which has the following "rpmlib" capabilities:
Code:
Features supported by rpmlib:
    rpmlib(VersionedDependencies) = 3.0.3-1
    rpmlib(CompressedFileNames) = 3.0.4-1
    rpmlib(PayloadIsBzip2) = 3.0.5-1
    rpmlib(PayloadFilesHavePrefix) = 4.0-1
    rpmlib(ExplicitPackageProvide) = 4.0-1
    rpmlib(HeaderLoadSortsTags) = 4.0.1-1
    rpmlib(ScriptletInterpreterArgs) = 4.0.3-1
    rpmlib(PartialHardlinkSets) = 4.0.4-1
    rpmlib(ConcurrentAccess) = 4.1-1
    rpmlib(BuiltinLuaScripts) = 4.2.2-1
You'll notice there are NO lines stating:
Code:
    rpmlib(PayloadIsLzma) = 4.4.2-1
    rpmlib(PayloadIsXz) = 5.2-1
You can check these capabilities with 'rpm --showrc | grep rpmlib'.
 
1 members found this post helpful.
Old 10-20-2010, 07:01 PM   #7
Andrey0
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
thank you, see exactly same on my box.

i think I found what the issue actually is, when I do
rpm2cpio *.rmp | cpio -imv

on the driver file which comes with the media i'm trying to slipstream, i get different folder structure and different types of files...

i get:
1 mf file (simply cp file to right place)
1 xml file (with details of the driver, vendor ID's and names)
and 1 o file which i guess is actual driver file...

so as I understand I will have to create exact folder/file structure for my driver, specfile, then get it into tar.gz and do rpmbuild again
p.s. maybe there is some very simple way to create rpm of 3 files?
 
Old 10-21-2010, 02:19 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by Andrey0 View Post
so as I understand I will have to create exact folder/file structure for my driver, specfile, then get it into tar.gz and do rpmbuild again
Building it from the extracted contents of your package is not how RPM works. The best way would be to build the package from source. But maybe I don't understand what directory structure you exactly need.


Quote:
Originally Posted by Andrey0 View Post
maybe there is some very simple way to create rpm of 3 files?
Can you run 'rpm -qpl' on your RPM package and post it here?
 
Old 10-21-2010, 07:44 PM   #9
Andrey0
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
Building it from the extracted contents of your package is not how RPM works. The best way would be to build the package from source. But maybe I don't understand what directory structure you exactly need.

Can you run 'rpm -qpl' on your RPM package and post it here?
i see...

rpm -qpl vmware-esx-drivers-net-igb-400.1.3.19.12-1.0.4.164009.x86_64.rpm
/etc/vmware/init/manifests/vmware-igb.mf
/etc/vmware/pciid/igb.xml
/usr/lib/vmware/vmkmod/igb.o

I also downloaded another ISO package from the website for another NIC, looks exactly same,

rpm -qpl vmware-esx-drivers-net-ixgbe-400.2.0.62.4.8-1.0.4.164009.x86_64
/etc/vmware/init/manifests/vmware-ixgbe.mf
/etc/vmware/pciid/ixgbe.xml
/usr/lib/vmware/vmkmod/ixgbe.o

but I found there is a source folder with makefile and xml file
can be downloaded from here:
http://downloads.vmware.com/d/detail...RqKipiZHdlZQ==

So if I will create the xml file then modify makefile from the driver I want to build to the makefile contained on CD i might have some luck?

Last edited by Andrey0; 10-21-2010 at 08:03 PM. Reason: forgot if...
 
Old 10-22-2010, 01:51 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
If you read in the ISO the /vmware-esx-drivers-net-ixgbe_400.2.0.62.4.8-1.0.4.164009.265875.iso/ISO9660/doc/README it explains how to add drivers to ESX?
 
Old 10-22-2010, 08:18 AM   #11
Andrey0
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
If you read in the ISO the /vmware-esx-drivers-net-ixgbe_400.2.0.62.4.8-1.0.4.164009.265875.iso/ISO9660/doc/README it explains how to add drivers to ESX?
correct, the problem is these drivers are not for the hardware I do have (need drivers from Intel site) and I can't install ESX unless I prep required drivers in rpm of same format as in these ISO's...

VMware made it this way, so people don't install ESX on non supported hardware (NIC is one of primary requirements). Unfortunately even though I did order a supported hardware I received something very different with no choice of swap, so have to make it to work or throw it away...

but you set me on right track, so hopefully will figure it out....
 
Old 10-25-2010, 05:51 PM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by Andrey0 View Post
correct, the problem is these drivers are not for the hardware I do have (need drivers from Intel site) and I can't install ESX unless I prep required drivers in rpm of same format as in these ISO's...
So it's a chicken and egg thing unless you have a spare host you can temporarily install ESX on for the sole purpose of addring drivers it seems...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 5 - force eth order czezz Linux - Networking 1 06-04-2010 04:04 PM
Rpmbuild spec file for virtual rpm - removing obsolete packages - CentOS/RHEL 5.3 DrLove73 Linux - Software 3 10-10-2009 11:22 AM
Samba 'force create mode = 664' ignored (RHEL 5) hillersa Linux - Server 2 03-25-2009 07:34 AM
rpmbuild cpio read error winglin Linux - Software 1 08-25-2007 01:43 AM
How to use cpio to extract a cpio archive? linx win Debian 4 06-17-2005 02:53 PM


All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration