Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71628 - PAM linked with Glib2
Summary: PAM linked with Glib2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-17 18:04 UTC by Kaiting Chen
Modified: 2005-02-25 11:52 UTC (History)
0 users

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


Attachments
Path for Glib2 (pam-0.77-glib2.patch,1.56 KB, patch)
2004-11-17 18:05 UTC, Kaiting Chen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kaiting Chen 2004-11-17 18:04:36 UTC
A number of distributions are now shipping PAM linked against Glib2. I think that the Glib1 dependency in PAM is rather annoying. I have written a patch that will allow it to link against Glib2. I'm still not sure if this breaks anything. If it doesn't, consider inclusion in the main portage tree.

I made a PAM overlay and changed the Glib1 dependency to a Glib2 dependency. Then, I made the ebuild apply this patch.

Reproducible: Always
Steps to Reproduce:
Comment 1 Kaiting Chen 2004-11-17 18:05:00 UTC
Created attachment 44198 [details, diff]
Path for Glib2
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-11-18 11:29:32 UTC
I don't mind moving it to work with glib2, but we do link it statically so that if you break glib2, PAM doesn't break and stop you getting into your system.
Comment 3 Kaiting Chen 2004-11-18 12:10:31 UTC
I see. I just patched one Makefile, the one in pam_console, which isn't even officialy part of PAM. It's a module that Gentoo has added. I'm not entirely sure that it works though. When it was compiling, there were a lot of warnings about things like "Symbols Redefined" and "Unused Variables" and a lot of functions with two underscores before them, like __function. Does that mean anything?
Comment 4 Terrence W. Zellers 2004-12-29 08:21:41 UTC
Silly fix as follows seems to work, though I'd hope something better comes out soon.

In the glib ebuild added --enable-static to the econf stanza (glib-2.4.8.ebuild). emerge glib

Under /usr/lib  mv libglib.a save-libglib.a (it was ancient, dating to 2002).  ln -sf libglib-2.0.a libglib.a.

Hope I didn't break anything critical.

-- TWZ
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2005-02-25 11:52:40 UTC
Already done for soon to be added pam-0.78 (which now links default to glib2).