Python: fix build on Fedora/SUSE#39837
Conversation
| cflags = [] | ||
|
|
||
| # https://bugs.python.org/issue1294959 | ||
| if "fedora" in self.spec.os or "suse" in self.spec.os: |
There was a problem hiding this comment.
is it possible to do this without spec.os? I'd like to be able to drop that property. For spack it makes no sense at all to have a lib64 directory 😕 can't you just drop the branch and force lib everywhere?
There was a problem hiding this comment.
Lib is already the default but doesn't seem to work on Fedora/SUSE, I think it needs to be lib64. We can do it without spec.os, I just need some way of checking to see which distro we're on.
There was a problem hiding this comment.
What makes it such that it needs to be lib64? Something in Python itself? Where?
There was a problem hiding this comment.
No idea, try reading through https://bugs.python.org/issue1294959 and see if you can extract more info than me.
There was a problem hiding this comment.
In the case of Opensuse the issue here is that the autoconf installed by Opensuse defaults to install libs in lib64, is there a way to conflict with external package. In this manner we can use the spack autoconf.
|
I cannot reproduce the original problem on Fedora: Am I missing anything? |
@michaelkuhn May be specific to OpenSUSE Tumbleweed? |
manuelakuhn
left a comment
There was a problem hiding this comment.
I tried to reproduce the problems on my Fedora and inside an opensuse/tumbleweed container but could not reproduce it in either of them.
I tried
# spack load python+zlib
# python -c 'import zlib'
# ls $(spack location -i python+zlib)
.spack bin include lib share
and spack install py-pip ^zlib which ran through without problems.
|
@DanielYang59 @awadell1 any other ideas for reproducing the original issue? |
|
@adamjstewart I'm working on reproducing this issue on my PC (with Zen 4 CPU) on a OpenSUSE Tumbleweed VM. However I cannot even install the berkeley-db dependency and got |
|
I also gave this another try in a Tumbleweed container and wasn't able to reproduce the issue. |
|
Closing until we find a way to reproduce the original issues. |
|
@HadrienG2 is able to reproduce this on a local install (not a container) just as my original case in #39551 (comment).
Can you please follow up this please? Sorry I cannot help much on this as I wiped my local OpenSUSE image. |
|
As a both OpenSUSE and spack user I still see this error whenever I install python in spack. I would like to help with this |
|
Can you open a new PR? Or comment on the open issue? I think someone other than me should spearhead this fix since I don't have access to these systems. Feel free to steal my changes for the new PR, I don't care about credit. |
|
Followup PR at: #48575 |
Fixes #37171
Fixes #39551
@DanielYang59