Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I replace LinuxThreads with NPTL?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
wildleaf
n00b
n00b


Joined: 12 Oct 2004
Posts: 71

PostPosted: Tue Dec 21, 2004 7:47 pm    Post subject: Can I replace LinuxThreads with NPTL? Reply with quote

If I replace it by adding "NPTL" to USE flag and try to
emerge -uDvp --newuse world, I got this:



Code:

wildleaf root # USE="nptl" emerge -uDpv --newuse world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[blocks B     ] sys-kernel/linux-headers (from pkg sys-kernel/linux26-headers-2.6.8.1-r1)
[ebuild  N    ] sys-kernel/linux26-headers-2.6.8.1-r1  -build 34,870 kB
[ebuild   R   ] sys-libs/glibc-2.3.4.20040808-r1  -build -debug -erandom -hardened -multilib +nls +nptl* -pic +userlocales 0 kB

Total size of downloads: 34,870 kB


The linux-headers is blocked, is it dangerous to do so ? any idea? thanks.
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Tue Dec 21, 2004 7:54 pm    Post subject: Reply with quote

You need to replace linux-headers with linux26-headers before you reemerge glibc, please see the relevant part in my post:
http://forums.gentoo.org/viewtopic.php?p=1882873#1882873
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
wildleaf
n00b
n00b


Joined: 12 Oct 2004
Posts: 71

PostPosted: Tue Dec 21, 2004 10:35 pm    Post subject: Reply with quote

Hauser wrote:
You need to replace linux-headers with linux26-headers before you reemerge glibc, please see the relevant part in my post:
http://forums.gentoo.org/viewtopic.php?p=1882873#1882873


Hauser, Thanks a lot!
I also found this thread is quite useful:
http://forums.gentoo.org/viewtopic.php?t=261059&start=0&postdays=0&postorder=asc&highlight=linuxheaders

I have a question in your thread:
Code:
# emerge --oneshot --nodeps linux26-headers

why here you use --oneshot and --nodeps ? can you explain?
Back to top
View user's profile Send private message
wildleaf
n00b
n00b


Joined: 12 Oct 2004
Posts: 71

PostPosted: Tue Dec 21, 2004 10:42 pm    Post subject: Reply with quote

Also, before i merge the linux26-headers, i have to do unmerge linux-headers first. don't know if that is a problem...
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Wed Dec 22, 2004 6:05 am    Post subject: Reply with quote

wildleaf wrote:
Also, before i merge the linux26-headers, i have to do unmerge linux-headers first. don't know if that is a problem...

That won't be a problem, so long as you don't start recompiling glibc before you have already emerged linux26-headers. --nodeps and --oneshot are used because you don't want the replacement itself affect other parts of the system (through dependencies or whatever) until glibc gets recompiled properly. I've seen these in the handbook, but in reality if you do this step by step, ie (1) unemerge linux-headers, (2) emerge linux26-headers, (3) emerge glibc, probably it will work even without them.
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
wildleaf
n00b
n00b


Joined: 12 Oct 2004
Posts: 71

PostPosted: Wed Dec 22, 2004 7:52 am    Post subject: Reply with quote

Got ya. Thanks again. I've done the upgrade, and everything is running good.:lol:

One of the reason I want to use NPTL is that I'm running many Java programs eg. Azureus, which have large demand of creating threads. So I was hoping I can get a better performance using NTPL.

Hauser wrote:
wildleaf wrote:
Also, before i merge the linux26-headers, i have to do unmerge linux-headers first. don't know if that is a problem...

That won't be a problem, so long as you don't start recompiling glibc before you have already emerged linux26-headers. --nodeps and --oneshot are used because you don't want the replacement itself affect other parts of the system (through dependencies or whatever) until glibc gets recompiled properly. I've seen these in the handbook, but in reality if you do this step by step, ie (1) unemerge linux-headers, (2) emerge linux26-headers, (3) emerge glibc, probably it will work even without them.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) 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