openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #11707
Bug#821858: openjdk-7-jre-headless: postinst turns /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi into a dangling symlink
Package: openjdk-7-jre-headless
Version: 7u95-2.6.4-3
Severity: serious
User: debian-qa@xxxxxxxxxxxxxxxx
Usertags: piuparts
Hi,
during a test with piuparts I noticed your package deletes the zoneinfo
database it ships.
The postinst seems to contain code leftover from the time when tzdata-java
existed as a separate package. But now the opposite direction would be needed:
cleaning up the /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi symlink before
replacing it with a proper directory tree. (dpkg-maintscript-helper symlink_to_dir
might help here).
>From the attached log (usually somewhere in the middle...):
0m52.3s INFO: dirname part contains a symlink:
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa (openjdk-7-jre-headless:amd64) != /usr/share/javazi/Africa (?)
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi -> ../../../../../share/javazi
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Abidjan (openjdk-7-jre-headless:amd64) != /usr/share/javazi/Africa/Abidjan (?)
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi -> ../../../../../share/javazi
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Accra (openjdk-7-jre-headless:amd64) != /usr/share/javazi/Africa/Accra (?)
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi -> ../../../../../share/javazi
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Algiers (openjdk-7-jre-headless:amd64) != /usr/share/javazi/Africa/Algiers (?)
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi -> ../../../../../share/javazi
[...]
0m52.4s DEBUG: Starting command: ['debsums', '--root', '/tmp/piupartss/tmp3EYIf5', '-ac']
0m53.2s DUMP:
debsums: missing file /tmp/piupartss/tmp3EYIf5/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Abidjan (from openjdk-7-jre-headless:amd64 package)
debsums: missing file /tmp/piupartss/tmp3EYIf5/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Accra (from openjdk-7-jre-headless:amd64 package)
debsums: missing file /tmp/piupartss/tmp3EYIf5/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Algiers (from openjdk-7-jre-headless:amd64 package)
debsums: missing file /tmp/piupartss/tmp3EYIf5/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Bissau (from openjdk-7-jre-headless:amd64 package)
debsums: missing file /tmp/piupartss/tmp3EYIf5/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Cairo (from openjdk-7-jre-headless:amd64 package)
debsums: missing file /tmp/piupartss/tmp3EYIf5/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Casablanca (from openjdk-7-jre-headless:amd64 package)
debsums: missing file /tmp/piupartss/tmp3EYIf5/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/Africa/Ceuta (from openjdk-7-jre-headless:amd64 package)
[...]
cheers,
Andreas
Attachment:
openjdk-7-jre-headless_7u95-2.6.4-3.log.gz
Description: application/gzip
Follow ups