Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel: portage vs. source
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
corcovado
n00b
n00b


Joined: 26 Jul 2004
Posts: 6
Location: international airspace

PostPosted: Mon Jul 26, 2004 10:38 pm    Post subject: kernel: portage vs. source Reply with quote

Hi,

I just joined so please excuse me if this is a dumb question or it's been asked already (didn't know how to search for it)

I don't have a net connection, but I got hold of kernel vanilla sources for 2.6.5 in a tar.bz2 ball.

Can I get portage to recognise it and build the source tree for me, or should I just manually tar xjpf the kernel source tree out and configure and compile independently of portage?
Back to top
View user's profile Send private message
cadaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 102
Location: Stockholm, Sweden

PostPosted: Mon Jul 26, 2004 10:51 pm    Post subject: Reply with quote

Installing kernels without portage can lead to annoying problems. Try putting the tarball in /usr/portage/distfiles (or whatever dir you use) and run
Code:
emerge =development-sources-2.6.5


Portage should use the existing tarball.
_________________
++?????++ Out of Cheese Error. Redo From Start.
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Mon Jul 26, 2004 10:56 pm    Post subject: Reply with quote

Except that should be:
Code:
emerge =vanilla-sources-2.6.5

_________________
What is the best [insert-type-of-program-here]?
Back to top
View user's profile Send private message
corcovado
n00b
n00b


Joined: 26 Jul 2004
Posts: 6
Location: international airspace

PostPosted: Mon Jul 26, 2004 10:59 pm    Post subject: Reply with quote

thanks for the quick replies, I'll get to it.
Back to top
View user's profile Send private message
cadaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 102
Location: Stockholm, Sweden

PostPosted: Mon Jul 26, 2004 10:59 pm    Post subject: Reply with quote

00420 wrote:
Except that should be:
Code:
emerge =vanilla-sources-2.6.5


No... development-sources is the 2.6 series. vanilla-sources is the 2.4 one.
_________________
++?????++ Out of Cheese Error. Redo From Start.
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Tue Jul 27, 2004 7:49 am    Post subject: Reply with quote

Do it manually in /usr/src.

It takes less time in the end, don't forget to include a symlink to the new kernel.

(ln -sf /usr/src/linux-2.6.5 /usr/src/linux).

Then configure and compile as normal (emerge would simply extarct the tarball to /usr/src anyway, the rest is exactly the same as before).

Kernels are the one thing I never do on an emerge.
Back to top
View user's profile Send private message
corcovado
n00b
n00b


Joined: 26 Jul 2004
Posts: 6
Location: international airspace

PostPosted: Tue Jul 27, 2004 10:11 am    Post subject: information contrast Reply with quote

OK, I got some contrasting information on this thread. Yes, it should be done through portage, and no, it shouldn't. If I can, I'd like to work out why this is so.

From what I heard before I joined gentoo, portage was good for avoiding dependency hell. Is that why maybe kernel compiling isn't where it shines best?

I put my tarball in distfiles, but I don't know how to get portage to recognise it. The --help option was quite good on binary package inclusion, but fell quite short when it came to source tarballs. Am I missing something? Gentoo was meant to be oriented towards sources usually.
Back to top
View user's profile Send private message
Titeuf
l33t
l33t


Joined: 19 Jun 2004
Posts: 759
Location: Middelkerke, Belgium

PostPosted: Tue Jul 27, 2004 11:02 am    Post subject: Reply with quote

For kernels it's really not necessary to use portage, as you still have to compile and install it yourself.
You can just extract the sources to /usr/src/linux-2.6.5 and then you get the same that when you've done with emerge =vanilla-sources-2.6.5.
Emerge just downloads and extracts the sources automatically.
Back to top
View user's profile Send private message
cadaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 102
Location: Stockholm, Sweden

PostPosted: Tue Jul 27, 2004 12:31 pm    Post subject: Reply with quote

No, there is another thing that portage does except for unpacking the tarball. It also notes that certain dependancies have been filled, virtual/alsa, that is. If you install a kernel by yourself, you'll probably have to inject development-sources and add
Code:
virtual/alsa development-sources

to /var/cache/edb/virtuals.

In the end, it's probably simpler to let portage install it.
_________________
++?????++ Out of Cheese Error. Redo From Start.
Back to top
View user's profile Send private message
redshift
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2003
Posts: 98

PostPosted: Tue Jul 27, 2004 12:53 pm    Post subject: Reply with quote

Well, think of it this way - if you emerge the vanilla sources, all portage does is download and unpack it, with the side benefit of taking care of dependencies without injecting. Why not use portage? It does the same thing with the same tarball. (which you don't have to download manually, I might add.)
_________________
Tom
Back to top
View user's profile Send private message
corcovado
n00b
n00b


Joined: 26 Jul 2004
Posts: 6
Location: international airspace

PostPosted: Tue Jul 27, 2004 2:06 pm    Post subject: thanks, but Reply with quote

Thanks for the replies, but I've decided to go the portage way, but once I've put the tarball into distfiles, how do I get portage to recognise it and include it, ready for emerging?
Simply can't find the switch for that in the emerge helpfile.
Back to top
View user's profile Send private message
cadaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 102
Location: Stockholm, Sweden

PostPosted: Tue Jul 27, 2004 2:38 pm    Post subject: Reply with quote

Well, if everything goes ok (which we sincerely hope), if portage is told to emerge just that kernel version, it will recognize the tarball is already present and use that.

The command to install just version 2.6.5 is
Code:
emerge =development-sources-2.6.5


Try it and see if it works.
_________________
++?????++ Out of Cheese Error. Redo From Start.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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