Could not detect systemd unit directory

I’m trying to resolve a build failure of sssd for SLFO_1.1 (openSUSE Leap Micro 6.1 repo). I’m running into the error of “Could not detect systemd unit directory”. The most information I can find is openSUSE-Forum, which seams to show that I need to add “–with-systemdsystemunitdir=%{_unitdir}”. I’ve added and removed it now and had no effect.

I’m very new to obs so any leads on where to look or learn what I’m doing wrong would be appreciated.

I’m pulling from SLFO-pool/sssd. Reference as the spec file is too long to post with the log output

Error Logs - Abbridged for Forum limits

[    8s] Updating /etc/sysconfig/security ...
[    8s] Checking permissions and ownerships - using the permissions files
[    8s] 	/usr/share/permissions/permissions
[    8s] 	/usr/share/permissions/permissions.easy
[    8s] 	/etc/permissions.local
[    8s] /usr/sbin/unix2_chkpwd: setting to root:shadow 4755 (wrong owner/group root:root)
[    8s] /usr/sbin/unix_chkpwd: setting to root:shadow 4755 (wrong owner/group root:root)

[    8s] /usr/bin/newgidmap: setting to root:root 0755 "cap_setgid=ep". (wrong owner/group root:shadow, wrong permissions 4755, missing capabilities)
[    8s] /usr/bin/newuidmap: setting to root:root 0755 "cap_setuid=ep". (wrong owner/group root:shadow, wrong permissions 4755, missing capabilities)

[    8s] /usr/sbin/useradd -r -c User for D-Bus -d /run/dbus -U messagebus -s /usr/sbin/nologin

[    8s] update-alternatives: using /usr/bin/lua5.4 to provide /usr/bin/lua (lua) in auto mode

[    8s] Updating /etc/sysconfig/security ...
[    8s] can't open /etc/polkit-1/rules.d/90-default-privs.rules.new: No such file or directory
[    8s] warning: %post(polkit-default-privs-1550+20231129.269abcd-slfo.1.1_1.2.noarch) scriptlet failed, exit status 2

[    9s] update-alternatives: using /usr/bin/ld.bfd to provide /usr/bin/ld (ld) in auto mode

[   10s] No schema files found: doing nothing.

[   10s] Updating /etc/sysconfig/services ...

[   12s] No schema files found: doing nothing.

