Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48067 - GDM ebuild statically depends on pam
Summary: GDM ebuild statically depends on pam
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 66607 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-16 13:41 UTC by Graeme Wheeler
Modified: 2005-05-25 06:57 UTC (History)
3 users (show)

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


Attachments
proposed ebuild (gdm-2.4.4.7-r2.ebuild,3.99 KB, text/plain)
2004-10-07 00:06 UTC, Alexey Guzeev
Details
auxilary patch (gdm-2.4.4-nopam.patch,2.90 KB, patch)
2004-10-07 00:07 UTC, Alexey Guzeev
Details | Diff
gdm-2.6.0.7.ebuild-nopam.patch (gdm-2.6.0.7.ebuild-nopam.patch,1.31 KB, patch)
2005-03-25 15:41 UTC, John Nilsson
Details | Diff
Edited the above patch to seperate pam/no pam totally (gdm-2.6.0.7.ebuild-nopam-edit.patch,3.49 KB, patch)
2005-04-17 01:19 UTC, Sebastian
Details | Diff
Actual patch (gdm-2.6.0.7.ebuild-nopam-edit.patch,2.16 KB, patch)
2005-04-17 01:23 UTC, Sebastian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Graeme Wheeler 2004-04-16 13:41:37 UTC
All ebuilds for gdm currently require pam installed rather than only requiring when pam USE flag is set. This results in gdm not working on pam-less systems by disallowing anyone to login. Manually deleting this dependancy allows gdm to compile and users to log in.

Reproducible: Always
Steps to Reproduce:




System is 100% pam-less. "-pam" in USE. Used trick described in http://forums.
gentoo.org/viewtopic.php?t=24522 to remove pam after it was installed after 
emerge system.
Comment 1 foser (RETIRED) gentoo-dev 2004-04-19 01:42:30 UTC
you cannot have a 'pam-less' system when using gdm at this time, so that's a bit of a non-argument.

I'm not sure there's a working configure switch for pam in gdm or if it's a good idea to have a pam-less gdm altogether. We should look into this before we proceed.
Comment 2 Graeme Wheeler 2004-04-19 17:33:42 UTC
To clarify, I do have pam-less systems. This has so far been acheieved by manually removing pam and pam-login from /etc/make.profile/packages before emerging system and after an emerge sync, specifying "-pam" in use flags and manually editing gdm configs to remove pam dependancy. Also, after emerging gdm I have manually removed the /etc/pam.d and /etc/security folders created by the ebuild.

After further investigation I have found that gdm-2.4.1.7-r1 does work, but only for local users and not for users accessed via ypbind. This problem does not occur using gdm-2.4.4.7 which has so far worked flawlessly (tho a proper test would need many more days of usage). I have yet to test out gnome 2.6 but will do hopefully soon.

However, pam is kinda forced upon people at installation, there appears a slightly complex nature of pam/gdm integration and there is probably only a handfull of gentoo users who do not wish to use pam. So I appreciate that this is probably not worth huge amounts of time and efforts should probably be spent on more pressing issues.
Comment 3 foser (RETIRED) gentoo-dev 2004-08-11 04:23:45 UTC
well, there is a switch now obviously. Care to make a patch (this goes a bit further than a switch alone).

Altough i'm still not sure if it's a good idea to go about gdm 'pam-less'
Comment 4 foser (RETIRED) gentoo-dev 2004-08-18 09:28:49 UTC
no reply, reopen if needed (with patch)
Comment 5 Alexey Guzeev 2004-10-07 00:06:24 UTC
Created attachment 41258 [details]
proposed ebuild
Comment 6 Alexey Guzeev 2004-10-07 00:07:35 UTC
Created attachment 41259 [details, diff]
auxilary patch
Comment 7 foser (RETIRED) gentoo-dev 2004-10-07 14:28:32 UTC
*** Bug 66607 has been marked as a duplicate of this bug. ***
Comment 8 Joe McCann (RETIRED) gentoo-dev 2004-10-07 16:01:18 UTC
*** Bug 66607 has been marked as a duplicate of this bug. ***
Comment 9 Joe McCann (RETIRED) gentoo-dev 2004-10-07 16:01:42 UTC
reopen as there is now a patch for testing
Comment 10 foser (RETIRED) gentoo-dev 2005-01-08 15:18:20 UTC
ok had some time to look at this, why the makefile patches i wonder ? Those files are not of any influence on a pamless sys are they...
Comment 11 Alexey Guzeev 2005-01-09 23:30:47 UTC
It does not look like GDM package has an explicit --no-pam switch or something equivalent (--with-pam=no or anything working). Instead, they check presence of pam headers at a fixed location /usr/include/security/, and make decision if to compile pam in or not based on that. Bad practice.

