On Sun, Mar 12, 2023 at 02:09:09PM +0100, Thomas Schmitt wrote:
> So just for curiosity i tried what happens if i build xv on Debian 11.
> 
>   wget ftp://ftp.trilon.com/pub/xv/xv-3.10a.tar.gz
>   tar xzf xv-3.10a.tar.gz
>   cd xv-3.10a
>   view INSTALL

Debian used to include xv, with patches and PNG support.  So that's
what I use as my starting point.

unicorn:~$ dpkg -l xv | tail -n1
ii  xv             3.10a-20     amd64        An image viewer and manipulator 
for the X Window System.

unicorn:~$ dpkg -s xv | grep Depends
Depends: libc6 (>= 2.14), libjpeg62-turbo (>= 1.3.1), libpng12-0 (>= 1.2.13-4), 
libtiff5 (>= 4.0.3), libx11-6, zlib1g (>= 1:1.1.4)

Note that it needs the *old* PNG library (12), not the new one with the
incompatible API (16).

unicorn:~$ dpkg -l libpng\* | grep ^.i
ii  libpng-dev:amd64  1.6.37-3     amd64        PNG library - development 
(version 1.6)
ii  libpng-tools      1.6.37-3     amd64        PNG library - tools (version 
1.6)
ii  libpng12-0:amd64  1.2.54-6     amd64        PNG library - runtime
ii  libpng16-16:amd64 1.6.37-3     amd64        PNG library - runtime (version 
1.6)
ii  libpng16-16:i386  1.6.37-3     i386         PNG library - runtime (version 
1.6)

I'm not sure how difficult it would be to build this package on
current stable Debian.  I've still got my xv_3.10a-20_amd64.deb file
(last built in 2015), so I just use that, and make sure the PNG dependency
is met.

Reply via email to