From: Michael Biebl Date: Wed, 1 Jun 2022 06:23:02 +0000 (+0200) Subject: meson: install libsystemd-shared into rootpkglibdir X-Git-Tag: archive/raspbian/251.6-1+rpi1^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=17302c4738f3f1a1af75365682c8808d21f89a54;p=systemd.git meson: install libsystemd-shared into rootpkglibdir Introduce rootpkglibdir for installing libsystemd-{shared,core}.so. The benefit over using rootlibexecdir is that this path can be multiarch aware, i.e. this path can be architecture qualified. This is something we'd like to make use of in Debian/Ubuntu to make libsystemd-shared co-installable, e.g. for i386 the path would be /usr/lib/i386-linux-gnu/systemd/libsystemd-shared-*.so and for amd64 /usr/lib/x86_64-linux-gnu/systemd/libsystemd-shared-*.so. This will allow for example to install and run systemd-boot/i386 on an amd64 host. It also simplifies/enables cross-building/bootstrapping. For more infos about Multi-Arch see https://wiki.debian.org/Multiarch. See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990547 (cherry picked from commit 5fb225615bf751b97644bed7aae44f69ba03cc84) Gbp-Pq: Name meson-install-libsystemd-shared-into-rootpkglibdir.patch --- diff --git a/meson.build b/meson.build index 8c7f0be5..98f00f42 100644 --- a/meson.build +++ b/meson.build @@ -146,6 +146,7 @@ rootlibdir = get_option('rootlibdir') if rootlibdir == '' rootlibdir = rootprefixdir / libdir.split('/')[-1] endif +rootpkglibdir = rootlibdir / 'systemd' install_sysconfdir = get_option('install-sysconfdir') != 'false' install_sysconfdir_samples = get_option('install-sysconfdir') == 'true' @@ -2006,7 +2007,7 @@ if conf.get('HAVE_LIBCRYPTSETUP_PLUGINS') == 1 tpm2, versiondep], link_depends : cryptsetup_token_sym, - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : libcryptsetup_plugins_dir) endif @@ -2024,7 +2025,7 @@ if conf.get('HAVE_LIBCRYPTSETUP_PLUGINS') == 1 libfido2, versiondep], link_depends : cryptsetup_token_sym, - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : libcryptsetup_plugins_dir) endif @@ -2042,7 +2043,7 @@ if conf.get('HAVE_LIBCRYPTSETUP_PLUGINS') == 1 libp11kit, versiondep], link_depends : cryptsetup_token_sym, - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : libcryptsetup_plugins_dir) endif @@ -2177,7 +2178,7 @@ exe = executable( libshared], dependencies : [versiondep, libseccomp], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) dbus_programs += exe @@ -2195,7 +2196,7 @@ public_programs += executable( libshared], dependencies : [versiondep, libseccomp], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : conf.get('ENABLE_ANALYZE') == 1) executable( @@ -2209,7 +2210,7 @@ executable( liblz4, libselinux, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2220,7 +2221,7 @@ public_programs += executable( link_with : [libjournal_core, libshared], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += executable( @@ -2234,7 +2235,7 @@ public_programs += executable( liblz4, libzstd, libdl], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -2243,7 +2244,7 @@ executable( 'src/getty-generator/getty-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2252,7 +2253,7 @@ executable( 'src/debug-generator/debug-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2261,7 +2262,7 @@ executable( 'src/run-generator/run-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2270,7 +2271,7 @@ exe = executable( 'src/fstab-generator/fstab-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2288,7 +2289,7 @@ if conf.get('ENABLE_ENVIRONMENT_D') == 1 'src/environment-d-generator/environment-d-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : userenvgeneratordir) @@ -2303,7 +2304,7 @@ if conf.get('ENABLE_HIBERNATE') == 1 'src/hibernate-resume/hibernate-resume-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2312,7 +2313,7 @@ if conf.get('ENABLE_HIBERNATE') == 1 'src/hibernate-resume/hibernate-resume.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -2324,7 +2325,7 @@ if conf.get('HAVE_BLKID') == 1 include_directories : includes, link_with : [libshared], dependencies : libblkid, - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2333,7 +2334,7 @@ if conf.get('HAVE_BLKID') == 1 'src/dissect/dissect.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) endif @@ -2346,7 +2347,7 @@ if conf.get('ENABLE_RESOLVE') == 1 libbasic_gcrypt, libsystemd_resolve_core], dependencies : systemd_resolved_dependencies, - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2361,7 +2362,7 @@ if conf.get('ENABLE_RESOLVE') == 1 lib_openssl_or_gcrypt, libm, libidn], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) meson.add_install_script(meson_make_symlink, @@ -2382,7 +2383,7 @@ if conf.get('ENABLE_LOGIND') == 1 libshared], dependencies : [threads, libacl], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2395,7 +2396,7 @@ if conf.get('ENABLE_LOGIND') == 1 liblz4, libxz, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -2404,7 +2405,7 @@ if conf.get('ENABLE_LOGIND') == 1 'src/login/inhibit.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -2441,7 +2442,7 @@ if conf.get('ENABLE_LOGIND') == 1 user_runtime_dir_sources, include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -2452,7 +2453,7 @@ if conf.get('HAVE_PAM') == 1 'src/user-sessions/user-sessions.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -2470,7 +2471,7 @@ if conf.get('HAVE_BLKID') == 1 and conf.get('HAVE_GNU_EFI') == 1 include_directories : includes, link_with : [boot_link_with], dependencies : [libblkid], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += executable( @@ -2479,7 +2480,7 @@ if conf.get('HAVE_BLKID') == 1 and conf.get('HAVE_GNU_EFI') == 1 include_directories : includes, link_with : [boot_link_with], dependencies : [libblkid], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2488,7 +2489,7 @@ if conf.get('HAVE_BLKID') == 1 and conf.get('HAVE_GNU_EFI') == 1 'src/boot/bless-boot-generator.c', include_directories : includes, link_with : [boot_link_with], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) endif @@ -2499,7 +2500,7 @@ executable( include_directories : includes, link_with : [libshared], dependencies : [libblkid], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2509,7 +2510,7 @@ public_programs += executable( include_directories : includes, link_with : [libshared], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) systemctl = executable( @@ -2523,7 +2524,7 @@ systemctl = executable( libxz, liblz4, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) public_programs += systemctl @@ -2535,7 +2536,7 @@ if conf.get('ENABLE_PORTABLED') == 1 include_directories : includes, link_with : [libshared], dependencies : [threads, libselinux], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2545,7 +2546,7 @@ if conf.get('ENABLE_PORTABLED') == 1 include_directories : includes, link_with : [libshared], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) endif @@ -2556,7 +2557,7 @@ if conf.get('ENABLE_SYSEXT') == 1 systemd_sysext_sources, include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) endif @@ -2568,7 +2569,7 @@ if conf.get('ENABLE_USERDB') == 1 include_directories : includes, link_with : [libshared], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2578,7 +2579,7 @@ if conf.get('ENABLE_USERDB') == 1 include_directories : includes, link_with : [libshared], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2588,7 +2589,7 @@ if conf.get('ENABLE_USERDB') == 1 include_directories : includes, link_with : [libshared], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) endif @@ -2604,7 +2605,7 @@ if conf.get('ENABLE_HOMED') == 1 libopenssl, libfdisk, libp11kit], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2617,7 +2618,7 @@ if conf.get('ENABLE_HOMED') == 1 libcrypt, libopenssl, libm], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2631,7 +2632,7 @@ if conf.get('ENABLE_HOMED') == 1 libopenssl, libp11kit, libdl], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) if conf.get('HAVE_PAM') == 1 @@ -2673,7 +2674,7 @@ if conf.get('ENABLE_BACKLIGHT') == 1 'src/backlight/backlight.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -2684,7 +2685,7 @@ if conf.get('ENABLE_RFKILL') == 1 'src/rfkill/rfkill.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -2694,7 +2695,7 @@ executable( 'src/system-update-generator/system-update-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2706,7 +2707,7 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 link_with : [libshared], dependencies : [libcryptsetup, libp11kit], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2715,7 +2716,7 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 'src/cryptsetup/cryptsetup-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2725,7 +2726,7 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 include_directories : includes, link_with : [libshared], dependencies : [libcryptsetup], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2734,7 +2735,7 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 'src/veritysetup/veritysetup-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2747,7 +2748,7 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 libdl, libopenssl, libp11kit], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) executable( @@ -2756,7 +2757,7 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 include_directories : includes, link_with : [libshared], dependencies : [libcryptsetup], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2765,7 +2766,7 @@ if conf.get('HAVE_LIBCRYPTSETUP') == 1 ['src/integritysetup/integritysetup-generator.c', 'src/integritysetup/integrity-util.c'], include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) endif @@ -2776,7 +2777,7 @@ if conf.get('HAVE_SYSV_COMPAT') == 1 'src/sysv-generator/sysv-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) @@ -2792,7 +2793,7 @@ if conf.get('HAVE_SYSV_COMPAT') == 1 'src/rc-local-generator/rc-local-generator.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : systemgeneratordir) endif @@ -2803,7 +2804,7 @@ if conf.get('ENABLE_XDG_AUTOSTART') == 1 systemd_xdg_autostart_generator_sources, include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : usergeneratordir) @@ -2812,7 +2813,7 @@ if conf.get('ENABLE_XDG_AUTOSTART') == 1 'src/xdg-autostart-generator/xdg-autostart-condition.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -2823,7 +2824,7 @@ if conf.get('ENABLE_HOSTNAMED') == 1 'src/hostname/hostnamed.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2832,7 +2833,7 @@ if conf.get('ENABLE_HOSTNAMED') == 1 'src/hostname/hostnamectl.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) endif @@ -2851,7 +2852,7 @@ if conf.get('ENABLE_LOCALED') == 1 include_directories : includes, link_with : [libshared], dependencies : deps, - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2860,7 +2861,7 @@ if conf.get('ENABLE_LOCALED') == 1 localectl_sources, include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) endif @@ -2870,7 +2871,7 @@ if conf.get('ENABLE_TIMEDATED') == 1 'src/timedate/timedated.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -2880,7 +2881,7 @@ if conf.get('ENABLE_TIMEDATECTL') == 1 'timedatectl', 'src/timedate/timedatectl.c', include_directories : includes, - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, link_with : [libshared], dependencies : [libm], install : true) @@ -2894,7 +2895,7 @@ if conf.get('ENABLE_TIMESYNCD') == 1 link_with : [libtimesyncd_core], dependencies : [threads, libm], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2903,7 +2904,7 @@ if conf.get('ENABLE_TIMESYNCD') == 1 'src/timesync/wait-sync.c', include_directories : includes, link_with : [libtimesyncd_core], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -2915,7 +2916,7 @@ if conf.get('ENABLE_MACHINED') == 1 include_directories : includes, link_with : [libmachine_core, libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2928,7 +2929,7 @@ if conf.get('ENABLE_MACHINED') == 1 libxz, liblz4, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) endif @@ -2940,7 +2941,7 @@ if conf.get('ENABLE_IMPORTD') == 1 include_directories : includes, link_with : [libshared], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2956,7 +2957,7 @@ if conf.get('ENABLE_IMPORTD') == 1 libz, libbzip2, libxz], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2970,7 +2971,7 @@ if conf.get('ENABLE_IMPORTD') == 1 libz, libbzip2, libxz], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2980,7 +2981,7 @@ if conf.get('ENABLE_IMPORTD') == 1 include_directories : includes, link_with : [libshared, lib_import_common], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -2994,7 +2995,7 @@ if conf.get('ENABLE_IMPORTD') == 1 libz, libbzip2, libxz], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3014,7 +3015,7 @@ if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_LIBCURL') == 1 libxz, liblz4, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -3032,7 +3033,7 @@ if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1 libxz, liblz4, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3047,7 +3048,7 @@ if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1 libxz, liblz4, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -3064,7 +3065,7 @@ if conf.get('ENABLE_COREDUMP') == 1 libxz, liblz4, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3078,7 +3079,7 @@ if conf.get('ENABLE_COREDUMP') == 1 libxz, liblz4, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) endif @@ -3093,7 +3094,7 @@ if conf.get('ENABLE_PSTORE') == 1 libxz, liblz4, libzstd], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -3104,7 +3105,7 @@ if conf.get('ENABLE_OOMD') == 1 include_directories : includes, link_with : [libshared], dependencies : [libatomic], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3114,7 +3115,7 @@ if conf.get('ENABLE_OOMD') == 1 include_directories : includes, link_with : [libshared], dependencies : [], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) endif @@ -3124,7 +3125,7 @@ if conf.get('ENABLE_BINFMT') == 1 'src/binfmt/binfmt.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3146,7 +3147,7 @@ if conf.get('ENABLE_SYSUPDATE') == 1 libblkid, libfdisk, libopenssl], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) public_programs += exe @@ -3158,7 +3159,7 @@ if conf.get('ENABLE_VCONSOLE') == 1 'src/vconsole/vconsole-setup.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -3169,7 +3170,7 @@ if conf.get('ENABLE_RANDOMSEED') == 1 'src/random-seed/random-seed.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -3181,7 +3182,7 @@ if conf.get('ENABLE_FIRSTBOOT') == 1 include_directories : includes, link_with : [libshared], dependencies : [libcrypt], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) endif @@ -3191,7 +3192,7 @@ executable( 'src/remount-fs/remount-fs.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3200,7 +3201,7 @@ executable( 'src/machine-id-setup/machine-id-setup-main.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -3209,7 +3210,7 @@ executable( 'src/fsck/fsck.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3217,7 +3218,7 @@ executable('systemd-growfs', 'src/partition/growfs.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3226,7 +3227,7 @@ executable( 'src/partition/makefs.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3235,7 +3236,7 @@ executable( 'src/sleep/sleep.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3249,7 +3250,7 @@ public_programs += executable( 'src/sysctl/sysctl.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3258,7 +3259,7 @@ executable( 'src/ac-power/ac-power.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3267,7 +3268,7 @@ public_programs += executable( 'src/detect-virt/detect-virt.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += executable( @@ -3275,7 +3276,7 @@ public_programs += executable( 'src/delta/delta.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += executable( @@ -3283,7 +3284,7 @@ public_programs += executable( 'src/escape/escape.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -3292,7 +3293,7 @@ public_programs += executable( 'src/notify/notify.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -3303,7 +3304,7 @@ public_programs += executable( link_with : [libshared], dependencies : [threads, libopenssl], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -3312,7 +3313,7 @@ executable( 'src/volatile-root/volatile-root.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : conf.get('ENABLE_INITRD') == 1, install_dir : rootlibexecdir) @@ -3321,7 +3322,7 @@ executable( 'src/cgroups-agent/cgroups-agent.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3330,7 +3331,7 @@ systemd_id128 = executable( 'src/id128/id128.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += systemd_id128 @@ -3347,7 +3348,7 @@ public_programs += executable( 'src/path/path.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += executable( @@ -3355,7 +3356,7 @@ public_programs += executable( 'src/ask-password/ask-password.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -3364,7 +3365,7 @@ executable( 'src/reply-password/reply-password.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3373,7 +3374,7 @@ public_programs += executable( 'src/tty-ask-password-agent/tty-ask-password-agent.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) @@ -3382,7 +3383,7 @@ public_programs += executable( 'src/cgls/cgls.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += executable( @@ -3390,7 +3391,7 @@ public_programs += executable( 'src/cgtop/cgtop.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) executable( @@ -3398,7 +3399,7 @@ executable( 'src/initctl/initctl.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : (conf.get('HAVE_SYSV_COMPAT') == 1), install_dir : rootlibexecdir) @@ -3408,7 +3409,7 @@ public_programs += executable( include_directories : includes, link_with : [libshared], dependencies: [libmount], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) meson.add_install_script(meson_make_symlink, @@ -3419,7 +3420,7 @@ public_programs += executable( 'src/run/run.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += executable( @@ -3428,7 +3429,7 @@ public_programs += executable( include_directories : includes, link_with : [libshared], dependencies : [versiondep], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) public_programs += executable( @@ -3437,7 +3438,7 @@ public_programs += executable( include_directories : includes, link_with : [libshared], dependencies : [versiondep], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) if enable_sysusers @@ -3446,7 +3447,7 @@ if enable_sysusers 'src/sysusers/sysusers.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) public_programs += exe @@ -3488,7 +3489,7 @@ if conf.get('ENABLE_TMPFILES') == 1 include_directories : includes, link_with : [libshared], dependencies : [libacl], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) public_programs += exe @@ -3550,7 +3551,7 @@ if conf.get('ENABLE_QUOTACHECK') == 1 'src/quotacheck/quotacheck.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) endif @@ -3561,7 +3562,7 @@ public_programs += executable( include_directories : includes, link_with : [libshared], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3590,7 +3591,7 @@ if conf.get('ENABLE_REPART') == 1 dependencies : [threads, libblkid, libfdisk], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) public_programs += exe @@ -3608,7 +3609,7 @@ executable( include_directories : includes, link_with : [libshared], dependencies : [libmount], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3617,7 +3618,7 @@ executable( 'src/update-done/update-done.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3627,7 +3628,7 @@ executable( include_directories : includes, link_with : [libshared], dependencies : [libaudit], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : (conf.get('ENABLE_UTMP') == 1), install_dir : rootlibexecdir) @@ -3638,7 +3639,7 @@ if conf.get('HAVE_KMOD') == 1 include_directories : includes, link_with : [libshared], dependencies : [libkmod], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3658,7 +3659,7 @@ public_programs += executable( libshared], dependencies : [libblkid, libseccomp], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true) if conf.get('ENABLE_NETWORKD') == 1 @@ -3670,7 +3671,7 @@ if conf.get('ENABLE_NETWORKD') == 1 libsystemd_network, networkd_link_with], dependencies : [threads], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3679,7 +3680,7 @@ if conf.get('ENABLE_NETWORKD') == 1 systemd_networkd_wait_online_sources, include_directories : includes, link_with : [networkd_link_with], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3689,7 +3690,7 @@ if conf.get('ENABLE_NETWORKD') == 1 include_directories : libsystemd_network_includes, link_with : [libsystemd_network, networkd_link_with], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootbindir) endif @@ -3699,7 +3700,7 @@ exe = executable( network_generator_sources, include_directories : includes, link_with : [networkd_link_with], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3716,7 +3717,7 @@ executable( 'src/sulogin-shell/sulogin-shell.c', include_directories : includes, link_with : [libshared], - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : true, install_dir : rootlibexecdir) @@ -3779,7 +3780,7 @@ foreach tuple : tests dependencies], c_args : defs, build_by_default : want_tests != 'false', - install_rpath : rootlibexecdir, + install_rpath : rootpkglibdir, install : install_tests, install_dir : testsdir / type, link_depends : runtest_env) diff --git a/src/core/meson.build b/src/core/meson.build index 9efa542a..162090a1 100644 --- a/src/core/meson.build +++ b/src/core/meson.build @@ -202,7 +202,7 @@ libcore = shared_library( libblkid, libacl], install : true, - install_dir : rootlibexecdir) + install_dir : rootpkglibdir) core_includes = [includes, include_directories('.')] diff --git a/src/nspawn/nspawn-util.c b/src/nspawn/nspawn-util.c index 402554fa..830ac39e 100644 --- a/src/nspawn/nspawn-util.c +++ b/src/nspawn/nspawn-util.c @@ -20,9 +20,12 @@ int systemd_installation_has_version(const char *root, const char *minimal_versi /* /lib works for systems without usr-merge, and for systems with a sane * usr-merge, where /lib is a symlink to /usr/lib. /usr/lib is necessary * for Gentoo which does a merge without making /lib a symlink. + * Also support multiarch paths von Debian/Ubuntu; *-linux-* is a small + * optimization based on the naming scheme of existing multiarch tuples. */ "/lib/systemd/libsystemd-shared-*.so", "/lib64/systemd/libsystemd-shared-*.so", + "/usr/lib/*-linux-*/systemd/libsystemd-shared-*.so", "/usr/lib/systemd/libsystemd-shared-*.so", "/usr/lib64/systemd/libsystemd-shared-*.so") { @@ -47,7 +50,7 @@ int systemd_installation_has_version(const char *root, const char *minimal_versi /* This is most likely to run only once, hence let's not optimize anything. */ char *t, *t2; - t = startswith(*name, path); + t = startswith(basename(*name), "libsystemd-shared-"); if (!t) continue; diff --git a/src/shared/meson.build b/src/shared/meson.build index 1d4e4a07..363693d5 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -483,4 +483,4 @@ libshared = shared_library( libsystemd_static], dependencies : libshared_deps, install : true, - install_dir : rootlibexecdir) + install_dir : rootpkglibdir) diff --git a/src/udev/meson.build b/src/udev/meson.build index 79964a7d..c6711beb 100644 --- a/src/udev/meson.build +++ b/src/udev/meson.build @@ -100,7 +100,7 @@ link_config_gperf_c = custom_target( if get_option('link-udev-shared') udev_link_with = [libshared] - udev_rpath = rootlibexecdir + udev_rpath = rootpkglibdir else udev_link_with = [libshared_static, libsystemd_static]