So if you have system that is already completely free from pam then you can go without the makefile patches, yes. But if sys-libs/pam already installed (is it installed by default somewhere while progressing from stage1 to stage 2/3?), and you (re)compile gdm with flag -pam with the stock makefiles the pam still gets compiled in, and then when you remove sys-libs/pam from system (as result of emerge --depclean or whatever), you end up with non-working gdm. To avoid that, the makefile patches ensure smooth and pleasant gentoo user experience in any case.
Comment 12 foser (RETIRED) gentoo-dev 2005-01-10 05:38:24 UTC
It just installs a bunch of files, if it was a detection problem, you should've fixed up configure.in .
Comment 13 Timo Hirvonen 2005-01-15 04:34:40 UTC
gdm-2.6.0.6 has "--enable-authentication-scheme=auto/pam/crypt/shadow" configure option. It should be easy to build gdm without pam now.
Comment 14 foser (RETIRED) gentoo-dev 2005-01-15 04:46:09 UTC
yes, if you checked the proposed ebuild you could've seen it is already used. My question is about the makefile patches and their need, I want to get that cleared up. I don't have such a setup, I can't test it.
Comment 15 John Nilsson 2005-03-25 15:41:58 UTC
Created attachment 54480 [details, diff]
gdm-2.6.0.7.ebuild-nopam.patch

I have currently gdm installed with a pam-less system using only this patch.

While I was emergeing I had pam installed from the previous gdm install:

newkid gdm # qpkg -I -v sys-libs/pam
sys-libs/pam-0.78-r2 *

however
newkid gdm # ldd /usr/bin/gdm* | grep -c pam
0

so apparently the Makefils patch isn't needed.
Comment 16 Stefan Sperling 2005-03-28 14:52:56 UTC
The above works just fine here too.
Without the above patch I cannot login with gdm.
I have -pam in USE as well.
Comment 17 Sebastian 2005-04-17 01:19:26 UTC
Created attachment 56494 [details, diff]
Edited the above patch to seperate pam/no pam totally

Please check line 33 and 42-53 of the patch for correctness. Thanks!

Cheers

Sebastian
Comment 18 Sebastian 2005-04-17 01:21:42 UTC
Comment on attachment 56494 [details, diff]
Edited the above patch to seperate pam/no pam totally
Comment 19 Sebastian 2005-04-17 01:23:05 UTC
Created attachment 56495 [details, diff]
Actual patch

:-) Sorry, fscked it up. This is the one.
Comment 20 Leon 2005-04-19 05:04:59 UTC
FWIW, I've just applied Sebastian's provided patch and installed the resulting gdm-2.6.0.7.ebuild on my pam-less system succesfully.

As far as I can tell gdm is working fine on my system.

Here is the gentoo forums link to the details if anyone is interested:
http://forums.gentoo.org/viewtopic-p-2326744.html#2326744
Comment 21 Sebastian 2005-05-25 06:02:37 UTC
Shouldn't this "bug" be closed?  gdm-2.6.0.9 has hit portage some time ago (26th
of April) and the ebuild honors the pam USE flag (and it's working here).
Totally awesome! Thanks to foser!

Cheers

Sebastian
Comment 22 foser (RETIRED) gentoo-dev 2005-05-25 06:57:17 UTC
correct, thanks for the work & time put in here by the different contributors
over time.