Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 824954 - sys-apps/openrc-0.44.8[-pam]: Unknown variable "pam_misc_dep"
Summary: sys-apps/openrc-0.44.8[-pam]: Unknown variable "pam_misc_dep"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-19 16:24 UTC by Richard H.
Modified: 2021-11-22 11:48 UTC (History)
1 user (show)

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


Attachments
build log (build.log,7.34 KB, text/x-log)
2021-11-19 16:30 UTC, Richard H.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard H. 2021-11-19 16:24:11 UTC
I cannot update openrc on my pam-lass system due to meson erroring out. See Actual results.

Reproducible: Always

Steps to Reproduce:
1. unset pam use flag
2. emerge openrc
3. observe
Actual Results:  
>>> Configuring source in /tmp/portage/sys-apps/openrc-0.44.8/work/openrc-0.44.8 ...
meson setup --libdir lib --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /tmp/portage/sys-apps/openrc-0.44.8/temp/meson.i586-pc-linux-gnu.x86.ini --buildtype plain -Daudit=enabled -Dbranding="Gentoo Linux" -Dnewnet=false -Dos=Linux -Dpam=false -Dselinux=enabled -Dshell=/bin/sh -Dsysvinit=false -Dtermcap=ncurses /tmp/portage/sys-apps/openrc-0.44.8/work/openrc-0.44.8 /tmp/portage/sys-apps/openrc-0.44.8/work/openrc-0.44.8-build
The Meson build system
Version: 0.59.4
Source dir: /tmp/portage/sys-apps/openrc-0.44.8/work/openrc-0.44.8
Build dir: /tmp/portage/sys-apps/openrc-0.44.8/work/openrc-0.44.8-build
Build type: native build
Project name: OpenRC
Project version: 0.44.8
C compiler for the host machine: i586-pc-linux-gnu-gcc (gcc 9.3.0 "i586-pc-linux-gnu-gcc (Gentoo Hardened 9.3.0-r2 p4) 9.3.0")
C linker for the host machine: i586-pc-linux-gnu-gcc ld.bfd 2.37
Host machine cpu family: x86
Host machine cpu: i686
Found pkg-config: /usr/bin/i586-pc-linux-gnu-pkg-config (1.7.4)
Run-time dependency audit found: YES 3.0
Found CMake: /usr/bin/cmake (3.17.4)
Run-time dependency pam found: NO (tried pkgconfig and cmake)
Library pam found: NO
Run-time dependency libselinux found: YES 3.2
Run-time dependency ncurses found: YES 6.2.20200212
Compiler for C supports arguments -Wcast-align: YES 
Compiler for C supports arguments -Wcast-qual: YES 
Compiler for C supports arguments -Wdeclaration-after-statement: YES 
Compiler for C supports arguments -Wformat=2: YES 
Compiler for C supports arguments -Winline: YES 
Compiler for C supports arguments -Wmissing-declarations: YES 
Compiler for C supports arguments -Wmissing-format-attribute: YES 
Compiler for C supports arguments -Wmissing-noreturn: YES 
Compiler for C supports arguments -Wmissing-prototypes: YES 
Compiler for C supports arguments -Wnested-externs: YES 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C supports arguments -Wsequence-point: YES 
Compiler for C supports arguments -Wshadow: YES 
Compiler for C supports arguments -Wwrite-strings: YES 
Compiler for C supports arguments -Werror=implicit-function-declaration: YES 
Library dl found: YES
Library util found: YES
Configuring bootmisc using configuration
Configuring fsck using configuration
Configuring hostname using configuration
Configuring local using configuration
Configuring localmount using configuration
Configuring loopback using configuration
Configuring netmount using configuration
Configuring osclock using configuration
Configuring root using configuration
Configuring savecache using configuration
Configuring swap using configuration
Configuring swclock using configuration
Configuring sysctl using configuration
Configuring runsvdir using configuration
Configuring urandom using configuration
Configuring s6-svscan using configuration
Configuring agetty using configuration
Configuring binfmt using configuration
Configuring cgroups using configuration
Configuring consolefont using configuration
Configuring devfs using configuration
Configuring dmesg using configuration
Configuring hwclock using configuration
Configuring keymaps using configuration
Configuring killprocs using configuration
Configuring modules using configuration
Configuring mount-ro using configuration
Configuring mtab using configuration
Configuring numlock using configuration
Configuring procfs using configuration
Configuring net-online using configuration
Configuring save-keymaps using configuration
Configuring save-termencoding using configuration
Configuring sysfs using configuration
Configuring termencoding using configuration
Program meson_man_links.sh found: YES (/tmp/portage/sys-apps/openrc-0.44.8/work/openrc-0.44.8/man/meson_man_links.sh)
Configuring einfo.pc using configuration
Configuring openrc.pc using configuration
Configuring rc-sstat using configuration
Program meson_script_links.sh found: YES (/tmp/portage/sys-apps/openrc-0.44.8/work/openrc-0.44.8/scripts/meson_script_links.sh)
Configuring functions.sh using configuration
Configuring gendepends.sh using configuration
Configuring openrc-run.sh using configuration
Configuring binfmt.sh using configuration
Configuring cgroup-release-agent.sh using configuration
Configuring init-early.sh using configuration
Configuring init.sh using configuration
Program /usr/lib/python-exec/python3.9/meson found: YES (/usr/lib/python-exec/python3.9/meson)
Program /usr/lib/python-exec/python3.9/meson found: YES (/usr/lib/python-exec/python3.9/meson)
Configuring rc.h using configuration

