Skip to content

Commit 3211da4

Browse files
committed
build-sys: s/HAVE_UTMP/ENABLE_UTMP/
"Have" should be about the external environment and dependencies. Anything which is a pure yes/no choice should be "enable".
1 parent 70160ce commit 3211da4

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

man/rules/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ manpages = [
4343
['os-release', '5', [], ''],
4444
['pam_systemd', '8', [], 'HAVE_PAM'],
4545
['resolved.conf', '5', ['resolved.conf.d'], 'ENABLE_RESOLVED'],
46-
['runlevel', '8', [], 'HAVE_UTMP'],
46+
['runlevel', '8', [], 'ENABLE_UTMP'],
4747
['sd-bus-errors',
4848
'3',
4949
['SD_BUS_ERROR_ACCESS_DENIED',
@@ -632,7 +632,7 @@ manpages = [
632632
['systemd-update-utmp.service',
633633
'8',
634634
['systemd-update-utmp', 'systemd-update-utmp-runlevel.service'],
635-
'HAVE_UTMP'],
635+
'ENABLE_UTMP'],
636636
['systemd-user-sessions.service', '8', ['systemd-user-sessions'], 'HAVE_PAM'],
637637
['systemd-vconsole-setup.service',
638638
'8',

man/runlevel.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<refentry id="runlevel"
2525
xmlns:xi="http://www.w3.org/2001/XInclude"
26-
conditional="HAVE_UTMP">
26+
conditional="ENABLE_UTMP">
2727

2828
<refentryinfo>
2929
<title>runlevel</title>

man/systemd-update-utmp.service.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
You should have received a copy of the GNU Lesser General Public License
2020
along with systemd; If not, see <http://www.gnu.org/licenses/>.
2121
-->
22-
<refentry id="systemd-update-utmp.service" conditional="HAVE_UTMP">
22+
<refentry id="systemd-update-utmp.service" conditional="ENABLE_UTMP">
2323

2424
<refentryinfo>
2525
<title>systemd-update-utmp.service</title>

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ else
10361036
endif
10371037
conf.set10('ENABLE_REMOTE', have)
10381038

1039-
foreach pair : [['utmp', 'HAVE_UTMP'],
1039+
foreach pair : [['utmp', 'ENABLE_UTMP'],
10401040
['hibernate', 'ENABLE_HIBERNATE'],
10411041
['environment-d', 'ENABLE_ENVIRONMENT_D'],
10421042
['binfmt', 'ENABLE_BINFMT'],

src/basic/build.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#define _SYSVINIT_FEATURE_ "-SYSVINIT"
6262
#endif
6363

64-
#if HAVE_UTMP
64+
#if ENABLE_UTMP
6565
#define _UTMP_FEATURE_ "+UTMP"
6666
#else
6767
#define _UTMP_FEATURE_ "-UTMP"

src/shared/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ if conf.get('HAVE_ACL') == 1
108108
shared_sources += ['acl-util.c']
109109
endif
110110

111-
if conf.get('HAVE_UTMP') == 1
111+
if conf.get('ENABLE_UTMP') == 1
112112
shared_sources += ['utmp-wtmp.c']
113113
endif
114114

src/shared/utmp-wtmp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "time-util.h"
2626
#include "util.h"
2727

28-
#if HAVE_UTMP
28+
#if ENABLE_UTMP
2929
int utmp_get_runlevel(int *runlevel, int *previous);
3030

3131
int utmp_put_shutdown(void);
@@ -42,7 +42,7 @@ int utmp_wall(
4242
bool (*match_tty)(const char *tty, void *userdata),
4343
void *userdata);
4444

45-
#else /* HAVE_UTMP */
45+
#else /* ENABLE_UTMP */
4646

4747
static inline int utmp_get_runlevel(int *runlevel, int *previous) {
4848
return -ESRCH;
@@ -71,4 +71,4 @@ static inline int utmp_wall(
7171
return 0;
7272
}
7373

74-
#endif /* HAVE_UTMP */
74+
#endif /* ENABLE_UTMP */

tmpfiles.d/var.conf.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ q /var 0755 - - -
1212
L /var/run - - - - ../run
1313

1414
d /var/log 0755 - - -
15-
m4_ifdef(`HAVE_UTMP',
15+
m4_ifdef(`ENABLE_UTMP',
1616
f /var/log/wtmp 0664 root utmp -
1717
f /var/log/btmp 0600 root utmp -
1818
f /var/log/lastlog 0664 root utmp -

units/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ in_units = [
205205
'sysinit.target.wants/'],
206206
['systemd-update-done.service', '',
207207
'sysinit.target.wants/'],
208-
['systemd-update-utmp-runlevel.service', 'HAVE_UTMP HAVE_SYSV_COMPAT',
208+
['systemd-update-utmp-runlevel.service', 'ENABLE_UTMP HAVE_SYSV_COMPAT',
209209
'multi-user.target.wants/ graphical.target.wants/ rescue.target.wants/'],
210-
['systemd-update-utmp.service', 'HAVE_UTMP',
210+
['systemd-update-utmp.service', 'ENABLE_UTMP',
211211
'sysinit.target.wants/'],
212212
['systemd-user-sessions.service', '',
213213
'multi-user.target.wants/'],

0 commit comments

Comments
 (0)