Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80915 - Should the glibc ebuild support LD_ASSUME_KERNEL=2.2.5?
Summary: Should the glibc ebuild support LD_ASSUME_KERNEL=2.2.5?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 81756 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-05 14:38 UTC by Andy Wang
Modified: 2006-04-06 20:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Wang 2005-02-05 14:38:08 UTC
This is related to bug #21132 (which added LD_ASSUME_KERNEL=2.4.1 support to glibc).

There are still some commercial applications that will only work with LD_ASSUME_KERNEL=2.2.5. Also, InstallAnywhere by ZeroG overrides any LD_ASSUME_KERNEL environment variable to 2.2.5 if it detects it's running on Linux (this is really dumb, and I've told ZeroG already and they'll fix it in the next release of InstallAnywhere).

I can understand that adding yet one more cycle to the glibc ebuild seems like overkill, so I filed this bug as an enhancement to see what people thought.

It's not difficult to maintain a seperate 2.2.5 glibc ebuild (or do it manually which is what I do now).
Comment 1 SpanKY gentoo-dev 2005-02-06 00:09:35 UTC
what glibc version are you talking about here ?  we already have glibc-2.2.5 in portage ...
Comment 2 Andy Wang 2005-02-06 02:39:18 UTC
I don't mean glibc-2.2.5.  I mean glibc built with --enable-kernel=2.2.5.  This will allow the dynamic linker to find libc properly when the LD_ASSUME_KERNEL environment variable is set to 2.2.5.
Comment 3 SpanKY gentoo-dev 2005-02-06 04:07:32 UTC
if you simply change the '--enable-kernel=2.4.1' to '--enable-kernel=2.2.5' in the glibc ebuild, does it work ?

i should update the ebuilds to respect EXTRA_ECONF that way you should be able to simply do `EXTRA_ECONF=--enable-kernel=2.2.5 emerge glibc` ...
Comment 4 Andy Wang 2005-02-07 07:45:09 UTC
That part I'm not 100% sure about.  I'll do some research.  It might be that a pernament change to --enable-kernel=2.2.5 would work.  This should enable support for anything higher than 2.2.5 (which would include 2.4.1).

According to:
http://people.redhat.com/drepper/assumekernel.html
2.2.5 is different than 2.4.1 (older version of linuxthreads with fixed sized threads).  But, if you look at the redhat RPM spec file the config flags between their 2.2.5 and 2.4.1 enabled versions are the exact same EXCEPT for the --enable-kernel, so it's entirely possible the glibc build itself is dependent on the --enable-kernel version option for more than just adding the ABI version note.
Comment 5 SpanKY gentoo-dev 2005-02-07 10:17:22 UTC
i dont think we should be adding that to our ebuild for everyone ... making it possible for people (such as yourself) to drop in the 2.2.5 is one thing, changing the ebuild for everyone is another
Comment 6 Andy Wang 2005-02-07 11:35:21 UTC
well, the latest glibc ebuild was modified to add support for 2.4.1 for everyone.  Why not 2.2.5?

It'll be more consistent with fedora/redhat's glibc build.  [I'm not entirely certain this is a goal gentoo necessarily needs though :) ]
Comment 7 SpanKY gentoo-dev 2005-02-07 12:08:41 UTC
i'd consider 2.4.x support a little more common than 2.2.x :)
Comment 8 SpanKY gentoo-dev 2005-02-12 11:12:27 UTC
*** Bug 81756 has been marked as a duplicate of this bug. ***
Comment 9 Sven 2005-02-12 11:43:11 UTC
what's the advantage of using "--enable-kernel=2.4.1" instead of "--enable-kernel=2.2.5"?

The glibc ebuilds up to version 2.3.4.20040808 didn't use any --enable-kernel option, and that resultet in an OS ABI of 2.0.0 ! So i guess the implicit default of the --enable-kernel option is 2.0.0 and nobody complained about that, or were there any complains?

# qpkg -I -v |grep glibc                                         
sys-libs/glibc-2.3.4.20040808-r1

# ldconfig -p |grep libc.so                                      
        libc.so.6 (libc6, OS ABI: Linux 2.0.0) => /lib/libc.so.6
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-10 05:43:52 UTC
If you want to override it, youu can set LT_KERNEL_VERSION in /etc/make.conf, and it'll be used in glibc-2.3.4.20050125-r1