-
Notifications
You must be signed in to change notification settings - Fork 117
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
Use libdir to install protocols #138
base: main
Are you sure you want to change the base?
Conversation
It would also be nice to have a release soon, preferably after this gets merged. =) |
Something like this was attempted and rejected in #106 |
ping |
meson.build
Outdated
datadir = join_paths(prefixdir, get_option('datadir')) | ||
docdir = join_paths(datadir, 'doc/casync') | ||
protocoldir = join_paths(prefixdir, 'lib/casync/protocols') | ||
protocoldir = join_paths(libdir, 'casync/protocols') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libdir is the wrong place for executable binaries. If anything it should be libexecdir, but not libdir here.
OK, OK, let's make this work. But please change the patch so that the default remains as it is now, and make |
Adjust protocoldir accordingly when it is passed.
Sorry, I kept missing this all this time. Is this close to what you wanted (I'm not really great at meson)? |
We pass something like:
meson --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/bin
--libdir=/usr/x86_64-pc-linux-gnu/lib --libexecdir=/usr/x86_64-pc-linux-gnu/libexec ...
in exherbo, where /usr/lib is symlinked to /usr/$TARGET/lib, /usr/bin -> /usr/$TARGET/bin,
and so on, but before this change they would be installed to /usr/lib, which does not work
since that is a symlink as described above, so use the passed libdir to install protocols. Other *dirs were working correctly.