On Tue, Sep 13, 2022 at 12:50:22PM -0500, David Wright wrote:
> On Tue 13 Sep 2022 at 13:09:52 (-0400), Greg Wooledge wrote:
> > Now I'm no longer just curious -- I'm *concerned*.  Why does it want to
> > remove my libpng12-0 package?  What's the best way to keep/reinstall xv
> > on my system after this upgrade?
> 
> I'm curious too: libpng12-0 is from jessie, and is presumably there
> to support xv 3.10a-20 from slink. (BTW why didn't you upgrade xv to
> potato or woody, both -25?) Is xv lurking in some backport, or do you
> compile it yourself? I can't find it. (I think it was always non-free,
> perhaps because of compression patents of that time.)

I compiled (backported) it myself, many years ago.  As far as the details
go, I don't remember them all.

unicorn:~$ ls -ld xv*
drwxr-xr-x 8 greg greg    4096 Jan 14  2018 xv-3.10a/
-rw-r--r-- 1 greg greg  408308 May  3  2015 xv_3.10a-20_amd64.deb
-rw-r--r-- 1 greg greg  497677 Jan 14  2018 xv_3.10a-20.diff.gz
-rw-r--r-- 1 greg greg     733 Jan 14  2018 xv_3.10a-20.dsc
-rw-r--r-- 1 greg greg     901 Feb 19  2004 xv_3.10a-20_i386.changes
-rw-r--r-- 1 greg greg  396962 Mar  4  2010 xv_3.10a-26.gw1_i386.deb
-rw-r--r-- 1 greg greg 1666468 Feb 19  2004 xv_3.10a.orig.tar.gz
-rw-r--r-- 1 greg greg 1146518 May  3  2015 xv-doc_3.10a-20_all.deb

Make of that what you will.

As far as prep for bookworm goes, I tried two things.

First, I went to snapshot and grabbed the highest-numbered libpng12-0
package, and attempted to install it:

unicorn:~$ sudo dpkg -i libpng12-0_1.5.11-1_amd64.deb 
[sudo] password for greg: 
(Reading database ... 159637 files and directories currently installed.)
Preparing to unpack libpng12-0_1.5.11-1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.5.11-1) over (1.2.50-2+deb8u3) ...
dpkg: dependency problems prevent configuration of libpng12-0:amd64:
 libpng12-0:amd64 depends on libpng15-15 (= 1.5.11-1); however:
  Package libpng15-15 is not installed.

dpkg: error processing package libpng12-0:amd64 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libpng12-0:amd64

So I grabbed that one too, and:

unicorn:~$ sudo dpkg -i libpng12-0_1.5.11-1_amd64.deb 
libpng15-15_1.5.11-1_amd64.deb 
(Reading database ... 159625 files and directories currently installed.)
Preparing to unpack libpng12-0_1.5.11-1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.5.11-1) over (1.5.11-1) ...
Selecting previously unselected package libpng15-15:amd64.
Preparing to unpack libpng15-15_1.5.11-1_amd64.deb ...
Unpacking libpng15-15:amd64 (1.5.11-1) ...
Setting up libpng15-15:amd64 (1.5.11-1) ...
Setting up libpng12-0:amd64 (1.5.11-1) ...
unicorn:~$ xv
xv: /usr/lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found 
(required by xv)

So, now the second thing.  I decided that the libpng12-0 from libpng
1.5.x source is probably not the best choice here, and decided to go
with the highest-numbered libpng12-0 from libpng 1.2.x source:

unicorn:~$ sudo apt-get install ./libpng12-0_1.2.54-6_amd64.deb libpng15-15-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libpng12-0' instead of './libpng12-0_1.2.54-6_amd64.deb'
The following packages will be REMOVED:
  libpng15-15
The following packages will be DOWNGRADED:
  libpng12-0
0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded.
Need to get 0 B/172 kB of archives.
After this operation, 105 kB disk space will be freed.
Do you want to continue? [Y/n] 
Get:1 /home/greg/libpng12-0_1.2.54-6_amd64.deb libpng12-0 amd64 1.2.54-6 [172 
kB]
dpkg: warning: downgrading libpng12-0:amd64 from 1.5.11-1 to 1.2.54-6
(Reading database ... 159637 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-6_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-6) over (1.5.11-1) ...
(Reading database ... 159647 files and directories currently installed.)
Removing libpng15-15:amd64 (1.5.11-1) ...
Setting up libpng12-0:amd64 (1.2.54-6) ...
Processing triggers for libc-bin (2.31-13+deb11u4) ...
unicorn:~$ xv
unicorn:~$ 

It appears to be working now (didn't test beyond the opening screen).
And usrmerge seems happy with it as well:

unicorn:~$ apt-get -s install usrmerge
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl
The following NEW packages will be installed:
  libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Inst libnumber-compare-perl (0.03-1.1 Debian:11.5/stable [all])
Inst libtext-glob-perl (0.11-1 Debian:11.5/stable [all])
Inst libfile-find-rule-perl (0.34-1 Debian:11.5/stable [all])
Inst usrmerge (25 Debian:11.5/stable [all])
Conf libnumber-compare-perl (0.03-1.1 Debian:11.5/stable [all])
Conf libtext-glob-perl (0.11-1 Debian:11.5/stable [all])
Conf libfile-find-rule-perl (0.34-1 Debian:11.5/stable [all])
Conf usrmerge (25 Debian:11.5/stable [all])

Reply via email to