Your message dated Thu, 20 Aug 2020 14:56:39 +0200
with message-id <[email protected]>
and subject line Re: dpkg does not replace directory by symlink on upgrade
has caused the Debian Bug report #968701,
regarding dpkg does not replace directory by symlink on upgrade
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
968701: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968701
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.19.7

Trying to replace a directory with a symlink on the upgrade
of a private package I stumbled over this:


root@dpcl082:/usr/lib/jvm# dpkg --contents 
/var/cache/apt/archives/adoptopenjdk11_11.0.8+10-1_amd64.deb
drwxr-xr-x root/root         0 2020-08-20 12:29 ./
drwxr-xr-x root/root         0 2020-08-20 12:29 ./usr/
drwxr-xr-x root/root         0 2020-08-20 12:29 ./usr/lib/
drwxr-xr-x root/root         0 2020-08-20 12:29 ./usr/lib/jvm/
drwxr-xr-x root/root         0 2020-08-20 12:29 ./usr/share/
drwxr-xr-x root/root         0 2020-08-20 12:29 ./usr/share/doc/
drwxr-xr-x root/root         0 2020-08-20 12:29 ./usr/share/doc/adoptopenjdk11/
-rw-r--r-- root/root       346 2020-08-20 12:29 
./usr/share/doc/adoptopenjdk11/changelog.Debian.gz
lrwxrwxrwx root/root         0 2020-08-20 12:29 ./usr/lib/jvm/java-11-AdoptOpenJDK 
-> adoptopenjdk-11-hotspot-amd64

root@dpcl082:/usr/lib/jvm# ls -al /usr/lib/jvm/java-11-AdoptOpenJDK 
/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64
/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64:
total 48
drwxrwxr-x  9 root root  4096 Jul 17 11:52 .
drwxr-xr-x  6 root root  4096 Jul 31 10:27 ..
drwxr-xr-x  2 root root  4096 Jul 17 11:52 bin
drwxr-xr-x  4 root root  4096 Jul 17 11:52 conf
drwxr-xr-x  3 root root  4096 Jul 17 11:52 include
drwxr-xr-x  2 root root 12288 Jul 17 11:52 jmods
drwxr-xr-x 72 root root  4096 May 20 15:34 legal
drwxr-xr-x  6 root root  4096 Jul 17 11:52 lib
drwxr-xr-x  5 root root  4096 May 20 15:34 man
-rw-r--r--  1 root root  1220 Jul 16 09:21 release
lrwxrwxrwx  1 root root    11 Jul 16 09:21 src.zip -> lib/src.zip

/usr/lib/jvm/java-11-AdoptOpenJDK:
total 8
drwxr-xr-x 2 root root 4096 Aug 20 12:44 .
drwxr-xr-x 6 root root 4096 Jul 31 10:27 ..


Please note the empty directory instead of the symlink after the installation
of adoptopenjdk11_11.0.8+10-1_amd64.deb.

The predecessor of my adoptopenjdk11 package provided the whole JDK
in /usr/lib/jvm/java-11-AdoptOpenJDK. The JDK is now supposed to be
provided by the Debian package from

https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/pool/main/a/adoptopenjdk-11-hotspot/

For backward compatibility I tried to introduce a symlink in my new
adoptopenjdk11 package, as shown above. Reinstalling the new package
doesn't help, either:

root@dpcl082:/usr/lib/jvm# dpkg -i 
/var/cache/apt/archives/adoptopenjdk11_11.0.8+10-1_amd64.deb
(Reading database ... 366514 files and directories currently installed.)
Preparing to unpack .../adoptopenjdk11_11.0.8+10-1_amd64.deb ...
Unpacking adoptopenjdk11 (11.0.8+10-1) over (11.0.8+10-1) ...
Setting up adoptopenjdk11 (11.0.8+10-1) ...

root@dpcl082:/usr/lib/jvm# ls -al /usr/lib/jvm/java-11-AdoptOpenJDK
total 8
drwxr-xr-x 2 root root 4096 Aug 20 12:44 .
drwxr-xr-x 6 root root 4096 Jul 31 10:27 ..



Regards
Harri

--- End Message ---
--- Begin Message ---
Jan pointed me to dpkg-maintscript-helper dir_to_symlink ...
Problem solved.

--- End Message ---

Reply via email to