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 build system libdir #95

Merged
merged 6 commits into from
Sep 25, 2024
Merged

Conversation

dcbaker
Copy link
Collaborator

@dcbaker dcbaker commented Jul 25, 2024

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 coding share as the datadir path. That might not actually be desirable.

Based on #93
Based on #102

@dcbaker dcbaker force-pushed the submit/use-buildsystem-libdir branch 3 times, most recently from 8fabede to b49d567 Compare July 26, 2024 16:28
@dcbaker dcbaker marked this pull request as ready for review July 26, 2024 16:28
@dcbaker dcbaker force-pushed the submit/use-buildsystem-libdir branch 2 times, most recently from d5462dd to 8cbcfc8 Compare July 26, 2024 22:13
@dcbaker
Copy link
Collaborator Author

dcbaker commented Jul 27, 2024

Ah, I'm kinda surprised pixi is the only thing catch that bug. I'll send out a v2 later to fix that.

@dcbaker dcbaker force-pushed the submit/use-buildsystem-libdir branch from 8cbcfc8 to 4f9d3b1 Compare August 23, 2024 21:29
@dcbaker dcbaker force-pushed the submit/use-buildsystem-libdir branch from 4f9d3b1 to 25313c6 Compare September 10, 2024 18:08
@dcbaker dcbaker marked this pull request as draft September 10, 2024 18:09
@dcbaker dcbaker force-pushed the submit/use-buildsystem-libdir branch 2 times, most recently from ea3c971 to 0e8913d Compare September 11, 2024 18:17
@dcbaker
Copy link
Collaborator Author

dcbaker commented Sep 11, 2024

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.

@dcbaker dcbaker force-pushed the submit/use-buildsystem-libdir branch 2 times, most recently from d90ed29 to 101682d Compare September 11, 2024 22:30
@dcbaker dcbaker marked this pull request as ready for review September 11, 2024 22:34
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.
@dcbaker dcbaker force-pushed the submit/use-buildsystem-libdir branch from 101682d to b51954d Compare September 24, 2024 23:15
tylerjw

This comment was marked as outdated.

@tylerjw
Copy link
Contributor

tylerjw commented Sep 24, 2024

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.

@dcbaker dcbaker merged commit 683bce7 into cps-org:main Sep 25, 2024
9 checks passed
@dcbaker dcbaker deleted the submit/use-buildsystem-libdir branch September 25, 2024 04:54
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

Successfully merging this pull request may close these issues.

2 participants