#1121358 openjdk-8: depends on deprecated GTK 2

#1121358#5
Date:
2025-11-25 05:20:44 UTC
From:
To:
This package has Build-Depends on GTK 2 (libgtk2.0-dev) and produces
binary packages with a Depends on GTK 2.

GTK 2 was superseded by GTK 3 in 2011 (see
<https://bugs.debian.org/947713>). It no longer receives any significant
upstream maintenance, and in particular does not get feature development
for new features like UI scaling on high-pixel-density displays (HiDPI)
and native Wayland support.

A porting guide is provided in the GTK 3 documentation:
https://developer.gnome.org/gtk3/stable/migrating.html

Thank you,
Jeremy Bícha

#1121358#12
Date:
2025-11-25 16:25:49 UTC
From:
To:
# no problem for openjdk-8
severity 1121358 important
# not in forky
tags 1121358 - forky
thanks

Jeremy Bícha dixit:

Yes, but this is not a problem for openjdk-8, which is also in the
boat of getting fixes only. It’s also not in testing, deliberately.

As there are no plans to remove Gtk+2, I’m downgrading this.

#1121358#17
Date:
2026-03-23 10:05:21 UTC
From:
To:
I was surprised to learn this morning that openjdk-8 upstream has ported
to GTK3 (some time ago actually):

https://bugs.openjdk.org/browse/JDK-8207322
https://github.com/openjdk/jdk8u-dev/commit/4ea4c29a4ca3d984fb28b054340d618ac5f2009a

On my system (which has libgtk2 installed), testing an openjdk GUI
application shows that gtk3 is loaded at runtime when it is available:

$ export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
$ $JAVA_HOME/bin/java -jar /usr/share/wadc/wadc.jar &
$ grep gtk "/proc/$(pidof java)/maps"
7f3aca389000-7f3aca38c000 r--p 00000000 fd:01 784667                     /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so
7f3aca38c000-7f3aca390000 r-xp 00003000 fd:01 784667                     /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so
7f3aca390000-7f3aca392000 r--p 00007000 fd:01 784667                     /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so
7f3aca392000-7f3aca393000 r--p 00008000 fd:01 784667                     /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so
7f3aca393000-7f3aca394000 rw-p 00009000 fd:01 784667                     /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so
7f3ad1b49000-7f3ad1b79000 r--p 00000000 fd:01 927345                     /usr/share/locale/en_GB/LC_MESSAGES/gtk30-properties.mo
7f3ad2200000-7f3ad228d000 r--p 00000000 fd:01 794682                     /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2417.32
7f3ad228d000-7f3ad261f000 r-xp 0008d000 fd:01 794682                     /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2417.32
7f3ad261f000-7f3ad29e3000 r--p 0041f000 fd:01 794682                     /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2417.32
7f3ad29e3000-7f3ad29f6000 r--p 007e3000 fd:01 794682                     /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2417.32
7f3ad29f6000-7f3ad29f9000 rw-p 007f6000 fd:01 794682                     /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2417.32
7f3ad2bdd000-7f3ad2bdf000 r--p 00000000 fd:01 786625                     /usr/lib/x86_64-linux-gnu/libcanberra-gtk3.so.0.1.9
7f3ad2bdf000-7f3ad2be1000 r-xp 00002000 fd:01 786625                     /usr/lib/x86_64-linux-gnu/libcanberra-gtk3.so.0.1.9
7f3ad2be1000-7f3ad2be2000 r--p 00004000 fd:01 786625                     /usr/lib/x86_64-linux-gnu/libcanberra-gtk3.so.0.1.9
7f3ad2be2000-7f3ad2be3000 r--p 00004000 fd:01 786625                     /usr/lib/x86_64-linux-gnu/libcanberra-gtk3.so.0.1.9
7f3ad2be3000-7f3ad2be4000 rw-p 00005000 fd:01 786625                     /usr/lib/x86_64-linux-gnu/libcanberra-gtk3.so.0.1.9
7f3ad2be4000-7f3ad2be6000 r--p 00000000 fd:01 790908                     /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk3-module.so
7f3ad2be6000-7f3ad2be9000 r-xp 00002000 fd:01 790908                     /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk3-module.so
7f3ad2be9000-7f3ad2bea000 r--p 00005000 fd:01 790908                     /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk3-module.so
7f3ad2bea000-7f3ad2beb000 r--p 00006000 fd:01 790908                     /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk3-module.so
7f3ad2beb000-7f3ad2bec000 rw-p 00007000 fd:01 790908                     /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk3-module.so
7f3ad2bec000-7f3ad2c06000 r--p 00000000 fd:01 927346                     /usr/share/locale/en_GB/LC_MESSAGES/gtk30.mo

For that test, I used trixie's wadc and sid's openjdk-8-jre.

Possibly it would load gtk2 if 3 was not available. I haven't read
through the patch, although the JBS bug references "failing forward" to
GTK3. In any case, I think the Depends: on libgtk2 is no longer correct.

#1121358#22
Date:
2026-08-20 04:33:46 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
openjdk-8, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1121358@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thorsten Glaser <tg@mirbsd.de> (supplier of updated openjdk-8 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 20 Aug 2026 02:12:31 +0000
Source: openjdk-8
Architecture: source
Version: 8u504-ga-1
Distribution: unstable
Urgency: medium
Maintainer: Java Maintenance <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Thorsten Glaser <tg@mirbsd.de>
Closes: 1121358
Changes:
 openjdk-8 (8u504-ga-1) unstable; urgency=medium
 .
   [ Emilio Pozuelo Monfort ]
   * Set a concurrency limit for the tests to avoid the build being
     killed due to OOM.
 .
   [ Vladimir Petko ]
   * d/rules: Check DEB_BUILD_PROFILES in addition to DEB_BUILD_OPTIONS
     to set up with_check variable, but regenerate/check debian/control
     only on amd64 when with_check=yes and DEB_BUILD_OPTIONS ∌ nogen
 .
   [ Thorsten Glaser ]
   * Imply gen-autopkgtests when running d/rules d/control,
     to make sure everything is updated (also makes it phony)
   * Lower concurrency limit: use just one for lowest-spec machines
   * New upstream release
     - CVEs and other notes are not yet published but should
       be on <https://bit.ly/openjdk8u504> later
   * Update GCC to release mapping
   * Use Gtk+3 over Gtk+2 for forky/sid and stonking (Closes: #1121358)
   * debian/buildwatch.sh: use on more slower architectures
   * Derivatives: fix ppa_build detection
   * Remove CONFIGURE_ARGS, which were long unused and no longer work
   * Bump Policy
   * Retire powerpcspe as it troubles lintian and is distant memory
   * Drop lintian overrides it no longer knows
Checksums-Sha1:
 05db3c3fc407f0671dadd65550128d7b82888c99 4529 openjdk-8_8u504-ga-1.dsc
 299d9416a3b69a608bc4d615c3fb4ded68c97a3d 66759157 openjdk-8_8u504-ga.orig.tar.gz
 8d06ff1a7f97effeb236345e54bf4a4a98217b84 168184 openjdk-8_8u504-ga-1.debian.tar.xz
Checksums-Sha256:
 1f888a26746b55ff59cb000db3bd33a852c5730fdbee3ef38e83c34b37bc9c19 4529 openjdk-8_8u504-ga-1.dsc
 38c1231164a81dbe10cbf927945353cb9280e950f5cb581beee0adee921367c0 66759157 openjdk-8_8u504-ga.orig.tar.gz
 53979d38a46970dacd64136dbe21c6dbeb346bd15439ad34c73ced62e6288585 168184 openjdk-8_8u504-ga-1.debian.tar.xz
Files:
 dc6e2812de1a30aceff047a5586049a2 4529 java optional openjdk-8_8u504-ga-1.dsc
 fc68879311628092a28b1919aeb857e3 66759157 java optional openjdk-8_8u504-ga.orig.tar.gz
 f7bf9234314887832b86ea846780e924 168184 java optional openjdk-8_8u504-ga-1.debian.tar.xz
iQIcBAEBCQAGBQJqhn5OAAoJEHa1NLLpkAfgpaUP+wZVLZQoVEb4Akzdcjb2wBNv
yFtZm0Efql6bfYhZfbOSU5uzk1kTV7scSHfN42ywbzOFfSVCNtj13TmxjsFsH3mH
wkBQ/n74Gw+8QrLMFF2jDMOnZJp9Dz+2plm0R65kNL1YFXkagwpl9XssOQ1XJfqd
gFhaJoaK5EJ1QYWeqBmN7dNdgUYqlIH7HJDbAN2S96qmlLGBbFgKhUK7xPz/idta
gMqQdJv/OOH7SGsjpqbLS1RX7bBKl23aiCbbfJz/gFS8v+Kk44c+uJtpITQiJCxo
uVvBtaKSQSyB/Wqo4TSzd+eqa3tVoN/eYWimw8APgF0HduFiKdDiEUYabdglrlVI
riaSy83cAlOQu7tT0zCe61kq0kn7sqFW1EDNkso72YRpdLv4UD57uHDjc8yIemXN
8cvEWa929Lkup/7h/u5Al22Wpmib17+spxUvT1INwt3MM13t7mng9AjaaiJcU3gv
t/r6oyu7YlolVkLXokcCaLRueNxisswk94zZqJUs1Fk1U4C2jfMHMz1saT0R6T6U
/xEsT5vBwy/llaf3Pqt132z2wLmmJ5F4RuLVtZE9cVDV2di+DP18iw24Dv3A50Kn
/XyuzRPDMvI/k6hu7Jt1z3o4GnYhdIxdme9kv1KMi69rOKWuvCk3X/fn6eGrFvVv
eM36gfwareWN9z089Yey
=qw5+
-----END PGP SIGNATURE-----