Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947739 - sys-libs/pam-1.7.0_p20241230-r2 depends on masked version of elogind and fails to build on musl-based systems
Summary: sys-libs/pam-1.7.0_p20241230-r2 depends on masked version of elogind and fail...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 940130
Blocks:
  Show dependency tree
 
Reported: 2025-01-08 19:42 UTC by asdfg
Modified: 2025-01-09 06:29 UTC (History)
3 users (show)

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


Attachments
Build log (file_947739.txt,7.72 KB, text/plain)
2025-01-08 19:44 UTC, asdfg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description asdfg 2025-01-08 19:42:05 UTC
../linux-pam-e634a3a9be9484ada6e93970dfaf0f055ca17332/meson.build:327:15: ERROR: Dependency lookup for libelogind with method 'pkgconfig' failed: Invalid version, need 'libelogind' ['>= 254'] found '252.9'.

This happens on a system with ACCEPT_KEYWORDS="~amd64" set on make.conf

Reproducible: Always

Steps to Reproduce:
1. emaint -A sync
2. emerge -avuDU @world
3. Build fails when updating sys=libs/pam


Expected Results:  
Pam should either compile, or portage should have seen there was an unsatisfied dependency and not include pam on the update list.

!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/musl/hardened, [unavailable], musl-1.2.5-r1, 6.12.7-gentoo x86_64)
=================================================================
System uname: Linux-6.12.7-gentoo-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-libc
KiB Mem:    32794844 total,  27062168 free
KiB Swap:    8374268 total,   8374268 free
Timestamp of repository gentoo: Wed, 08 Jan 2025 16:33:33 +0000
Head commit of repository gentoo: caad219086e041edb06b88150e8341a27e259c11

Timestamp of repository xarblu-overlay: Tue, 07 Jan 2025 11:48:22 +0000
Head commit of repository xarblu-overlay: 5c51252a9a68b8bd787d7abbfd88054255c8ff81

sh bash 5.2_p37
ld LLD 19.1.6 (compatible with GNU linkers)
app-misc/pax-utils:       1.3.8::gentoo
app-shells/bash:          5.2_p37::gentoo
dev-build/autoconf:       2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:       1.17-r1::gentoo
dev-build/cmake:          3.31.3::gentoo
dev-build/libtool:        2.5.4::gentoo
dev-build/make:           4.4.1-r100::gentoo
dev-build/meson:          1.6.1::gentoo
dev-java/java-config:     2.3.4::gentoo
dev-lang/perl:            5.40.0-r1::gentoo
dev-lang/python:          3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust:            1.83.0-r1::gentoo
llvm-core/clang:          19.1.6::gentoo
llvm-core/lld:            19.1.6::gentoo
llvm-core/llvm:           19.1.6::clang-musl
sys-apps/baselayout:      2.17::gentoo
sys-apps/openrc:          0.56::gentoo
sys-apps/sandbox:         2.42::gentoo
sys-kernel/linux-headers: 6.12::gentoo (virtual/os-headers)
sys-libs/musl:            1.2.5-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: true

clang-musl
    location: /var/db/repos/clang-musl/clang-musl-overlay
    masters: gentoo
    volatile: True

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: True

xarblu-overlay
    location: /var/db/repos/xarblu-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/xarblu-overlay.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_musl_hardened

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-musl"
CC="clang"
CFLAGS="-O2 -pipe  -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -pipe -march=native -mllvm=-polly -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-omp-backend=LLVM -mllvm=-polly-parallel -mllvm=-polly-num-threads=9 -mllvm=-polly-scheduling=dynamic -flto=thin"
CHOST="x86_64-pc-linux-musl"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-O2 -pipe  -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -pipe -march=native -mllvm=-polly -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-omp-backend=LLVM -mllvm=-polly-parallel -mllvm=-polly-num-threads=9 -mllvm=-polly-scheduling=dynamic -flto=thin"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe  -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -pipe -march=native -mllvm=-polly -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-omp-backend=LLVM -mllvm=-polly-parallel -mllvm=-polly-num-threads=9 -mllvm=-polly-scheduling=dynamic"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe  -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -pipe -march=native -mllvm=-polly -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-omp-backend=LLVM -mllvm=-polly-parallel -mllvm=-polly-num-threads=9 -mllvm=-polly-scheduling=dynamic"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="C.UTF-8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed  -Wl,-znow,-zrelro -pie -Wl,-O2 -Wl,--as-needed"
LEX="flex"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
RUSTFLAGS=" -C opt-level=3 -C codegen-units=8 -C target-cpu=native -C linker=clang -C linker-plugin-lto=yes -C link-arg=-flto=thin --C link-arg=-Wl,-z,pack-relative-relocs -Clink-arg=-mllvm=-polly -Clink-arg=-mllvm=-polly-vectorizer=stripmine -Clink-arg=-mllvm=-polly-omp-backend=LLVM -Clink-arg=-mllvm=-polly-parallel -Clink-arg=-mllvm=-polly-num-threads=9 -Clink-arg=-mllvm=-polly-scheduling=dynamic"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="acl amd64 bzip2 cet clang crypt default-libcxx elogind hardened iconv ipv6 libtirpc llvm-libunwind lto ncurses openmp orc pam pcre pic pie pipewire profile pulseaudio readline seccomp ssl ssp test-rust unicode verify-sig vulkan wayland xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="nouveau nvk" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YACC, YFLAGS
Comment 1 asdfg 2025-01-08 19:44:05 UTC
Created attachment 916158 [details]
Build log
Comment 2 Larry the Git Cow gentoo-dev 2025-01-08 20:43:49 UTC
The bug has been closed via the following commit(s):

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

commit 01cd1ac72758fff6256189f6048a1579c9b41ebe
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-08 20:43:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-08 20:43:21 +0000

    sys-libs/pam: depend on >=elogind-254 and >=systemd-254 for USE=elogind/systemd
    
    Closes: https://bugs.gentoo.org/947739
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/pam/pam-1.7.0_p20241230-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2025-01-08 22:19:47 UTC
The bug has been referenced in the following commit(s):

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

commit 30d1bd649576a27ff7aefd68edd0063b206fcc7f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-08 22:18:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-08 22:18:57 +0000

    profiles/features/musl: mask sys-libs/pam[elogind]
    
    Depends on currently-masked elogind version on musl profiles.
    
    Bug: https://bugs.gentoo.org/947739
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/musl/package.use.mask | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-09 06:29:14 UTC
(In reply to Larry the Git Cow from comment #3)

I meant to note this in the commit message, but forgot: this is a new feature so there's no loss of functionality for musl users upgrading with the mask.