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

Use libdir to install protocols #138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bl33pbl0p
Copy link

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.

@bl33pbl0p
Copy link
Author

It would also be nice to have a release soon, preferably after this gets merged. =)

@fsateler
Copy link
Member

fsateler commented Mar 6, 2018

Something like this was attempted and rejected in #106

@bl33pbl0p
Copy link
Author

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')
Copy link
Member

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.

@keszybz
Copy link
Member

keszybz commented Jan 24, 2019

OK, OK, let's make this work. But please change the patch so that the default remains as it is now, and make libexecdir overridable. If -Dlibexecdir, install under libexecdir/casync, and otherwise keep the path that is used now.

@keszybz
Copy link
Member

keszybz commented Apr 25, 2019

@bl33pbl0p ?

Adjust protocoldir accordingly when it is passed.
@bl33pbl0p
Copy link
Author

bl33pbl0p commented Apr 25, 2019

Sorry, I kept missing this all this time.

Is this close to what you wanted (I'm not really great at meson)?

@keszybz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants