Bump the meson requirement to 0.61 which allows us to remove our clunky
shell script in favour of the native install_symlink().
In terms of OS support - according to repology, all distributions which
have 0.60 (Fedora 36 + winget) also have 0.61 in their repositories.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/209
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/meson.build \
scripts/build-scdoc.sh \
scripts/sanitizer-env.sh \
- scripts/test-gtkdoc.sh \
- scripts/kmod-symlink.sh
+ scripts/test-gtkdoc.sh
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
'c',
version : '33',
license : ['LGPLv2.1', 'GPL-2.0-or-later'],
- meson_version : '>=0.60.0',
+ meson_version : '>=0.61.0',
default_options : [
'c_std=gnu11',
'b_pie=true',
'rmmod',
]
-kmod_symlink = find_program('scripts/kmod-symlink.sh')
foreach tool : _tools
if get_option('tools')
- symlink = bindir / tool
- meson.add_install_script(kmod_symlink, symlink)
+ install_symlink(tool, pointing_to: 'kmod', install_dir: bindir)
endif
endforeach
+++ /dev/null
-#!/bin/bash
-
-set -euo pipefail
-
-# Dummy wrapper script, since that's the meson way. Aka, there is no access to
-# DESTDIR from within meson nor any other way to check/fetch it.
-#
-# For context read through https://github.com/mesonbuild/meson/issues/9
-
-DESTDIR=${DESTDIR:-/}
-
-ln -sf kmod "$DESTDIR/$1"