fi \ ) > .exported_symbols_generated lvmlockd-core.c:35:10: fatal error: systemd/sd-daemon.h: No such file or directory 35 | #include <systemd/sd-daemon.h> | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [../../make.tmpl:464: lvmlockd-core.o] Error 1 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-j4-20211030-090004 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.2.0 * /usr/lib/llvm/13 13.0.0 Python 3.9.7 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.56.1 [2] rust-1.56.1 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: [1] php7.4 [2] php8.0 * HEAD of ::gentoo commit 8eb79a71239cbf46c4f9b7619be05db0b93739cc Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Nov 5 23:06:34 2021 +0000 2021-11-05 23:06:33 UTC emerge -qpvO sys-fs/lvm2 [ebuild U ] sys-fs/lvm2-2.03.14 [2.02.188-r2] USE="lvm2create_initrd readline sanlock udev -device-mapper-only (-selinux) -static -static-libs -systemd -thin"
Created attachment 748944 [details] emerge-info.txt
Created attachment 748947 [details] emerge-history.txt
Created attachment 748950 [details] environment
Created attachment 748953 [details] etc.portage.tar.bz2
Created attachment 748956 [details] logs.tar.bz2
Created attachment 748959 [details] sys-fs:lvm2-2.03.14:20211105-231657.log
Created attachment 748962 [details] temp.tar.bz2
Hello, I had the same problem, which is due to the use of flags: sanlock (-systemd); and I have solved it by doing a new ebuild, which contains the following lines, inside the src_prepare () section, before the 'eautoreconf' line: if ! use systemd ; then if use sanlock ; then sed -i -e "s:systemd/sd-daemon.h:elogind/systemd/sd-daemon.h:" daemons/lvmlockd/lvmlockd-core.c || die sed -i -e "s:libsystemd:libelogind:" daemons/lvmlockd/Makefile.in || die fi fi Good luck, I hope I have been of help to someone... PS: This happens because you don't like 'systemd' and refuse to have it installed on your machine... :)
In daemons/lvmlockd/Makefile.in, USE_SD_NOTIFY is hard-coded to yes. It should probably be populated by configure instead.
I have the same error on sys-fs/lvm2-2.03.14-r4 lvmlockd-core.c:35:10: fatal error: systemd/sd-daemon.h: No such file or directo ry 35 | #include <systemd/sd-daemon.h> | ^~~~~~~~~~~~~~~~~~~~~ emerge -pqv '=sys-fs/lvm2-2.03.14-r4::gentoo' [ebuild R ] sys-fs/lvm2-2.03.14-r4 USE="lvm readline sanlock* thin -lvm2cre ate-initrd (-selinux) -static -static-libs -systemd -udev" The same error also on 2.03.16-r1, 2.03.16-r2 and 2.03.17
Created attachment 835487 [details] emerge --info
Created attachment 835489 [details] build log
Created attachment 835491 [details] ebuild environment
(In reply to Mike Gilbert from comment #9) > In daemons/lvmlockd/Makefile.in, USE_SD_NOTIFY is hard-coded to yes. It > should probably be populated by configure instead. Turning off the hardcoded USE_SD_NOTIFY=yes in daemons/lvmlockd/Makefile.in fixes the issue @@ -103,6 +103,10 @@ # Users without systemd get no auto-activation of any logical volume if ! use systemd ; then eapply "${FILESDIR}"/${PN}-2.03.14-dm_lvm_rules_no_systemd.patch + # Fix for Bug #822054 https://bugs.gentoo.org/822054 + if use sanlock ; then + sed -i -e "s:USE_SD_NOTIFY=yes:USE_SD_NOTIFY=no:" daemons/lvmlockd/Makefile.in || die + fi fi sed -i \
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a05d2535777027dd8d43197b865768da4baf2126 commit a05d2535777027dd8d43197b865768da4baf2126 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2022-11-21 19:51:35 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2022-11-21 19:51:35 +0000 sys-fs/lvm2: fix build with USE="sanlock -systemd" Closes: https://bugs.gentoo.org/822054 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-fs/lvm2/lvm2-2.03.14-r4.ebuild | 1 + sys-fs/lvm2/lvm2-2.03.16-r2.ebuild | 1 + sys-fs/lvm2/lvm2-2.03.17.ebuild | 1 + 3 files changed, 3 insertions(+)