-
Notifications
You must be signed in to change notification settings - Fork 8
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 build system libdir #95
Conversation
8fabede
to
b49d567
Compare
d5462dd
to
8cbcfc8
Compare
Ah, I'm kinda surprised pixi is the only thing catch that bug. I'll send out a v2 later to fix that. |
8cbcfc8
to
4f9d3b1
Compare
4f9d3b1
to
25313c6
Compare
ea3c971
to
0e8913d
Compare
The remaining test failure is really annoying, because it only exists in our test configuration, since we have hardcoded paths, but those paths need to depend on the configured libdir. |
This was missed for the ` result:` key
It matches the cmake, and cleans up the root a bit.
d90ed29
to
101682d
Compare
Our build systems know what the libdir and datadir that will be used is, and we should honor that. The actual code changes here aren't too complicated, but the test system actually needs a good deal of enhancement to be able to test this correctly.
…refix There are two corrections here: 1) only remove one, either the datadir or the libdir 2) only remove the directory if the whole directory can be removed, for example: the prefix is `/usr/lib/foo/x86_64-linux-gnu`, and the libdir is `lib/x86_64-linux-gnu`, we don't want to take off just the `x86_64-linux-gnu`, we want to leave the whole thing since we couldn't remove the entire libdir.
101682d
to
b51954d
Compare
I hid my own comment as I checked PR 94 instead of PR 95 and the issue I found is unrelated. This branch builds and tests just fine. |
Instead of hardcoding it.
This required some enhancements to our test system, and that we generate tests that need to use
@prefix@
, since the{lib}
component depends on how the build is configured. I've also done some work to make the handling of the libdir and the datadir more robust (ie, only remove one, fail if we can't remove all components).This does, I noticed, use
datadir
instead of harding codingshare
as the datadir path. That might not actually be desirable.Based on #93Based on #102