-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
uuid won't build when libuuid is installed in a non-standard place #87324
Comments
I'm building Python for a mildly-embedded ARM system. The system is running Linux, but doesn't have a native toolchain installed. So I'm building in a Docker container using a native toolchain (virtualizing the CPU). The toolchain I'm given has a bunch of stuff preinstalled, but not "util-linux", so it doesn't have /usr/include/uuid/uuid.h or /usr/include/uuid.h . I built and installed it myself in my PREFIX directory. But Python's build process has *two* bugs that prevented me from building the uuid module:
I hacked both of these manually and was rewarded with the uuid module building and working fine on the embedded system. So I assert this is a bug in Python's build process, if a minor one. |
I've added Christian Heimes to this, mostly to help us get this further. So, there is a fix for this in Buildroot's tree: I am porting this patch to OpenWrt. I'd like to know how to proceed with this patch and submit it upstream. Or would it be fine for me to open a PR and mention the original source/author? |
I have created a PR that adds a check for libuuid to configure and then uses configure variables in setup.py. Could you please try the patch in your build system? |
I confirm that this works on OpenWrt :) I actually started testing shortly after the PR was created. Many thanks for the quick patch. |
The problem should be fixed now. |
I'm seeing this issue again with Python 3.12. I have See also this discussion in Homebrew about a similar issue: https://github.com/orgs/Homebrew/discussions/4899 |
|
It looks like the configure logic is wrong in that |
Bah…there's a patch we apply to make |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: