Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install_symlink pointing_to does not observe prefix #13220

Open
nils-werner opened this issue May 16, 2024 · 0 comments
Open

install_symlink pointing_to does not observe prefix #13220

nils-werner opened this issue May 16, 2024 · 0 comments

Comments

@nils-werner
Copy link

Describe the bug

If I pass in something like get_option('bindir') into install_symlinks 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_dirs 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant