diff options
author | Brandon Maier <brandon.maier@collins.com> | 2024-04-08 22:27:13 -0500 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2024-07-01 12:01:52 +1000 |
commit | 49d30894466e78cc8fbc0c09dcdccdd4de709181 (patch) | |
tree | fd1a2ca9220767b9a601e4203889ae7301e72ad1 | |
parent | d54aaf93673c78669468737f1cbc1b465d6adfa0 (diff) | |
download | dtc-49d30894466e78cc8fbc0c09dcdccdd4de709181.zip dtc-49d30894466e78cc8fbc0c09dcdccdd4de709181.tar.gz dtc-49d30894466e78cc8fbc0c09dcdccdd4de709181.tar.bz2 |
meson: fix installation with meson-python
The meson-python backend fails to map 'dtdiff' install into Python
wheels. Removing the prefix from the install_dir path allows
meson-python to map dtdiff. The install_data(install_dir) documentation
says "If this is a relative path, it is assumed to be relative to the
prefix"[1]. So removing the prefix does not change the installation
behaviour.
[1] https://mesonbuild.com/Reference-manual_functions.html#install_data
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 4bb1196..310699f 100644 --- a/meson.build +++ b/meson.build @@ -122,7 +122,7 @@ if get_option('tools') install_data( 'dtdiff', - install_dir: get_option('prefix') / get_option('bindir'), + install_dir: get_option('bindir'), install_mode: 'rwxr-xr-x', ) endif |