install_symlink pointing_to does not observe prefix
nils-werner opened this issue · comments
Nils Werner commented
Describe the bug
If I pass in something like get_option('bindir')
into install_symlink
s pointing_to
, the resulting path does not include prefix
, and comes up with a different path than all the other install_dir
instances anywhere else in my builds:
project(
'test',
'cpp',
meson_version : '>=0.61.0',
)
install_data(
'datafile',
install_dir : get_option('datadir'), # $DESTDIR/usr/local/share/
)
install_symlink(
'datafile2',
install_dir : '/',
pointing_to : get_option('datadir') / 'datafile' # $DESTDIR/share/datafile
)
Plus, it fails due to a "missing file" error.
I can do a workaround using
install_data(
'datafile',
install_dir : get_option('datadir'),
)
install_symlink(
'datafile2',
install_dir : '/',
pointing_to : get_option('prefix') / get_option('datadir') / 'datafile'
)
but I don't think I should have to.
To Reproduce
Try the example from above
Expected behavior
I'd expect that pointing_to
should observe prefix
like all other install_dir
s do.
system parameters
- Is this a cross build or just a plain native build (for the same computer)? Native
- what operating system? Ubuntu 22.04
- what Python version: 3.10.12
- what
meson --version
: 1.4.0 - what
ninja --version
: 1.10.1