diff --git a/files.systemd b/files.systemd index 79a3cc49..8f0f173d 100644 --- a/files.systemd +++ b/files.systemd @@ -24,8 +24,8 @@ %dir %{_datadir}/zsh %dir %{_datadir}/zsh/site-functions %endif -%dir %{_distconfdir}/X11/xinit -%dir %{_distconfdir}/X11/xinit/xinitrc.d +%dir %{xinitconfdir} +%dir %{xinitconfdir}/xinitrc.d %dir %{_environmentdir} %dir %{_journalcatalogdir} %dir %{_localstatedir}/lib/systemd @@ -205,7 +205,7 @@ %{_datadir}/zsh/site-functions/_systemd-tmpfiles %{_datadir}/zsh/site-functions/_timedatectl %endif -%{_distconfdir}/X11/xinit/xinitrc.d/50-systemd-user.sh +%{xinitconfdir}/xinitrc.d/50-systemd-user.sh %{_environmentdir}/99-environment.conf %{_journalcatalogdir}/systemd.be.catalog %{_journalcatalogdir}/systemd.be@latin.catalog diff --git a/systemd.changes b/systemd.changes index 5f1181ff..8f3f5c75 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 21 09:56:26 UTC 2022 - Fabian Vogt + +- Fix build if %_distconfdir is not defined (see bsc#1195679) + ------------------------------------------------------------------- Thu Feb 17 18:30:12 UTC 2022 - Franck Bui diff --git a/systemd.spec b/systemd.spec index 559de805..0c24b32a 100644 --- a/systemd.spec +++ b/systemd.spec @@ -29,6 +29,7 @@ %define min_kernel_version 4.5 %define suse_version +suse.82.g117bd7f14a %define _testsuitedir /usr/lib/systemd/tests +%define xinitconfdir %{?_distconfdir}%{!?_distconfdir:%{_sysconfdir}}/X11/xinit # Similar to %%with but returns true/false. The 'true' value can be redefined # when a second parameter is passed. @@ -653,7 +654,7 @@ Have fun with these services at your own risk. -Dldconfig=false \ -Dpamconfdir=no \ -Dpamlibdir=%{_pam_moduledir} \ - -Dxinitrcdir=%{_distconfdir}/X11/xinit/xinitrc.d \ + -Dxinitrcdir=%{xinitconfdir}/xinitrc.d \ -Drpmmacrosdir=no \ -Dcertificate-root=%{_sysconfdir}/pki/systemd \ %if %{without sysvcompat}