termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.88k stars 2.97k forks source link

[Bug]: poppler: missing "Depends: zstd" #8355

Closed javaxubuntu closed 2 years ago

javaxubuntu commented 2 years ago

Problem description

zstd should be a dependency for poppler

What steps will reproduce the bug?

If zstd is not installed : $ pdftoppm ../20-dominion-aventures-regle.pdf img CANNOT LINK EXECUTABLE "pdftoppm": library "libzstd.so.1" not found Aborted

What is the expected behavior?

No response

System information

termux-info:

Application version:                            0.117
Packages CPU architecture:                      arm
Subscribed repositories:                        # sources.list
deb https://grimler.se/termux-packages-24/ stable main
# game-repo (sources.list.d/game.list)          deb https://packages.termux.org/apt/termux-games games stable                                   # science-repo (sources.list.d/science.list)
deb https://packages.termux.org/apt/termux-science science stable
# x11-repo (sources.list.d/x11.list)            deb https://packages.termux.org/apt/termux-x11 x11 main                                         Updatable packages:
termux-tools/stable,stable 0.154 all [upgradable from: 0.153]
Android version:                                7.0
Kernel build information:                       Linux localhost 3.10.61-12236002 #1 SMP PREEMPT Wed Sep 16 21:30:32 KST 2020 armv8l Android     Device manufacturer:
samsung                                         Device model:
SM-A510F
xtkoba commented 2 years ago

What version of poppler are you using? For 21.08.0-3 I do not see any direct dependency on zstd from bin/pdftoppm:

$ readelf -Wa bin/pdftoppm | grep "(NEEDED)"
 0x00000001 (NEEDED)                     Shared library: [libpoppler.so]
 0x00000001 (NEEDED)                     Shared library: [liblcms2.so.2]
 0x00000001 (NEEDED)                     Shared library: [libc++_shared.so]
 0x00000001 (NEEDED)                     Shared library: [libm.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]

$ readelf -Wa lib/libpoppler.so | grep "(NEEDED)"
 0x00000001 (NEEDED)                     Shared library: [libfreetype.so]
 0x00000001 (NEEDED)                     Shared library: [libfontconfig.so]
 0x00000001 (NEEDED)                     Shared library: [libjpeg.so]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libcurl.so]
 0x00000001 (NEEDED)                     Shared library: [libopenjp2.so]
 0x00000001 (NEEDED)                     Shared library: [liblcms2.so.2]
 0x00000001 (NEEDED)                     Shared library: [libpng16.so]
 0x00000001 (NEEDED)                     Shared library: [libtiff.so]
 0x00000001 (NEEDED)                     Shared library: [libm.so]
 0x00000001 (NEEDED)                     Shared library: [libc++_shared.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]
ghost commented 2 years ago
CANNOT LINK EXECUTABLE "pdftoppm": library "libzstd.so.1" not found: needed by /data/data/com.termux/files/usr/lib/libtiff.so in namespace (default)

That's libtiff should be fixed, not poppler.

javaxubuntu commented 2 years ago
~ $ readelf -Wa ../usr/bin/pdftoppm | grep "(NEEDED)"
 0x00000001 (NEEDED)                     Shared library: [libpoppler.so]
 0x00000001 (NEEDED)                     Shared library: [liblcms2.so.2]
 0x00000001 (NEEDED)                     Shared library: [libc++_shared.so]
 0x00000001 (NEEDED)                     Shared library: [libm.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]
~ $ readelf -Wa ../usr/lib/libpoppler.so | grep "(NEEDED)"
 0x00000001 (NEEDED)                     Shared library: [libfreetype.so]
 0x00000001 (NEEDED)                     Shared library: [libfontconfig.so]
 0x00000001 (NEEDED)                     Shared library: [libjpeg.so]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libcurl.so]
 0x00000001 (NEEDED)                     Shared library: [libopenjp2.so]
 0x00000001 (NEEDED)                     Shared library: [liblcms2.so.2]
 0x00000001 (NEEDED)                     Shared library: [libpng16.so]
 0x00000001 (NEEDED)                     Shared library: [libtiff.so]
 0x00000001 (NEEDED)                     Shared library: [libm.so]
 0x00000001 (NEEDED)                     Shared library: [libc++_shared.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]
~ $ pkg show poppler
Package: poppler
Version: 21.08.0-3
Maintainer: @termux
Installed-Size: 4567 kB
Depends: fontconfig, freetype, glib, libc++, libcairo, libcurl, libiconv, libjpeg-turbo, libpng, libtiff, littlecms, openjpeg, openjpeg-tools, zlib
Breaks: poppler-dev
Replaces: poppler-dev
Homepage: https://poppler.freedesktop.org/
Download-Size: 944 kB
APT-Manual-Installed: yes
APT-Sources: https://grimler.se/termux-packages-24 stable/main arm Packages
Description: PDF rendering library