Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950501 - sys-libs/pam-1.7.0_p20241230-r3:: pam_userdb module not built, breaking net-ftp/vsftpd
Summary: sys-libs/pam-1.7.0_p20241230-r3:: pam_userdb module not built, breaking net-f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-03 12:34 UTC by Steve Moyes
Modified: 2025-03-03 19:33 UTC (History)
3 users (show)

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


Attachments
emerge --info (file_950501.txt,9.62 KB, text/plain)
2025-03-03 12:38 UTC, Sam James
Details
Adding build.log as requested (build.log,8.23 KB, text/x-log)
2025-03-03 12:55 UTC, Steve Moyes
Details
Adding meson-log.txt as requested (meson-log.txt,91.60 KB, text/plain)
2025-03-03 12:55 UTC, Steve Moyes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Moyes 2025-03-03 12:34:53 UTC
Emerge --info is here https://pastebin.com/Pjk65s6h

/lib64/security/pam_userdb.so is not built with sys-libs/pam-1.7.0_p20241230-r3 nolonger supports this file (berkdb use flag enabled). Downgrading to sys-libs/pam-1.6.1 recreates the file.

This was discovered when logging into vsftpd with virtual users configured.

# cat /etc/pam.d/vsftpd 
auth 	required	/lib64/security/pam_userdb.so	db=/etc/vsftpd/virtualUsers
account	required	/lib64/security/pam_userdb.so	db=/etc/vsftpd/virtualUsers
session	required	/lib64/security/pam_loginuid.so
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-03 12:38:09 UTC
Created attachment 920161 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-03 12:38:52 UTC
Thanks for filing this.

Context/background is https://forums.gentoo.org/viewtopic-t-1173166.html.

For future, please include emerge --info and such as attachments rather than a pastebin as they expire/may not be accessible behind a firewall.

Having a look...
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-03 12:45:57 UTC
Could you run: `ebuild /var/db/repos/gentoo/sys-libs/pam/pam-1.7.0_p20241230-r3.ebuild clean configure`, and upload the build.log from /var/tmp/portage/sys-libs/pam-*/temp/build.log and meson-log.txt in the builddir too?
Comment 4 Steve Moyes 2025-03-03 12:55:16 UTC
Created attachment 920162 [details]
Adding build.log as requested
Comment 5 Steve Moyes 2025-03-03 12:55:43 UTC
Created attachment 920163 [details]
Adding meson-log.txt as requested
Comment 6 Mike Gilbert gentoo-dev 2025-03-03 18:26:49 UTC
It looks like we pass -Ddb-uniquename=5.3 to meson setup. meson attempts to link against -ldb5.3 (libdb5.3.so).

sys-libs/db:5.3 installs libdb-5.3.so, not libdb5.3.so.

I believe we could fix this by passing -Ddb-uniquename=-5.3 to meson setup instead.
Comment 7 Larry the Git Cow gentoo-dev 2025-03-03 18:56:12 UTC
The bug has been closed via the following commit(s):

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

commit e3f451ed3bc92ad6acce714773f3164920b23bce
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2025-03-03 18:52:58 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2025-03-03 18:52:58 +0000

    sys-libs/pam: fixup berkdb handling for meson
    
    Closes: https://bugs.gentoo.org/950501
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-libs/pam/pam-1.7.0_p20241230-r3.ebuild | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
Comment 8 Steve Moyes 2025-03-03 19:33:16 UTC
pam_userdb.so is now created.  I'll dig into vsftpd and raise another bug if required.  Thanks again for the assist and blistering speed.