Currently trying to build systemd-250-4.el9 from source, to add FIDO2 support. For one reason or another, the build ships with FIDO2 disabled, but it seems like it should be easy enough to enable, rebuild, and install. I am starting with the systemd-250-4.el9.src.rpm in the repo "CentOS Stream 9 BaseOS - Source", and I have installed all the build dependencies using dnf builddep systemd-250-4.el9. The relevant option is -Dlibfido2=false on line 445 of the .spec file, which I have changed to -Dlibfido2=true, and installed libfido2-devel. However, I cannot build systemd, and it gives the error shown below:
Code: Select all
[1691/2051] /root/rpmbuild/BUILD/systemd-250/tools/dbus_exporter.py interfaces /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd /ro
ot/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-resolved /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-logind /root/rpm
build/BUILD/systemd-250/redhat-linux-build/systemd-hostnamed /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-localed /root/rpmbuil
d/BUILD/systemd-250/redhat-linux-build/systemd-timedated /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-machined /root/rpmbuild/B
UILD/systemd-250/redhat-linux-build/systemd-importd /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-oomd
FAILED: interfaces
/root/rpmbuild/BUILD/systemd-250/tools/dbus_exporter.py interfaces /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd /root/rpmbuild/
BUILD/systemd-250/redhat-linux-build/systemd-resolved /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-logind /root/rpmbuild/BUILD/
systemd-250/redhat-linux-build/systemd-hostnamed /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-localed /root/rpmbuild/BUILD/syst
emd-250/redhat-linux-build/systemd-timedated /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-machined /root/rpmbuild/BUILD/systemd
-250/redhat-linux-build/systemd-importd /root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd-oomd
/root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd: error while loading shared libraries: libsystemd-shared-250.so: cannot open share
d object file: No such file or directory
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/systemd-250/tools/dbus_exporter.py", line 61, in <module>
main()
File "/root/rpmbuild/BUILD/systemd-250/tools/dbus_exporter.py", line 57, in main
iterate_executables(args.output, args.executables)
File "/root/rpmbuild/BUILD/systemd-250/tools/dbus_exporter.py", line 38, in iterate_executables
extract_interfaces_xml(output_dir, exe)
File "/root/rpmbuild/BUILD/systemd-250/tools/dbus_exporter.py", line 9, in extract_interfaces_xml
list_interfaces_process = run(
File "/usr/lib64/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '[PosixPath('/root/rpmbuild/BUILD/systemd-250/redhat-linux-build/systemd'), '--bus-introspect', 'list']
' returned non-zero exit status 127.
I'm not sure where to go from here. This is a clean CentOS Stream 9 install, and I tried reverting to the stock .spec file but get the same error. Is there something special about the build environment I'm missing?