Here is the patch.
>From cd9a07159f574cab3c21497fd47528adc7526235 Mon Sep 17 00:00:00 2001 From: Nicolas Boulenguez <nico...@debian.org> Date: Thu, 19 May 2022 12:24:00 +0200 Subject: Remove the gtkgl/glarea component
No package depends on liblablgtk2-gl-ocaml, and it is the last package depending on libgtkgl2, which should be removed from Debian (#967808). diff --git a/debian/META.lablgtk2-gl b/debian/META.lablgtk2-gl deleted file mode 100644 index 0fab3c5..0000000 --- a/debian/META.lablgtk2-gl +++ /dev/null @@ -1,9 +0,0 @@ -version="2.18.5" -directory="+lablgtk2" -requires = "lablgtk2" - -package "gtkgl" ( - requires = "lablgtk2 lablgl" - archive(byte) = "lablgtkgl.cma" - archive(native) = "lablgtkgl.cmxa" -) diff --git a/debian/control b/debian/control index fd8f51b..e7fd344 100644 --- a/debian/control +++ b/debian/control @@ -9,10 +9,8 @@ Build-Depends: debhelper-compat (= 13), dh-ocaml, ocaml, - liblablgl-ocaml-dev, libncurses5-dev, libgtk2.0-dev, - libgtkgl2.0-dev, librsvg2-dev, libgtkspell-dev, ocaml-findlib @@ -35,19 +33,6 @@ Description: runtime libraries for OCaml bindings for GTK+ version 2 This package include only the dynamic libraries needed for running dynamic bytecode executables. -Package: liblablgtk2-gl-ocaml -Architecture: any -Depends: - ${ocaml:Depends}, - ${shlibs:Depends}, - ${misc:Depends} -Provides: ${ocaml:Provides} -Description: runtime libraries for OCaml bindings to GtkGL - lablgtk2 contains bindings for GTK+ 2.x and Objective Caml. - . - This package include only the dynamic libraries needed for running dynamic - bytecode executables using GtkGL functionalities. - Package: liblablgtk2-gnome-ocaml Architecture: any Depends: @@ -63,7 +48,7 @@ Description: runtime libraries for OCaml bindings to GNOME Package: liblablgtk2-ocaml-dev Architecture: any -Suggests: liblablgtk2-gl-ocaml-dev, liblablgtk2-gnome-ocaml-dev +Suggests: liblablgtk2-gnome-ocaml-dev Depends: libgtk2.0-dev, libgtkspell-dev, @@ -77,22 +62,6 @@ Description: OCaml bindings to Gtk+ version 2 . This package contains the development files of lablgtk. -Package: liblablgtk2-gl-ocaml-dev -Architecture: any -Suggests: liblablgtk2-gnome-ocaml-dev -Depends: - libgtkgl2.0-dev, - ${ocaml:Depends}, - ${shlibs:Depends}, - ${misc:Depends} -Provides: ${ocaml:Provides} -Recommends: liblablgtk2-ocaml-doc -Description: OCaml bindings to GtkGL - lablgtk2 contains bindings for GTK+ 2.x and OCaml. - . - This package contains the development files of lablgtk for libraries using - GtkGL. - Package: liblablgtk2-gnome-ocaml-dev Architecture: any Depends: @@ -114,7 +83,6 @@ Architecture: all Depends: ${misc:Depends} Enhances: liblablgtk2-ocaml-dev, - liblablgtk2-gl-ocaml-dev, liblablgtk2-gnome-ocaml-dev, Description: OCaml bindings to Gtk+ version 2 (documentation) LablGTK2 contains bindings for GTK+ 2.x and OCaml. diff --git a/debian/liblablgtk2-gl-ocaml-dev.docs b/debian/liblablgtk2-gl-ocaml-dev.docs deleted file mode 100644 index e845566..0000000 --- a/debian/liblablgtk2-gl-ocaml-dev.docs +++ /dev/null @@ -1 +0,0 @@ -README diff --git a/debian/liblablgtk2-gl-ocaml-dev.install.in b/debian/liblablgtk2-gl-ocaml-dev.install.in deleted file mode 100644 index 030aa50..0000000 --- a/debian/liblablgtk2-gl-ocaml-dev.install.in +++ /dev/null @@ -1,4 +0,0 @@ -@OCamlStdlibDir@/lablgtk2/glGtk.* -@OCamlStdlibDir@/lablgtk2/liblablgtkgl2* -OPT: @OCamlStdlibDir@/lablgtk2/lablgtkgl.a -OPT: @OCamlStdlibDir@/lablgtk2/lablgtkgl.cmxa diff --git a/debian/liblablgtk2-gl-ocaml.docs b/debian/liblablgtk2-gl-ocaml.docs deleted file mode 100644 index e845566..0000000 --- a/debian/liblablgtk2-gl-ocaml.docs +++ /dev/null @@ -1 +0,0 @@ -README diff --git a/debian/liblablgtk2-gl-ocaml.install.in b/debian/liblablgtk2-gl-ocaml.install.in deleted file mode 100644 index 0ae766f..0000000 --- a/debian/liblablgtk2-gl-ocaml.install.in +++ /dev/null @@ -1,4 +0,0 @@ -debian/META.lablgtk2-gl @OCamlStdlibDir@/METAS -@OCamlStdlibDir@/lablgtk2/dlllablgtkgl2.so @OCamlDllDir@ -@OCamlStdlibDir@/lablgtk2/lablgtkgl.cma -DYN: @OCamlStdlibDir@/lablgtk2/lablgtkgl.cmxs diff --git a/debian/liblablgtk2-ocaml-dev.install.in b/debian/liblablgtk2-ocaml-dev.install.in index e000ad6..8de1759 100644 --- a/debian/liblablgtk2-ocaml-dev.install.in +++ b/debian/liblablgtk2-ocaml-dev.install.in @@ -43,7 +43,6 @@ usr/bin/lablgtk2 @OCamlStdlibDir@/lablgtk2/gtkEdit.* @OCamlStdlibDir@/lablgtk2/gtkEnums.* @OCamlStdlibDir@/lablgtk2/gtkFile.* -@OCamlStdlibDir@/lablgtk2/gtkgl_tags.h @OCamlStdlibDir@/lablgtk2/gtkInit.* @OCamlStdlibDir@/lablgtk2/gtkList.* @OCamlStdlibDir@/lablgtk2/gtkMain.* diff --git a/debian/liblablgtk2-ocaml-doc.ocamldoc.in b/debian/liblablgtk2-ocaml-doc.ocamldoc.in index 2b9e078..587ddae 100644 --- a/debian/liblablgtk2-ocaml-doc.ocamldoc.in +++ b/debian/liblablgtk2-ocaml-doc.ocamldoc.in @@ -1,4 +1,3 @@ -I src --I @OCamlStdlibDir@/lablgl -I @OCamlStdlibDir@/threads --include debian/tmp@OCamlStdlibDir@/lablgtk2 diff --git a/debian/rules b/debian/rules index d2f1ec0..9318117 100755 --- a/debian/rules +++ b/debian/rules @@ -15,7 +15,7 @@ export OCAMLFIND_LDCONF=ignore .PHONY: override_dh_auto_configure override_dh_auto_configure: cp src/.depend debian/src.depend.backup - dh_auto_configure -- --with-gl --without-glade --with-rsvg \ + dh_auto_configure -- --without-gl --without-glade --with-rsvg \ --without-gnomecanvas --with-gtkspell --without-gnomeui \ --without-gtksourceview2 @@ -55,6 +55,8 @@ override_dh_auto_install: rm debian/tmp/usr/lib/ocaml/lablgtk2/gnoCanvas.mli # remove files related to libglade2 (see #895517) rm debian/tmp/usr/lib/ocaml/lablgtk2/glade.mli +# remove files related to gtkgl (see #967808) + rm debian/tmp/usr/lib/ocaml/lablgtk2/glGtk.mli # FIXME: we should use upstream META file rm debian/tmp/usr/lib/ocaml/lablgtk2/META