Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Extracting kernel sources from a Mandrake RPM into /usr/src
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Mon Jun 07, 2004 7:14 pm    Post subject: Extracting kernel sources from a Mandrake RPM into /usr/src Reply with quote

Hello everybody,

my errand my be a little off topic here, but maybe not. In my
opinion it's interesting nevertheless:

I want to use the sources from kernel-2.6.7.0.rc1.1mdk-1-1mdk.src.rpm on my Gentoo box. Naturally speaking, I don't want to use RPM to install them! :D

I already extracted the content of the RPM with "rpm2targz" and after
unpacking this tarball I get this directory listing:

total 78520
-rw-r--r-- 1 root root 1324 Sep 12 2002 README.Mandrake
-rw-r--r-- 1 root root 2948 Jan 28 2002 README.kernel-sources
-rw-r--r-- 1 root root 40111601 Jun 6 22:25
kernel-2.6.7.0.rc1.1mdk-1-1mdk.src.tar.gz
-rw-r--r-- 1 root root 38835 May 26 01:10 kernel-2.6.spec
-rw-r--r-- 1 root root 34896138 May 10 05:16 linux-2.6.6.tar.bz2
-rw-r--r-- 1 root root 3219388 May 26 01:07 linux-2.6.7-rc1q1.tar.bz2
-rw-r--r-- 1 root root 3403 Sep 9 2003 linux-mdkconfig.h
-rw-r--r-- 1 root root 7767 Feb 6 2002 linux-merge-config.awk
-rw-r--r-- 1 root root 2017159 May 23 08:55 patch-2.6.7-rc1.bz2

I am a little lost now because I actually expected the sources "per se",
and not a collection of inter-dependant sources and patches.

What I want is the following:

the content of /usr/src/linux-2.6.7.0-rc1-1mdk on a system where this
RPM already has been installed.

I'd be *very* happy if someone could help me understand how the RPM
installation builds this and how to replicate it by use of a bash shell
script (thus not making use of RPM).

In the end, I'd like to have a script "foo.sh" that I can call like
this:

foo.sh kernel-foo.src.rpm

The expected output should be the sources neatly copied into /usr/src,
ready for running "make menuconfig".

Any help? Suggestions?

Many thanks in advance!

regards,
Tobias W.
_________________
Killing for peace is like fucking for virginity.
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Mon Jun 07, 2004 8:28 pm    Post subject: Solved. Reply with quote

I seem to have grabbed the wrong RPM package which is supposed to help people repackaging. Too bad there's no note inside the package's files saying so...

I'll try another package and see if I can get it to work.

cheers,
Tobias
_________________
Killing for peace is like fucking for virginity.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum