Skip to content

Commit f471831

Browse files
fbuihuukeszybz
authored andcommitted
build: *really* install tmpfiles.d/systemd-remote.conf when necessary (systemd#6061)
This fixes commit 5e354b2 which was an attempt to avoid installation of tmpfiles.d/systemd-remote.conf when it was not needed (ie HAVE_REMOTE=false). Before this fix and with the autotool build, systemd-remote.conf was distributed and also installed (although it was empty) even though HAVE_REMOTE=false. That's what happens when doing last second changes without retesting... While at it, update tmpfiles.d/.gitignore (var.conf was missing as well since commit a083537).
1 parent 5e354b2 commit f471831

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Makefile.am

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2676,7 +2676,6 @@ nodist_systemunit_DATA += \
26762676

26772677
nodist_tmpfiles_DATA = \
26782678
tmpfiles.d/systemd.conf \
2679-
tmpfiles.d/systemd-remote.conf \
26802679
tmpfiles.d/var.conf \
26812680
tmpfiles.d/etc.conf
26822681

@@ -2693,6 +2692,11 @@ dist_tmpfiles_DATA += \
26932692
tmpfiles.d/legacy.conf
26942693
endif
26952694

2695+
if HAVE_REMOTE
2696+
nodist_tmpfiles_DATA += \
2697+
tmpfiles.d/systemd-remote.conf
2698+
endif
2699+
26962700
SYSINIT_TARGET_WANTS += \
26972701
systemd-tmpfiles-setup-dev.service \
26982702
systemd-tmpfiles-setup.service
@@ -4361,13 +4365,6 @@ EXTRA_DIST += \
43614365
src/journal-remote/log-generator.py
43624366
endif
43634367

4364-
if HAVE_REMOTE
4365-
if ENABLE_TMPFILES
4366-
dist_tmpfiles_DATA += \
4367-
tmpfiles.d/systemd-remote.conf
4368-
endif
4369-
endif
4370-
43714368
# using _CFLAGS = in the conditional below would suppress AM_CFLAGS
43724369
journalctl_CFLAGS = \
43734370
$(AM_CFLAGS)

tmpfiles.d/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/etc.conf
22
/systemd.conf
3+
/systemd-remote.conf
4+
/var.conf

0 commit comments

Comments
 (0)