Skip to content
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

dpkg-shlibdeps: error: cannot find library #8137

Closed
adi- opened this issue Jun 13, 2024 · 1 comment
Closed

dpkg-shlibdeps: error: cannot find library #8137

adi- opened this issue Jun 13, 2024 · 1 comment
Labels
Installation Usually a problem with … Linux

Comments

@adi-
Copy link

adi- commented Jun 13, 2024

From version 10.2.0 debian packager has problems finding/excluding libraries in override_dh_shlibdeps. It was working until version 10.1.0. The error is as follows:

dh_shlibdeps -X PIL -X Pillow
dpkg-shlibdeps: error: cannot find library libfreetype-1023e0d6.so.6.20.1 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libharfbuzz-9712df56.so.0.60830.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libbrotlicommon-c43ca8d5.so.1.1.0 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libbrotlidec-6c4e80e7.so.1.1.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libsharpyuv-652b6057.so.0.0.1 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libwebp-8a0843dd.so.7.1.8 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library liblzma-d1e41b3a.so.5.4.5 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libtiff-f683b479.so.6.0.2 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libjpeg-cec335f2.so.62.4.0 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libtiff-f683b479.so.6.0.2 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libpng16-36a62686.so.16.40.0 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libfreetype-1023e0d6.so.6.20.1 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libbrotlidec-6c4e80e7.so.1.1.0 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libfreetype-1023e0d6.so.6.20.1 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libwebp-8a0843dd.so.7.1.8 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libwebpmux-b067bc14.so.3.0.13 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libXau-00ec42fe.so.6.0.0 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libxcb-ac5351d8.so.1.1.0 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libwebp-8a0843dd.so.7.1.8 needed by debian/www/opt/venvs/www/lib/python3.8/site-packages/pillow.libs/libwebpdemux-f9b98349.so.2.0.14 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
@adi-
Copy link
Author

adi- commented Jun 13, 2024

Override looks like this:

override_dh_shlibdeps:
	# Exclude Pillow's libraries from the process. They are known
	# to be self-contained, but they have interdependencies and
	# dpkg-shlibdeps doesn't know how to resolve them.
	dh_shlibdeps -X site-packages/PIL/.libs -X site-packages/pillow.libs

@adi- adi- closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
@radarhere radarhere added Linux Installation Usually a problem with … labels Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation Usually a problem with … Linux
Projects
None yet
Development

No branches or pull requests

2 participants