src/rc/meson.build:48:0: ERROR: Unknown variable "pam_misc_dep".

Expected Results:  
OpenRC should not depend on PAM in any way when USE=-pam, right?
Comment 1 Richard H. 2021-11-19 16:25:05 UTC
emerge --info:

Portage 3.0.28 (python 3.9.7-final-0, default/linux/x86/17.0/hardened/selinux, gcc-9.3.0, glibc-2.33-r7, 5.10.76-gentoo-r1-richGATE i686)
=================================================================
System uname: Linux-5.10.76-gentoo-r1-richGATE-i686-AMD_G-T40E_Processor-with-glibc2.33
KiB Mem:     3614296 total,    152032 free
KiB Swap:    1570808 total,   1006844 free
Timestamp of repository gentoo: Fri, 19 Nov 2021 16:06:44 +0000
Head commit of repository gentoo: 4acecba0fb12b0e23a3cc8fea6050a1bc3db7f3d

Head commit of repository chain: b76950b7cff3c6e73a3c91ebceb01815d191bcde

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          3.8.12_p1::gentoo, 3.9.7_p1::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

chain
    location: /var/db/repos/chain
    sync-type: git
    sync-uri: https://chain@git.rpgfiction.net/portage-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=native -O2"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-march=native -O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo noman parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
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"
USE="acl audit bzip2 caps crypt hardened iconv ipv6 libglvnd libtirpc minimal ncurses nptl pcre pic pie readline seccomp selinux split-usr ssl ssp unicode x86 xattr xtpax zlib" ABI_X86="32" ADA_TARGET="gnat_2019" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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="mmx mmxext popcnt sse sse2 sse3 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access addition auth_basic charset dav fancyindex fastcgi gzip limit_conn proxy rewrite upload_progress" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-19 16:26:35 UTC
Please do include the full build.log (it has additional information).

But yeah, correct, it shouldn't depend on PAM (and it doesn't) -- it just seems to be a bug in the build system.
Comment 3 Richard H. 2021-11-19 16:28:42 UTC
(In reply to Sam James from comment #2)
> Please do include the full build.log (it has additional information).
> 
> But yeah, correct, it shouldn't depend on PAM (and it doesn't) -- it just
> seems to be a bug in the build system.

Can do but it's basically everything since it dies in configure :)
Comment 4 Richard H. 2021-11-19 16:30:39 UTC
Created attachment 752958 [details]
build log
Comment 5 Richard H. 2021-11-19 16:32:07 UTC
Seems to be known upstream. I'll try the patch as userpatch.

https://github.com/OpenRC/openrc/issues/470
Comment 6 Richard H. 2021-11-20 11:14:11 UTC
(In reply to Richard H. from comment #5)
> Seems to be known upstream. I'll try the patch as userpatch.
> 
> https://github.com/OpenRC/openrc/issues/470

It seems to work, but unfortunately I cannot positively test due to https://forums.gentoo.org/viewtopic-t-1143028.html - ssems to do with the libxcrypt migration. But this doesn't really concern this bug.

However I found the patch is also needed for 0.44.7 which is in tree as well.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-20 11:36:46 UTC
(In reply to Richard H. from comment #6)
> (In reply to Richard H. from comment #5)
> > Seems to be known upstream. I'll try the patch as userpatch.
> > 
> > https://github.com/OpenRC/openrc/issues/470
> 
> It seems to work, but unfortunately I cannot positively test due to
> https://forums.gentoo.org/viewtopic-t-1143028.html - ssems to do with the
> libxcrypt migration. But this doesn't really concern this bug.
> 
> However I found the patch is also needed for 0.44.7 which is in tree as well.

That should not be libxcrypt-related. Would you mind filing a new bug with the full build.log and emerge --info with this new failure? The main OpenRC developer cannot access the forums easily due to its format (the paste on the forums seems to have expired too).
Comment 8 Richard H. 2021-11-20 11:45:55 UTC
(In reply to Sam James from comment #7)
> (In reply to Richard H. from comment #6)
> > (In reply to Richard H. from comment #5)
> > > Seems to be known upstream. I'll try the patch as userpatch.
> > > 
> > > https://github.com/OpenRC/openrc/issues/470
> > 
> > It seems to work, but unfortunately I cannot positively test due to
> > https://forums.gentoo.org/viewtopic-t-1143028.html - ssems to do with the
> > libxcrypt migration. But this doesn't really concern this bug.
> > 
> > However I found the patch is also needed for 0.44.7 which is in tree as well.
> 
> That should not be libxcrypt-related. Would you mind filing a new bug with
> the full build.log and emerge --info with this new failure? The main OpenRC
> developer cannot access the forums easily due to its format (the paste on
> the forums seems to have expired too).

Gladly. Here you go: https://bugs.gentoo.org/825286

Should you need anything for any of these bugs I will gladly assist.
Comment 9 Larry the Git Cow gentoo-dev 2021-11-22 11:44:55 UTC
The bug has been closed via the following commit(s):

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

commit f4fdf74bad1aa4db3522939aa70c2ed2e948cc22
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-22 11:44:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-22 11:44:46 +0000

    sys-apps/openrc: backport SELinux + no PAM build fixes
    
    Closes: https://bugs.gentoo.org/825286
    Closes: https://bugs.gentoo.org/824954
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/openrc-0.44.8-selinux-no-pam.patch       | 89 ++++++++++++++++++++++
 sys-apps/openrc/openrc-0.44.8.ebuild               |  5 ++
 2 files changed, 94 insertions(+)