[   13s] now finalizing build dir...
[   13s] ... running 01-add_abuild_user_to_trusted_group
[   13s] ... running 02-set_timezone_to_utc
[   13s] ... running 03-set-permissions-secure
[   13s] ... running 11-hack_uname_version_to_kernel_version
[   13s] setting SOURCE_DATE_EPOCH_MTIME to 1742924559
[   14s] spec file parser line 415: can't expand %(...)
[   14s] spec file parser line 655: can't expand %(...)
[   14s] -----------------------------------------------------------------
[   14s] I have the following modifications for sssd.spec:
[   14s] 21c21
[   14s] < Release:        0
[   14s] ---
[   14s] > Release:        slfo.1.1_16.1
[   14s] -----------------------------------------------------------------
[   14s] ----- building sssd.spec (user abuild)
[   14s] -----------------------------------------------------------------
[   14s] -----------------------------------------------------------------
[   15s] setting SOURCE_DATE_EPOCH_MTIME to 1742924559
[   15s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:oranclay/SLFO_1.1/326e9b2c03f3dd7a026ab6690fd21874-sssd-ipa' /home/abuild/rpmbuild/SOURCES/sssd.spec
[   15s] using SOURCE_DATE_EPOCH with value 1742924558 as build time
[   15s] Executing(%prep): /usr/bin/bash -e /var/tmp/rpm-tmp.AqmCOc
[   15s] + umask 022
[   15s] + cd /home/abuild/rpmbuild/BUILD
[   15s] + cd /home/abuild/rpmbuild/BUILD
[   15s] + rm -rf sssd-2.9.5
[   15s] + /usr/lib/rpm/rpmuncompress -x /home/abuild/rpmbuild/SOURCES/sssd-2.9.5.tar.gz
[   15s] + STATUS=0
[   15s] + '[' 0 -ne 0 ']'
[   15s] + cd sssd-2.9.5
[   15s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
[   15s] + /usr/lib/rpm/rpmuncompress /home/abuild/rpmbuild/SOURCES/krb-noversion.diff
[   15s] + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
[   15s] + /usr/lib/rpm/rpmuncompress /home/abuild/rpmbuild/SOURCES/harden_sssd-ifp.service.patch
[   15s] + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
[   15s] + /usr/lib/rpm/rpmuncompress /home/abuild/rpmbuild/SOURCES/harden_sssd-kcm.service.patch
[   15s] + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
[   15s] + /usr/lib/rpm/rpmuncompress /home/abuild/rpmbuild/SOURCES/symvers.patch
[   15s] + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
[   15s] + RPM_EC=0
[   15s] ++ jobs -p
[   15s] + exit 0
[   15s] Executing(%build): /usr/bin/bash -e /var/tmp/rpm-tmp.3pxO3o
[   15s] + umask 022
[   15s] + cd /home/abuild/rpmbuild/BUILD
[   15s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/sssd-2.9.5-slfo.1.1_16.1.x86_64
[   15s] ++ dirname /home/abuild/rpmbuild/BUILDROOT/sssd-2.9.5-slfo.1.1_16.1.x86_64
[   15s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT
[   15s] + /usr/bin/mkdir /home/abuild/rpmbuild/BUILDROOT/sssd-2.9.5-slfo.1.1_16.1.x86_64
[   15s] + cd sssd-2.9.5
[   15s] + autoreconf -fiv
[   15s] autoreconf: export WARNINGS=
[   15s] autoreconf: Entering directory '.'
[   15s] autoreconf: running: autopoint --force
[   16s] Copying file build/mkinstalldirs
[   16s] Copying file po/Makevars.template
[   17s] autoreconf: running: aclocal --force -I m4 -I .
[   19s] autoreconf: configure.ac: tracing
[   19s] autoreconf: running: libtoolize --copy --force
[   19s] libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build'.
[   19s] libtoolize: copying file 'build/ltmain.sh'
[   19s] libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
[   19s] libtoolize: copying file 'm4/libtool.m4'
[   19s] libtoolize: copying file 'm4/ltoptions.m4'
[   19s] libtoolize: copying file 'm4/ltsugar.m4'
[   19s] libtoolize: copying file 'm4/ltversion.m4'
[   19s] libtoolize: copying file 'm4/lt~obsolete.m4'
[   20s] autoreconf: configure.ac: not using Intltool
[   20s] autoreconf: configure.ac: not using Gtkdoc
[   20s] autoreconf: running: aclocal --force -I m4 -I .
[   21s] autoreconf: running: /usr/bin/autoconf --force
[   22s] configure.ac:30: warning: The macro `AC_OUTPUT_COMMANDS' is obsolete.
[   22s] configure.ac:30: You should run autoupdate.
[   22s] ./lib/autoconf/status.m4:1025: AC_OUTPUT_COMMANDS is expanded from...
[   22s] m4/po.m4:23: AM_PO_SUBDIRS is expanded from...
[   22s] m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
[   22s] configure.ac:30: the top level
[   22s] configure.ac:30: warning: The macro `AC_TRY_LINK' is obsolete.
[   22s] configure.ac:30: You should run autoupdate.
[   22s] ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
[   22s] lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
[   22s] lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
[   22s] ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
[   22s] ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
[   22s] m4/gettext.m4:486: gt_INTL_MACOSX is expanded from...
[   22s] m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
[   22s] configure.ac:30: the top level
[   22s] configure.ac:30: warning: The macro `AC_TRY_LINK' is obsolete.
[   22s] configure.ac:30: You should run autoupdate.
[   22s] ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
[   22s] lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
[   22s] lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
[   22s] ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
[   22s] ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
[   22s] m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
[   22s] configure.ac:30: the top level
[   22s] configure.ac:284: You should run autoupdate.
[   22s] ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
[   22s] ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
[   22s] src/conf_macros.m4:215: WITH_SYSTEMD_CONF_DIR is expanded from...
[   22s] lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
[   22s] configure.ac:284: the top level
[   22s] configure.ac:284: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: checking for the executable \"service\"
[   22s] src/external/service.m4:1: CHECK_SERVICE_EXECUTABLE is expanded from...
[   22s] lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
[   22s] lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
[   22s] configure.ac:284: the top level
[   22s] configure.ac:284: warning: back quotes and double quotes must not be escaped in: checking for the executable \"service\"... 
[   22s] src/external/service.m4:1: CHECK_SERVICE_EXECUTABLE is expanded from...
[   22s] lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
[   22s] lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
[   22s] configure.ac:284: the top level
[   22s] configure.ac:353: warning: The macro `AC_TRY_CPP' is obsolete.
[   22s] configure.ac:353: You should run autoupdate.
[   22s] ./lib/autoconf/general.m4:2762: AC_TRY_CPP is expanded from...
[   22s] src/external/python.m4:55: AM_CHECK_PYTHON_HEADERS is expanded from...
[   22s] lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
[   22s] configure.ac:353: the top level
[   22s] configure.ac:379: warning: The macro `AC_TRY_CPP' is obsolete.
[   22s] configure.ac:379: You should run autoupdate.
[   22s] ./lib/autoconf/general.m4:2762: AC_TRY_CPP is expanded from...
[   22s] src/external/python.m4:55: AM_CHECK_PYTHON_HEADERS is expanded from...
[   22s] lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
[   22s] configure.ac:379: the top level
[   22s] configure.ac:541: warning: The macro `AC_HELP_STRING' is obsolete.
[   22s] configure.ac:541: You should run autoupdate.
[   22s] ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
[   22s] ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
[   22s] src/conf_macros.m4:849: ENABLE_POLKIT_RULES_PATH is expanded from...
[   22s] configure.ac:541: the top level
[   22s] autoreconf: running: /usr/bin/autoheader --force
[   23s] autoreconf: running: automake --add-missing --copy --force-missing
[   23s] configure.ac:10: installing 'build/compile'
[   23s] configure.ac:17: installing 'build/missing'
[   23s] Makefile.am: installing 'build/depcomp'
[   25s] autoreconf: Leaving directory '.'
[   25s] + CONFIG_SHELL=/usr/bin/bash
[   25s] + export CONFIG_SHELL
[   25s] + CFLAGS='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto'
[   25s] + export CFLAGS
[   25s] + CXXFLAGS='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto'
[   25s] + export CXXFLAGS
[   25s] + FFLAGS='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto '
[   25s] + export FFLAGS
[   25s] + FCFLAGS='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto '
[   25s] + export FCFLAGS
[   25s] + LDFLAGS=-flto=auto
[   25s] + export LDFLAGS
[   25s] + ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-db-path=/var/lib/sss/db --with-pipe-path=/var/lib/sss/pipes --with-pubconf-path=/var/lib/sss/pubconf --with-gpo-cache-path=/var/lib/sss/gpo_cache --with-environment-file=/etc/sysconfig/sssd --with-systemdsystemunitdir=/usr/lib/systemd/system --with-initscript=systemd --with-syslog=journald --with-pid-path=/run --enable-nsslibdir=/lib64 --enable-pammoddir=/usr/lib64/security --with-ldb-lib-dir=/usr/lib64/ldb2/modules/ldb --with-os=suse --disable-ldb-version-check --without-python2-bindings --without-oidc-child --with-selinux=yes --with-subid
[   26s] configure: WARNING: unrecognized options: --with-systemdsystemunitdir
[   26s] checking for x86_64-suse-linux-gnu-gcc... no
[   26s] checking for gcc... gcc
[   26s] checking whether the C compiler works... yes
[   26s] checking for C compiler default output file name... a.out
[   26s] checking for suffix of executables... 
[   26s] checking whether we are cross compiling... no
[   26s] checking for suffix of object files... o
[   26s] checking whether the compiler supports GNU C... yes
[   26s] checking whether gcc accepts -g... yes
[   26s] checking for gcc option to enable C11 features... none needed
[   26s] checking whether gcc understands -c and -o together... yes
[   26s] checking for stdio.h... yes
[   26s] checking for stdlib.h... yes
[   26s] checking for string.h... yes
[   26s] checking for inttypes.h... yes
[   26s] checking for stdint.h... yes
[   26s] checking for strings.h... yes
[   26s] checking for sys/stat.h... yes
[   26s] checking for sys/types.h... yes
[   26s] checking for unistd.h... yes
[   26s] checking for wchar.h... yes
[   26s] checking for minix/config.h... no
[   26s] checking whether it is safe to define __EXTENSIONS__... yes
[   26s] checking whether _XOPEN_SOURCE should be defined... no
[   26s] checking for a BSD-compatible install... /usr/bin/install -c
[   26s] checking whether build environment is sane... yes
[   27s] checking for a race-free mkdir -p... /usr/bin/mkdir -p
[   27s] checking for gawk... gawk
[   27s] checking whether make sets $(MAKE)... yes
[   27s] checking whether make supports the include directive... yes (GNU style)
[   27s] checking whether make supports nested variables... yes
[   27s] checking how to create a pax tar archive... gnutar
[   27s] checking dependency style of gcc... none
[   27s] checking for x86_64-suse-linux-gnu-ar... no
[   27s] checking for x86_64-suse-linux-gnu-lib... no
[   27s] checking for x86_64-suse-linux-gnu-link... no
[   27s] checking for ar... ar
[   27s] checking the archiver (ar) interface... ar
[   27s] checking how to run the C preprocessor... gcc -E
[   27s] checking build system type... x86_64-suse-linux-gnu
[   27s] checking host system type... x86_64-suse-linux-gnu
[   27s] checking how to print strings... printf
[   27s] checking for a sed that does not truncate output... /usr/bin/sed
[   27s] checking for grep that handles long lines and -e... /usr/bin/grep
[   27s] checking for egrep... /usr/bin/grep -E
[   27s] checking for fgrep... /usr/bin/grep -F
[   27s] checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
[   27s] checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
[   27s] checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
[   27s] checking the name lister (/usr/bin/nm -B) interface... BSD nm
[   27s] checking whether ln -s works... yes
[   27s] checking the maximum length of command line arguments... 1572864
[   27s] checking how to convert x86_64-suse-linux-gnu file names to x86_64-suse-linux-gnu format... func_convert_file_noop
[   27s] checking how to convert x86_64-suse-linux-gnu file names to toolchain format... func_convert_file_noop
[   27s] checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
[   27s] checking for x86_64-suse-linux-gnu-file... no
[   27s] checking for file... file
[   27s] checking for x86_64-suse-linux-gnu-objdump... no
[   27s] checking for objdump... objdump
[   27s] checking how to recognize dependent libraries... pass_all
[   27s] checking for x86_64-suse-linux-gnu-dlltool... no
[   27s] checking for dlltool... no
[   27s] checking how to associate runtime and link libraries... printf %s\n
[   27s] checking for x86_64-suse-linux-gnu-ar... ar
[   27s] checking for archiver @FILE support... @
[   27s] checking for x86_64-suse-linux-gnu-strip... no
[   27s] checking for strip... strip
[   27s] checking for x86_64-suse-linux-gnu-ranlib... no
[   27s] checking for ranlib... ranlib
[   27s] checking command to parse /usr/bin/nm -B output from gcc object... ok
[   27s] checking for sysroot... no
[   27s] checking for a working dd... /usr/bin/dd
[   27s] checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
[   27s] checking for x86_64-suse-linux-gnu-mt... no
[   27s] checking for mt... no
[   27s] checking if : is a manifest tool... no
[   27s] checking for dlfcn.h... yes
[   27s] checking for objdir... .libs
[   27s] checking if gcc supports -fno-rtti -fno-exceptions... no
[   27s] checking for gcc option to produce PIC... -fPIC -DPIC
[   27s] checking if gcc PIC flag -fPIC -DPIC works... yes
[   27s] checking if gcc static flag -static works... no
[   27s] checking if gcc supports -c -o file.o... yes
[   27s] checking if gcc supports -c -o file.o... (cached) yes
[   27s] checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
[   27s] checking whether -lc should be explicitly linked in... no
[   27s] checking dynamic linker characteristics... GNU/Linux ld.so
[   27s] checking how to hardcode library paths into programs... immediate
[   27s] checking whether stripping libraries is possible... yes
[   27s] checking if libtool supports shared libraries... yes
[   27s] checking whether to build shared libraries... yes
[   27s] checking whether to build static libraries... no
[   27s] checking for gcc options needed to detect all undeclared functions... none needed
[   27s] checking for library containing dlopen... none required
[   28s] checking for dlerror... yes
[   28s] checking for shl_load... no
[   28s] checking for shl_load in -ldld... no
[   28s] checking for dld_link in -ldld... no
[   28s] checking whether NLS is requested... yes
[   28s] checking for msgfmt... /usr/bin/msgfmt
[   28s] checking for gmsgfmt... /usr/bin/msgfmt
[   28s] checking for xgettext... /usr/bin/xgettext
[   28s] checking for msgmerge... /usr/bin/msgmerge
[   28s] checking for ld used by GCC... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
[   28s] checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
[   28s] checking for shared library run path origin... done
[   28s] checking for CFPreferencesCopyAppValue... no
[   28s] checking for CFLocaleCopyCurrent... no
[   28s] checking whether NLS is requested... yes
[   28s] checking for GNU gettext in libc... yes
[   28s] checking whether to use NLS... yes
[   28s] checking where the gettext function comes from... libc
[   28s] checking whether make supports nested variables... (cached) yes
[   28s] checking for stdint.h... (cached) yes
[   28s] checking for dlfcn.h... (cached) yes
[   28s] checking for stdatomic.h... yes
[   28s] checking for errno_t... no
[   28s] checking for library containing timer_create... none required
[   28s] checking for library containing clock_gettime... none required
[   28s] checking for utimensat... yes
[   28s] checking for futimens... yes
[   29s] checking for explicit_bzero... yes
[   29s] checking for timegm... yes
[   29s] checking for endian.h... yes
[   29s] checking for sys/endian.h... no
[   29s] checking for byteswap.h... yes
[   29s] checking whether byte ordering is bigendian... no
[   29s] checking for struct ucred.pid... yes
[   29s] checking for struct ucred.uid... yes
[   29s] checking for struct ucred.gid... yes
[   29s] checking for x86_64-suse-linux-gnu-pkg-config... /usr/bin/x86_64-suse-linux-gnu-pkg-config
[   29s] checking pkg-config is at least version 0.9.0... yes
[   29s] checking for POPT... yes
[   29s] checking for TALLOC... yes
[   29s] checking for TDB... yes
[   29s] checking for TEVENT... yes
[   29s] checking for tevent_set_trace_fd_callback... yes
[   29s] checking for tevent_set_trace_signal_callback... yes
[   29s] checking for tevent_set_trace_timer_callback... yes
[   29s] checking for tevent_set_trace_immediate_callback... yes
[   29s] checking for tevent_fd_set_tag... yes
[   29s] checking for tevent_fd_get_tag... yes
[   30s] checking for tevent_signal_set_tag... yes
[   30s] checking for tevent_signal_get_tag... yes
[   30s] checking for tevent_timer_set_tag... yes
[   30s] checking for tevent_timer_get_tag... yes
[   30s] checking for tevent_immediate_set_tag... yes
[   30s] checking for tevent_immediate_get_tag... yes
[   30s] checking for LDB... yes
[   30s] checking for ldb.h... yes
[   30s] checking for ldb_init in -lldb... yes
[   30s] checking for ldb_module.h... yes
[   30s] checking for ldb_init in -lldb... (cached) yes
[   30s] checking feature ldb runtime version check... no
[   30s] configure: ldb lib directory: /usr/lib64/ldb2/modules/ldb
[   30s] checking for DHASH... yes
[   30s] checking for INI_CONFIG_V0... yes
[   30s] checking for INI_CONFIG_V1... yes
[   30s] checking for INI_CONFIG_V1_1... yes
[   30s] checking for INI_CONFIG_V1_3... yes
[   30s] checking for GSSAPI_KRB5... yes
[   30s] checking for security/pam_appl.h... yes
[   30s] checking for pam_get_item in -lpam... yes
[   30s] checking for security/pam_modules.h... yes
[   30s] checking for pam_get_item in -lpam... (cached) yes
[   31s] checking for security/pam_ext.h... yes
[   31s] checking for security/pam_modutil.h... yes
[   31s] checking for security/pam_misc.h... yes
[   31s] checking for security/_pam_macros.h... yes
[   31s] checking for security/openpam.h... no
[   31s] checking for misc_conv in -lpam_misc... yes
[   31s] checking for pam_modutil_getlogin... yes
[   31s] checking for pam_vsyslog... yes
[   31s] checking for GDM_PAM_EXTENSIONS... no
[   31s] configure: gdm-pam-extensions were not found. gdm support
[   31s] for multiple certificates will not be build.
[   31s] 
[   31s] checking for ldap_search in -lldap... yes
[   31s] checking for ber_pvt_opt_on in -llber... yes
[   31s] checking for ldap_control_create... yes
[   31s] checking for ldap_init_fd... yes
[   31s] checking for ldap_create_deref_control_value... yes
[   32s] checking for ldap_parse_derefresponse_control... yes
[   32s] checking for ldap_derefresponse_free... yes
[   32s] checking for ldap_is_ldapc_url... no
[   32s] checking for struct ldap_conncb.lc_arg... yes
[   32s] checking for LDAPDerefRes... yes
[   32s] checking for slapd... no
[   32s] checking for ldapmodify... no
[   32s] checking for PCRE... yes
[   32s] checking for x86_64-suse-linux-gnu-krb5-config... no
[   32s] checking for krb5-config... /usr/bin/krb5-config
[   32s] checking for working krb5-config... yes
[   32s] checking for krb5.h... yes
[   32s] checking for krb5/krb5.h... yes
[   32s] checking for krb5_ticket_times... yes
[   32s] checking for krb5_times... no
[   32s] checking for krb5_trace_info... yes
[   32s] checking for krb5_get_init_creds_opt_alloc... yes
[   32s] checking for krb5_get_error_message... yes
[   33s] checking for krb5_free_unparsed_name... yes
[   33s] checking for krb5_get_init_creds_opt_set_expire_callback... yes
[   33s] checking for krb5_get_init_creds_opt_set_fast_ccache_name... yes
[   33s] checking for krb5_get_init_creds_opt_set_fast_flags... yes
[   33s] checking for krb5_get_init_creds_opt_set_canonicalize... yes
[   33s] checking for krb5_get_init_creds_opt_set_responder... yes
[   33s] checking for krb5_parse_name_flags... yes
[   33s] checking for krb5_unparse_name_flags... yes
[   33s] checking for krb5_get_init_creds_opt_set_change_password_prompt... yes
[   33s] checking for krb5_free_keytab_entry_contents... yes
[   34s] checking for krb5_kt_free_entry... yes
[   34s] checking for krb5_princ_realm... no
[   34s] checking for krb5_get_time_offsets... yes
[   34s] checking for krb5_principal_get_realm... no
[   34s] checking for krb5_cc_cache_match... yes
[   34s] checking for krb5_timestamp_to_sfstring... yes
[   34s] checking for krb5_set_trace_callback... yes
[   34s] checking for krb5_find_authdata... yes
[   34s] checking for krb5_kt_have_content... yes
[   35s] checking for krb5_cc_get_full_name... yes
[   35s] checking for krb5_unmarshal_credentials... yes
[   35s] checking for krb5/locate_plugin.h... yes
[   35s] checking for krb5/localauth_plugin.h... yes
[   35s] checking for CARES... yes
[   35s] checking for long long... yes
[   35s] checking size of int... 4
[   35s] checking size of char... 1
[   35s] checking size of short... 2
[   35s] checking size of long... 8
[   35s] checking size of long long... 8
[   35s] checking size of uid_t... 4
[   36s] checking size of gid_t... 4
[   36s] checking size of id_t... 4
[   36s] checking size of time_t... 8
[   36s] checking for uint_t... no
[   36s] checking for int8_t... yes
[   36s] checking for uint8_t... yes
[   36s] checking for int16_t... yes
[   36s] checking for uint16_t... yes
[   36s] checking for int32_t... yes
[   36s] checking for uint32_t... yes
[   36s] checking for int64_t... yes
[   36s] checking for uint64_t... yes
[   37s] checking for size_t... yes
[   37s] checking for ssize_t... yes
[   37s] checking size of off_t... 8
[   37s] checking size of size_t... 8
[   37s] checking size of ssize_t... 8
[   37s] checking for intptr_t... yes
[   37s] checking for uintptr_t... yes
[   37s] checking for ptrdiff_t... yes
[   37s] checking whether OpenSSL's x400Address is ASN1_STRING... yes
[   37s] checking for nsupdate... /usr/bin/nsupdate
[   37s] checking for executable nsupdate... yes
[   37s] checking for nsupdate 'realm' support'... yes
[   37s] checking for keyutils.h... yes
[   37s] checking for add_key in -lkeyutils... yes
[   37s] checking for krad.h... yes
[   38s] checking for krad_packet_get_attr in -lkrad... yes
[   38s] configure: Build without systemd support
[   38s] configure: Build without libsystemd support
[   38s] configure: Build without libsystemd support
[   38s] checking for krb5-config... /usr/bin/krb5-config
[   38s] checking for supported MIT krb5 version... yes
[   38s] checking for cifsidmap.h... yes
[   38s] checking for sigprocmask... yes
[   38s] checking for sigblock... yes
[   38s] checking for sigaction... yes
[   38s] checking for getpgrp... yes
[   38s] checking for prctl... yes
[   38s] checking for NDR_NBT... yes
[   38s] checking for NDR_KRB5PAC... yes
[   38s] checking for SMBCLIENT... yes
[   38s] checking for SAMBA_UTIL... yes
[   38s] checking Samba's idmap library... found: idmap-private-samba
[   38s] checking Samba's idmap plugin interface version... idmap test result is: 6
[   38s] configure: Samba's idmap interface version: 6
[   38s] configure: Samba version: 4 20 2
[   38s] configure: Samba's struct idmap_domain has dom_sid member
[   38s] configure: Samba has support for new ndr_push_steal_switch_value and ndr_pull_steal_switch_value functions
[   38s] checking for struct PAC_LOGON_INFO.resource_groups... yes
[   39s] checking for struct PAC_UPN_DNS_INFO.ex... yes
[   39s] checking for SASL... yes
[   39s] checking for NFSIDMAP... yes
[   39s] checking for nfsidmap_plugin.h... yes
[   39s] checking for ns_name_compress in -lresolv... yes
[   39s] checking for fakeroot... no
[   39s] checking for JANSSON... yes
[   39s] checking for UUID... yes
[   39s] checking for unistr.h... yes
[   39s] checking for u8_strlen in -lunistring... yes
[   39s] checking for unicase.h... yes
[   39s] checking for u8_casecmp in -lunistring... yes
[   39s] checking for unistr.h... (cached) yes
[   39s] checking for u8_check in -lunistring... yes
[   39s] checking for LIBNL3... yes
[   39s] configure: Building with libnl3
[   39s] checking for nl_socket_add_membership in -lnl-3... yes
[   39s] checking for nl_socket_modify_cb in -lnl-3... yes
[   39s] checking for rtnl_route_get_oif in -lnl-3... no
[   39s] checking for nl_set_passcred in -lnl-3... no
[   39s] checking for nl_socket_set_passcred in -lnl-3... yes
[   39s] configure: Will use init script type: systemd
[   39s] configure: error: Could not detect systemd unit directory
[   40s] error: Bad exit status from /var/tmp/rpm-tmp.3pxO3o (%build)
[   40s] 
[   40s] RPM build errors:
[   40s]     Bad exit status from /var/tmp/rpm-tmp.3pxO3o (%build)
[   40s] ### VM INTERACTION START ###
[   40s] [   35.988249][    T1] sysrq: Power Off
[   40s] [   35.988966][    T9] reboot: Power down
[   40s] ### VM INTERACTION END ###
[   40s] 
[   40s] h02-ch2b failed "build sssd.spec" at Tue May 27 00:25:34 UTC 2025.
[   40s] 

@oranclay Hi add systemd-mini-devel to your build requires.

You should have provided the link to your OBS project instead.

1 Like

That would make sense :man_facepalming:.

This is my Repo: Show home:oranclay - openSUSE Build Service
This is the pacakge I’m working on: Show home:oranclay / sssd-ipa - openSUSE Build Service

Thank you!

/usr/share/pkgconfig/systemd.pc is provided by systemd(-mini) package (do not ask me why - it clearly belongs to the -devel subpackage. SLFO 1.1 build does install systemd-mini. I do not know why.

systemd(-mini) is pulled in by dbus-broker (which in turn is pulled in by BuildRequires: pkgconfig(dbus-1). Apparenty, SLFO 1.1 is not migrated to dbus-broker and so installs dbus-1-daemon instead which explains missing systemd-mini. Adding nscd to BuildRequires pulls in systemd-mini as a side effect.

The correct fix is

BuildRequires: pkgconfig(systemd)

You may also consider submitting bug report against systemd to split systemd.pc into different/separate package (I would say it should go into systemd-devel)

It is already there

BuildRequires:  pkgconfig(libsystemd)

If possible, never require explicit package names. Require features that you need. Besides, explicitly requiring systemd-mini will prevent building on the user system.

I got it building for SLFO 1.1 with

BuildRequires: nscd

This only built for x86 though, so I will attempt the pkgconfig(systemd) to see if I can get it working further.

I also confirmed that the compile does correctly integrate sssd-ipa to support FreeIPA authentication, sudo, and hbac in openSUSE Leap Micro 6.1 which does atleast solve my immediate integration problem.

Thank you,
Oran