Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885479 - x11-misc/xscreensaver-6.05-r1[pam,-locking] fails to build after configure saying "Use of PAM was requested, but it was not found."
Summary: x11-misc/xscreensaver-6.05-r1[pam,-locking] fails to build after configure sa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pascal Jäger
URL:
Whiteboard:
Keywords: PullRequest
: 877837 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-12-11 17:28 UTC by Red
Modified: 2022-12-16 20:19 UTC (History)
4 users (show)

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


Attachments
config.log (xscreensaver-config.log,124.74 KB, text/plain)
2022-12-11 17:29 UTC, Red
Details
Build log (xscreensaver-build.log,19.95 KB, text/plain)
2022-12-11 17:29 UTC, Red
Details
emerge --info (xscreensaver-emerge-info.txt,26.35 KB, text/plain)
2022-12-11 17:29 UTC, Red
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Red 2022-12-11 17:28:25 UTC
=x11-misc/xscreensaver-6.05-r1 fails to build after configure is run. I've attached the config.log, seems it's looking for a "util.h"

Reproducible: Always
Comment 1 Red 2022-12-11 17:29:06 UTC
Created attachment 841483 [details]
config.log
Comment 2 Red 2022-12-11 17:29:29 UTC
Created attachment 841485 [details]
Build log
Comment 3 Red 2022-12-11 17:29:48 UTC
Created attachment 841487 [details]
emerge --info
Comment 4 Sebastian Pipping gentoo-dev 2022-12-14 20:42:29 UTC
I found that:

- This is with USE="-locking pam", adding to the subject in a second
- The output says "Warning: Use of PAM was requested, but it was not found."
- Hence bug #877837 is related and a potential duplicate, or vice versa
- I can reproduce the issue locally
- In configure.ac, the check for PAM is guarded by:
    if test "$enable_locking" = yes -a "$with_pam" = yes; then

Therefore I think that the fix would be to add "pam? ( locking )" to REQUIRED_USE.  Can you confirm?
Comment 5 Sebastian Pipping gentoo-dev 2022-12-14 20:45:03 UTC
*** Bug 877837 has been marked as a duplicate of this bug. ***
Comment 6 Pascal Jäger 2022-12-15 09:29:37 UTC
Good call. Use flags on this thing are so intertwined and configure.ac is buggy. 
I spent hours trying to figure this maze out and still I get bugs like this. 

Yup, when having USE=pam the pam_appl.h header is only being searched for when also USE=locking. So USE="pam -locking" results in pam not found. 

I will add the line you suggested to REQUIRED_USE.
Comment 7 Toralf Förster gentoo-dev 2022-12-15 09:45:40 UTC
(In reply to Pascal Jäger from comment #6)
> I spent hours trying to figure this maze out and still I get bugs like this. 

That's what the tinderbox is designed for: to dice more USE flag combos.
Comment 8 Larry the Git Cow gentoo-dev 2022-12-16 20:19:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4662bc9b410044c7f4a2118efb479b1523d591f

commit f4662bc9b410044c7f4a2118efb479b1523d591f
Author:     Pascal Jäger <pascal.jaeger@leimstift.de>
AuthorDate: 2022-12-15 11:25:01 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2022-12-16 20:18:44 +0000

    x11-misc/xscreensaver: revbump, fix bugs
    
    Closes: https://bugs.gentoo.org/885441
    Closes: https://bugs.gentoo.org/885479
    Closes: https://bugs.gentoo.org/885989
    Closes: https://github.com/gentoo/gentoo/pull/28671
    
    Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 ...xscreensaver-6.05-r2-configure-exit-codes.patch |  43 ++++
 x11-misc/xscreensaver/xscreensaver-6.05-r2.ebuild  | 248 +++++++++++++++++++++
 2 files changed, 291 insertions(+)