-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix pyzfs build #17480
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
Open
martin-rueegg
wants to merge
2
commits into
openzfs:master
Choose a base branch
from
metaworx:fix-pyzfs-build
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix pyzfs build #17480
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixes an obvious type, where a variable was missing the required leading dollar sign ($) Signed-off-by: Martin Rüegg <martin.rueegg@metaworx.ch>
15b1f9e
to
54f6029
Compare
Build fails on Fedora 41:
Build fails on AlmaLinux 10:
|
54f6029
to
f988efd
Compare
71216b9 introduced a regression on debian/ubuntu systems during build. The reason being, that building the RPM for pyzfs was using a different library path than building the library itself. This is now harmonized. Closes: openzfs#16155 Signed-off-by: Martin Rüegg <martin.rueegg@metaworx.ch>
f988efd
to
e772f5b
Compare
Fedora 41
It follows, that
|
Ok, build was successful on all tested platforms. |
@behlendorf could you take a look at this, since you authored #16129? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Description
For pyzfs, the evaluation of the library path is done differently at different places:
distutils.sysconfig
andsysconfig
as a fallback, whilesysconfig
anddistutils.sysconfig
as a fallback.posix_prefix
for thescheme
parameter ofsysconfig.get_path()
, while RPM does not.zfs-2.2.x
zfs-2.3.x
distutils
has been deprecated, the attempt was to update the RPM path evaluation, rather than vice versa.Open questions
Library Path does not exist on the local system
On all four tested systems (see #16155 (comment)), the path that is evaluated by
ax_python_devel.m4
does not exist on the system.For the build process, it does not matter. As the path is relative to the build directory in
/tmp
.However, I don't know why the RPMs are built and if that path is used during installation of pyzfs' RPM. In which case the library might be installed in a place where it is not found?
On Debian and Ubuntu, should the environment-variable
DEB_PYTHON_INSTALL_LAYOUT=deb
be set? See explanation and implementation fpr further details.How Has This Been Tested?
Since this change is build-related, the main test is the tests run here on github.
I've also tested it on my Ubuntu 24.04 installation, with python3.12 and distutils installed:
The following output was produced on that build system with the test script provided here.
Types of changes
Checklist:
Signed-off-by
.