← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2098698] Re: libgtk-4-1: Missing dependency libgles2 on Noble

 

Updated the bug description and title to turn this into a SRU bug.

** Description changed:

- While doing the WSL Import and run test for 24.04.2, gtk4-demo failed to
- launch due to missing the library for libGLESv2.
+ [ Impact ]
+ 
+ * libgtk-4-1 has an implicit dependency on libgles2. GTK4 apps running
+ on containers like WSL, where the installation doesn't come with all
+ required dependencies upfront, crash immediately due the missing
+ dependency.
+ 
+ * gtk4 version 4.14.5 makes that dependency explicit, so libgles2 will
+ be installed automatically when libgtk-4-1 is installed.
+ 
+ 
+ [ Test Plan ]
+ 
+  Test Case 1 - gtk4-demo on containers
+ --------------------------------------
+ * Setup an Ubuntu 24.04 container (Ubuntu on WSL instance, LXD or docker, as you wish).
+ 
+ * Make sure it doesn't contain the libgles2 package already installed
+ (`apt list --installed | grep libgles2` output should be empty)
+ 
+ * Update apt cache and install gtk-4-examples and try running gtk4-demo.
+ 
+ With previous versions of GTK4 it fails to launch due libgles2.so not
+ found. With the proposed patch libgles2 will be automatically installed
+ and gtk4-demo will just run without crashes.
+ 
+ 
+ [ Where problems could occur ]
+ 
+  * Many of the default Ubuntu desktop apps use GTK4. A serious enough
+ regression could severely break the Ubuntu Desktop.
+ 
+ 
+ [ Other Info ]
+ 
+ gtk4 is included in the GNOME micro release exception since it is part
+ of GNOME Core
+ 
+ https://documentation.ubuntu.com/sru/en/latest/reference/package-
+ specific/
+ 
+ The issue was first discovered while doing the WSL Import and run test
+ for 24.04.2 documented in the ISO tracker. gtk4-demo failed to launch
+ due to missing the library for libGLESv2 (so would any other GTK4 app
+ running on WSL or LXD containers, for example).
  
  Installing libgles2 fixed the issue.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: gtk-4-examples 4.14.2+ds-1ubuntu1
  Uname: Linux 5.15.167.4-microsoft-standard-WSL2 x86_64
  ApportVersion: 2.28.1-0ubuntu3.3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Mon Feb 17 12:19:55 2025
  ProcEnviron:
-  LANG=C.UTF-8
-  PATH=(custom, no user)
-  SHELL=/bin/bash
-  TERM=xterm-256color
-  XDG_RUNTIME_DIR=<set>
+  LANG=C.UTF-8
+  PATH=(custom, no user)
+  SHELL=/bin/bash
+  TERM=xterm-256color
+  XDG_RUNTIME_DIR=<set>
  SourcePackage: gtk4
  UpgradeStatus: No upgrade log present (probably fresh install)

** Summary changed:

- libgtk-4-1: Missing dependency libgles2 on Noble
+ [SRU] libgtk-4-1: Missing dependency libgles2 on Noble

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to gtk4 in Ubuntu.
https://bugs.launchpad.net/bugs/2098698

Title:
  [SRU] libgtk-4-1: Missing dependency libgles2 on Noble

Status in gtk4 package in Ubuntu:
  Fix Released
Status in gtk4 source package in Noble:
  Confirmed
Status in gtk4 source package in Plucky:
  Fix Released

Bug description:
  [ Impact ]

  * libgtk-4-1 has an implicit dependency on libgles2. GTK4 apps running
  on containers like WSL, where the installation doesn't come with all
  required dependencies upfront, crash immediately due the missing
  dependency.

  * gtk4 version 4.14.5 makes that dependency explicit, so libgles2 will
  be installed automatically when libgtk-4-1 is installed.

  
  [ Test Plan ]

   Test Case 1 - gtk4-demo on containers
  --------------------------------------
  * Setup an Ubuntu 24.04 container (Ubuntu on WSL instance, LXD or docker, as you wish).

  * Make sure it doesn't contain the libgles2 package already installed
  (`apt list --installed | grep libgles2` output should be empty)

  * Update apt cache and install gtk-4-examples and try running
  gtk4-demo.

  With previous versions of GTK4 it fails to launch due libgles2.so not
  found. With the proposed patch libgles2 will be automatically
  installed and gtk4-demo will just run without crashes.

  
  [ Where problems could occur ]

   * Many of the default Ubuntu desktop apps use GTK4. A serious enough
  regression could severely break the Ubuntu Desktop.

  
  [ Other Info ]

  gtk4 is included in the GNOME micro release exception since it is part
  of GNOME Core

  https://documentation.ubuntu.com/sru/en/latest/reference/package-
  specific/

  The issue was first discovered while doing the WSL Import and run test
  for 24.04.2 documented in the ISO tracker. gtk4-demo failed to launch
  due to missing the library for libGLESv2 (so would any other GTK4 app
  running on WSL or LXD containers, for example).

  Installing libgles2 fixed the issue.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: gtk-4-examples 4.14.2+ds-1ubuntu1
  Uname: Linux 5.15.167.4-microsoft-standard-WSL2 x86_64
  ApportVersion: 2.28.1-0ubuntu3.3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Mon Feb 17 12:19:55 2025
  ProcEnviron:
   LANG=C.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: gtk4
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk4/+bug/2098698/+subscriptions