]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: add a few forgotten substitutions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Apr 2017 23:06:45 +0000 (19:06 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 01:47:27 +0000 (21:47 -0400)
v2:
- a few more

meson.build
meson_options.txt

index 82ec599537df7f9e093c2cecb6d0eca216ba929a..57e439e7332d542b65828836a865002535af59ac 100644 (file)
@@ -107,6 +107,7 @@ bootlibdir = prefixdir + '/lib/systemd/boot/efi'
 testsdir = prefixdir + '/lib/systemd/tests'
 systemdstatedir = localstatedir + '/lib/systemd'
 catalogstatedir = systemdstatedir + '/catalog'
+randomseeddir = localstatedir + '/lib/systemd/'
 
 dbuspolicydir = get_option('dbuspolicydir')
 if dbuspolicydir == ''
@@ -151,8 +152,8 @@ conf.set_quoted('SYSTEMCTL_BINARY_PATH',                      rootbindir + '/sys
 conf.set_quoted('SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH', rootbindir + '/systemd-tty-ask-password-agent')
 conf.set_quoted('SYSTEMD_STDIO_BRIDGE_BINARY_PATH',           bindir + '/systemd-stdio-bridge')
 conf.set_quoted('ROOTPREFIX',                                 rootprefixdir)
-conf.set_quoted('RANDOM_SEED_DIR',                            localstatedir + '/lib/systemd/')
-conf.set_quoted('RANDOM_SEED',                                localstatedir + '/lib/systemd/random-seed')
+conf.set_quoted('RANDOM_SEED_DIR',                            randomseeddir)
+conf.set_quoted('RANDOM_SEED',                                randomseeddir + '/random-seed')
 conf.set_quoted('SYSTEMD_CRYPTSETUP_PATH',                    rootlibexecdir + '/systemd-cryptsetup')
 conf.set_quoted('SYSTEM_GENERATOR_PATH',                      systemgeneratordir)
 conf.set_quoted('USER_GENERATOR_PATH',                        usergeneratordir)
@@ -179,7 +180,13 @@ conf.set_quoted('ABS_BUILD_DIR',                              meson.build_root()
 conf.set_quoted('ABS_SRC_DIR',                                meson.source_root())
 
 substs.set('prefix',                                          prefixdir)
+substs.set('exec_prefix',                                     prefixdir)
+substs.set('libdir',                                          libdir)
+substs.set('rootlibdir',                                      rootlibdir)
+substs.set('includedir',                                      includedir)
 substs.set('pkgsysconfdir',                                   pkgsysconfdir)
+substs.set('bindir',                                          bindir)
+substs.set('rootbindir',                                      rootbindir)
 substs.set('rootlibexecdir',                                  rootlibexecdir)
 substs.set('systemunitdir',                                   systemunitdir)
 substs.set('userunitdir',                                     userunitdir)
@@ -187,6 +194,7 @@ substs.set('systempresetdir',                                 systempresetdir)
 substs.set('userpresetdir',                                   userpresetdir)
 substs.set('udevhwdbdir',                                     udevhwdbdir)
 substs.set('udevrulesdir',                                    udevrulesdir)
+substs.set('udevlibexecdir',                                  udevlibexecdir)
 substs.set('catalogdir',                                      catalogdir)
 substs.set('tmpfilesdir',                                     tmpfilesdir)
 substs.set('sysusersdir',                                     sysusersdir)
@@ -200,6 +208,7 @@ substs.set('userenvgeneratordir',                             userenvgeneratordi
 substs.set('systemshutdowndir',                               systemshutdowndir)
 substs.set('systemsleepdir',                                  systemsleepdir)
 substs.set('SYSTEMCTL',                                       rootbindir + '/systemctl')
+substs.set('RANDOM_SEED',                                     randomseeddir + '/random-seed')
 
 #####################################################################
 
@@ -536,6 +545,9 @@ conf.set_quoted('NTP_SERVERS', get_option('ntp-servers'))
 
 conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
 
+substs.set('SUSHELL', get_option('debug-shell'))
+substs.set('DEBUGTTY', get_option('debug-tty'))
+
 #####################################################################
 
 threads = dependency('threads')
index 981eace5903ecbc411252d13a8379746bd6a3383..5b3d37ce9e0a167991f2cfa0ec4c401d4fd6ab07 100644 (file)
@@ -22,6 +22,11 @@ option('umount-path', type : 'string', description : 'path to umount')
 option('loadkeys-path', type : 'string', description : 'path to loadkeys')
 option('setfont-path', type : 'string', description : 'path to setfont')
 
+option('debug-shell', type : 'string', value : '/bin/sh',
+       description : 'path to debug shell binary')
+option('debug-tty', type : 'string', value : '/dev/tty9',
+       description : 'specify the tty device for debug shell')
+
 option('utmp', type : 'boolean',
        description : 'support for utmp/wtmp log handling')
 option('hibernate', type : 'boolean',