summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2025-04-24 11:28:52 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2025-04-24 11:28:52 -0500
commit71e9139f23601e80c00fb8a5edbe322bba70ef0f (patch)
treee2ab3cbc23e070b626ca66356ca1e25f0fcdcc56
parentc00e6c3f6a380f194db1da1e0653565d1c40505a (diff)
build: install the version file with mesonorigin/install-version-with-meson
This raises the minimum version of meson to 1.7.0.
-rw-r--r--meson.build2
-rw-r--r--src/shared/meson.build4
-rwxr-xr-xtools/meson_final.sh1
3 files changed, 4 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index cecb78ed..18da81fb 100644
--- a/meson.build
+++ b/meson.build
@@ -8,7 +8,7 @@ project('OpenRC', 'c',
'sbindir=/sbin',
'warning_level=3',
],
- meson_version : '>=0.62.0'
+ meson_version : '>=1.7.0'
)
cc = meson.get_compiler('c')
diff --git a/src/shared/meson.build b/src/shared/meson.build
index ffc0732b..f5d4db9c 100644
--- a/src/shared/meson.build
+++ b/src/shared/meson.build
@@ -40,4 +40,6 @@ version_h = vcs_tag(
version_f = vcs_tag(
input : 'version.in',
- output : 'version')
+ output : 'version',
+ install : true,
+ install_dir : rc_libexecdir)
diff --git a/tools/meson_final.sh b/tools/meson_final.sh
index bac49972..53e44561 100755
--- a/tools/meson_final.sh
+++ b/tools/meson_final.sh
@@ -9,4 +9,3 @@ os="$2"
if [ "${os}" != Linux ]; then
install -d "${DESTDIR}/${rc_libexecdir}"/init.d
fi
-install -m 644 "${MESON_BUILD_ROOT}/src/shared/version" "${DESTDIR}/${rc_libexecdir}"