-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
obs build Debian_10
and obs build Debian_11
failed with The headers or library files could not be found for zlib
#7066
Comments
We do test Debian 11 in our CIs. I turned on debugging, and it is finding /usr/include/zlib.h correctly. If you want, you could also turn on debugging to see what paths it checks - Line 127 in 7d3a6aa
Do you have thoughts as to how we could test your exact setup? Is this something you can recreate using Docker? |
I am now rolling back
In case of Debian Testing (https://build.opensuse.org/package/live_build_log/home:alvistack/python-pillow-Pillow-9.5.0/Debian_Testing/x86_64):
|
git clean -xdf tar zcvf ../python-pillow_9.5.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-pillow.spec ../python-pillow_9.5.0-1.spec mv ../python*-pil*9.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/python-pillow-Pillow-9.5.0/ rm -rf ../python*-pil*9.5.0*.* See python-pillow#7066 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
After line-by-line diff and revert setup.py from 9.5.0 to 9.4.0, this issue could be fixed by revert #7044:
From my point of view, when building package with |
The headers or library files could not be found for zlib
obs build Debian_10
and obs build Debian_11
failed, The headers or library files could not be found for zlib
Is there a reason you can't set up your path correctly? |
Does #7068 fix the problem? |
We ran into the same issue in https://github.com/nix-community/poetry2nix. cc @sebastic |
Cannot reproduce with the 9.5.0 tag in a bullseye chroot:
|
I've narrowed this down to a type confusion issue in #7069. |
@adisbladis I'm not convinced that your problem is the same as the original problem in this issue, considering that the original poster found that reverting #7044 fixed their situation. Unless you tell me that reverting #7044 fixes your situation as well, would you mind opening a new issue? |
obs build Debian_10
and obs build Debian_11
failed, The headers or library files could not be found for zlib
obs build Debian_10
and obs build Debian_11
failed with The headers or library files could not be found for zlib
It should also be noted that Pillow doesn't test Debian 10 in our CIs anymore, since it is EOL. |
git clean -xdf tar zcvf ../python-pillow_9.5.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-pillow.spec ../python-pillow_9.5.0-1.spec mv ../python*-pil*9.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/python-pillow-Pillow-9.5.0/ rm -rf ../python*-pil*9.5.0*.* See python-pillow#7066 See python-pillow#7068 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf tar zcvf ../python-pillow_9.5.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-pillow.spec ../python-pillow_9.5.0-1.spec mv ../python*-pil*9.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/python-pillow-Pillow-9.5.0/ rm -rf ../python*-pil*9.5.0*.* See python-pillow#7066 See python-pillow#7068 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf tar zcvf ../python-pillow_9.5.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-pillow.spec ../python-pillow_9.5.0-1.spec mv ../python*-pil*9.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/python-pillow-Pillow-9.5.0/ rm -rf ../python*-pil*9.5.0*.* See python-pillow#7066 See python-pillow#7068 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
Yes #7068 could fix this issue, see alvistack@6bf7f22 |
#7069 has been merged, fixing part of this. |
git clean -xdf tar zcvf ../python-pillow_9.5.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-pillow.spec ../python-pillow_9.5.0-1.spec mv ../python*-pil*9.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/python-pillow-Pillow-9.5.0/ rm -rf ../python*-pil*9.5.0*.* See python-pillow#7066 See python-pillow#7068 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf tar zcvf ../python-pillow_9.5.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-pillow.spec ../python-pillow_9.5.0-1.spec cp ../python*-pil*9.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/python-pillow-Pillow-9.5.0/ rm -rf ../python*-pil*9.5.0*.* See python-pillow#7066 See python-pillow#7068 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf tar zcvf ../python-pillow_9.5.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-pillow.spec ../python-pillow_9.5.0-1.spec cp ../python*-pil*9.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/python-pillow-Pillow-9.5.0/ rm -rf ../python*-pil*9.5.0*.* See python-pillow#7066 See python-pillow#7068 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
What did you do?
I am packaging pillow as .deb with OBS service (see https://build.opensuse.org/package/show/home:alvistack/python-pillow-Pillow-9.5.0 and alvistack@61ac84f), but only failed for Debian 10/11 with
The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.
.After revert
setup.py
from 9.4.0, the build passed successfully.What did you expect to happen?
As like as Debian Testing (https://build.opensuse.org/build/home:alvistack/Debian_Testing/x86_64/python-pillow-Pillow-9.5.0/_log),
/usr/include/zlib.h
should be detected and build should be passing.What actually happened?
https://build.opensuse.org/build/home:alvistack/Debian_10/x86_64/python-pillow-Pillow-9.5.0/_log:
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: