-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
OpenZFS 2.2.3 doesn't compile on Ubuntu 24.04 - python3-distutils deprecation #16126
Comments
Reference: https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated
This seems preferable to me but probably isn't sufficient. It also looks like we'll need to pull in the latest version of the |
Not sure ... For now I managed to compile and installed the generated But I'm NOT sure if it the system will even boot ... |
On second thought I guess it will NOT boot. I see Ubuntu 24.04 ships with Kernel And OpenZFS 2.2.3 only supports up to Kernel 6.7.x 😞. |
Still it seems to have installed successfully, doesn't it ?
|
@behlendorf It build and installed the Package fine, but should I dare reboot ? It seems that the OpenZFS Sources already prefer the
Or with a bit more Details:
Most of the time the Specifically in
|
As for python-3.12 the distutils package has been deprecated. The latest ax_python_devel.m4 macro from the autoconf archive has been updated accordingly so let's pull in the new version. We can also drop the changes made to our customized version to continue if the development version is not installed since this functionality has been included upstream. Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#16126
As for python-3.12 the distutils package has been deprecated. The latest ax_python_devel.m4 macro from the autoconf archive has been updated accordingly so let's pull in the new version. We can also drop the changes made to our customized version to continue if the development version is not installed since this functionality has been included upstream. Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#16126
@luckylinux if you can try PR #16129 that would be helpful.
The python bits aren't needed at all for the kernel modules or core utilities. If the dkms package was able to be installed and it built the kmod successfully you should be all set. |
As for python-3.12 the distutils package has been deprecated. The latest ax_python_devel.m4 macro from the autoconf archive has been updated accordingly so let's pull in the new version. We can also drop the changes made to our customized version to continue if the development version is not installed since this functionality has been included upstream. Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#16126
@behlendorf Alright. I will find out soon 😆. I see you did A LOT of changes to the source code in your commit (besides the "quick-fix" that I proposed in the Was that really necessary or was is more like a "due" cleanup Task ? |
It's not as bad as it looks. All of the changes to |
@behlendorf I'll try to reboot now (with my own version that I bypassed the checks). I'll try yours after the reboot (if hopefully everything goes well). |
OK I rebooted. It seems to be working as before (with my bypassed version). Working even on Kernel 6.8. No warnings during compile of
I'll try your PR #16129 now 👍 . |
@behlendorf I'm currently trying to build using this script. (but on a quick run I see that the files in my local branch reflect the modifications you pade i.e.
I'll let you know how it goes in a few minutes hopefully. The short message I see during ZFS Compile is:
(apparently Ubuntu isn't using GCC 14 by default yet) |
Folder Contents (one level ABOVE where the sources are located, i.e. this is where the
Seems good. Let me know if you need anything else 👍. |
@luckylinux great. Thanks for giving this a spin. |
@behlendorf You're welcome, thanks for the very quick response 👍 . Note that I did NOT test that the resulting Packages will install (as in |
As for python-3.12 the distutils package has been deprecated. The latest ax_python_devel.m4 macro from the autoconf archive has been updated accordingly so let's pull in the new version. We can also drop the changes made to our customized version to continue if the development version is not installed since this functionality has been included upstream. Reviewed-by: Rich Ercolani <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #16126 Closes #16129
As for python-3.12 the distutils package has been deprecated. The latest ax_python_devel.m4 macro from the autoconf archive has been updated accordingly so let's pull in the new version. We can also drop the changes made to our customized version to continue if the development version is not installed since this functionality has been included upstream. Reviewed-by: Rich Ercolani <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#16126 Closes openzfs#16129
System information
Describe the problem you're observing
While building OpenZFS on a (to be officially released in a few days) Ubuntu 24.04 System, openzfs-dkms Package fails to install due to missing
python3-distutils
Package.This Package has been removed as of Python 3.12.
Since Ubuntu 24.04 ships with Python 3.12, this blocks the installation of OpenZFS Packages.
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
See previous Section.
Proposed Fix
I tried to do some REGEX using
sed
in a build script, but it doesn't really work that well (from within the unpackedzfs-2.2.3
Archive downloaded from the OpenZFS repository):Basically, either:
python3-distutils | libpython3-stdlib (<< 3.6.4)
)python3 >> 3.12 | python3-distutils | libpython3-stdlib (<< 3.6.4)
The second Solution is most likely preferable due to compatibility with Debian and Debian-based Distributions featuring older Versions of Python.
The text was updated successfully, but these errors were encountered: