Review Request: Add option to control PAM support
Michael Palimaka
kde at scribeofthenile.com
Thu Feb 2 11:31:22 UTC 2012
> On Jan. 29, 2012, 4:42 p.m., Alexander Neundorf wrote:
> > The change in FindPAM.cmake is wrong.
> > FindPAM.cmake does not care whether WITH_PAM is TRUE or not, when called, it will search PAM.
> > If WITH_PAM is disabled, FindPAM.cmake will not be executed, and additionally all PAM_* variables will be set to empty.
> > It should work without the change in FindPAM.cmake.
>
> Michael Palimaka wrote:
> That is intended behaviour. It should be possible to compile kcheckpass and KDM without PAM support, even if PAM is present on the system.
>
> Theo Chatzimichos wrote:
> Hello Alexander, please have a look at the following gentoo bugs [1] [2]. ossi verified the issue (from #kde-devel):
> <ossi> tampakrap: seems like it got lost during the cmake migration. too bad
> <ossi> actually, i was assuming that it is possible to manually set PAM_LIBRARY to NOTFOUND and cmake wouldn't try to find it again
>
> [1] https://bugs.gentoo.org/show_bug.cgi?id=398333
> [2] https://bugs.gentoo.org/show_bug.cgi?id=398331
>
> Christophe Giboudeaux wrote:
> That doesn't change anything. The FindPAM.cmake change is still wrong:
> Changing find_package to macro_optional_find_package lets you use -DWITH_PAM=FALSE.
> If you use this option, FindPAM.cmake is not parsed.
>
>
>
My apologies, I misunderstood Alexander's comment. Since WITH_PATH is automatically handled, I have updated the diff to remove this change.
- Michael
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103818/#review10198
-----------------------------------------------------------
On Feb. 2, 2012, 11:28 a.m., Michael Palimaka wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103818/
> -----------------------------------------------------------
>
> (Updated Feb. 2, 2012, 11:28 a.m.)
>
>
> Review request for Build System.
>
>
> Description
> -------
>
> kcheckpass and KDM support being built without PAM, but this selection is currently automagic.
>
> This patch adds a WITH_PAM option, and makes sure that the patched cmake modules are preferred over the system ones.
>
>
> Diffs
> -----
>
> ConfigureChecks.cmake fe06d9e
> cmake/modules/UnixAuth.cmake 904f0cb
>
> Diff: http://git.reviewboard.kde.org/r/103818/diff/diff
>
>
> Testing
> -------
>
> For me, both kcheckpass and KDM link against libcrypt instead of PAM and work fine when -DWITH_PAM=no is specified.
>
>
> Thanks,
>
> Michael Palimaka
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20120202/97e20423/attachment-0001.html>
More information about the Kde-buildsystem
mailing list