Your message dated Sat, 04 Oct 2025 22:07:49 +0000
with message-id <[email protected]>
and subject line Bug#1116500: fixed in rust-gtk4 0.10.1-2
has caused the Debian Bug report #1116500,
regarding rust-gtk4: please remove Build-Depends on non-multiarch-friendly 
libgirepository1.0-dev
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.)


-- 
1116500: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1116500
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: rust-gtk4
Severity: normal
Tags: patch forky sid
User: [email protected]
Usertags: libgirepository1.0-dev

As announced in 
https://lists.debian.org/debian-devel/2025/08/msg00150.html I would like 
to try to remove libgirepository1.0-dev during the forky cycle (and I 
plan to do a mass-bug filing for this at some point).

As previously discussed with Matthias Geiger on IRC, I've added a new 
tool to gobject-introspection (>= 1.86.0-3~), deb-gir-tool(1), which 
should make it easier to remove this dependency from rust-gtk4 and 
similar packages.

I successfully built rust-gtk4 with the attached patch. I have not 
tested the result, but I used diffoscope to compare the resulting binary 
packages to a reference build done against 
libgirepository1.0-dev_1.86.0-2 without the patch, and they were 
identical - so hopefully everything is as it should be.

This requires a very new gobject-introspection, so you might prefer to 
let it migrate to testing before applying the patch, but I wanted to 
send the patch before I forget about it.

The output of the tool in the build log looks something like this:

>make[1]: Entering directory '/build/reproducible-path/rust-gtk4-0.10.1'
>deb-gir-tool find \
>       --target-directory=/build/reproducible-path/rust-gtk4-0.10.1 \
>       --verbose \
>       --with-dependencies \
>       Gtk-4.0
>deb-gi-tool: Copied “/usr/share/gir-1.0/Gtk-4.0.gir” to 
>“/build/reproducible-path/rust-gtk4-0.10.1/Gtk-4.0.gir”
>deb-gi-tool: Gtk-4.0 depends on Gdk-4.0
>deb-gi-tool: Gtk-4.0 depends on Gsk-4.0
>deb-gi-tool: Copied “/usr/share/gir-1.0/Gdk-4.0.gir” to 
>“/build/reproducible-path/rust-gtk4-0.10.1/Gdk-4.0.gir”
...
>deb-gi-tool: GModule-2.0 depends on GLib-2.0
>deb-gi-tool: Copied “/usr/lib/x86_64-linux-gnu/gir-1.0/GLib-2.0.gir” to 
>“/build/reproducible-path/rust-gtk4-0.10.1/GLib-2.0.gir”
>deb-gi-tool: Copied “/usr/share/gir-1.0/GObject-2.0.gir” to 
>“/build/reproducible-path/rust-gtk4-0.10.1/GObject-2.0.gir”
>deb-gi-tool: GObject-2.0 depends on GLib-2.0 which was already processed
...
>xmlstarlet ed -L \
(build continues)

The same technique can probably be used in many (all?) of the packages 
that follow the same patterns as rust-gtk4. I don't intend to propose 
patches for all of them individually, I was treating rust-gtk4 as a 
proof of concept more than anything else.

    smcv
>From 541a4d4156f3d00d1639eb17ce91842e4331cd14 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Sat, 27 Sep 2025 18:45:09 +0100
Subject: [PATCH] d/control, d/rules: Use `deb-gir-tool find` to copy GIR XML
 for build

This avoids needing to hard-code the recursive dependencies of Gtk-4.0
and their absolute paths, and also avoids the need to build-depend
on the deprecated libgirepository1.0-dev package.
---
 debian/control |  3 ++-
 debian/rules   | 19 +++++--------------
 2 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/debian/control b/debian/control
index 657028e..762412c 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Build-Depends: debhelper-compat (= 13),
  dh-sequence-cargo,
  libgtk-4-dev (>= 4.20),
  gir-rust-code-generator (>= 0.21),
- libgirepository1.0-dev,
+ gir1.2-gtk-4.0-dev,
+ gobject-introspection (>= 1.86.0-3~),
  libgraphene-1.0-dev,
  xmlstarlet
 Build-Depends-Arch: cargo:native <!nocheck>,
diff --git a/debian/rules b/debian/rules
index 4b43666..ae8b762 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,20 +6,11 @@
 # regenerating the source code
 # applying debian patches and upstream xmlstarlet fixes taken from upstream here: https://github.com/gtk-rs/gir-files/blob/master/fix.sh
 execute_before_dh_auto_build:
-	cp /usr/share/gir-1.0/GLib-2.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/Gdk-4.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/GdkPixbuf-2.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/GModule-2.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/Gio-2.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/GObject-2.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/Pango-1.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/HarfBuzz-0.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/freetype2-2.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/cairo-1.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/PangoCairo-1.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/Gtk-4.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/Gsk-4.0.gir $(CURDIR)
-	cp /usr/share/gir-1.0/Graphene-1.0.gir $(CURDIR)
+	deb-gir-tool find \
+		--target-directory=$(CURDIR) \
+		--verbose \
+		--with-dependencies \
+		Gtk-4.0
 	xmlstarlet ed -L \
 	-u '//_:parameter[@name="response_id"]/_:type[@name="gint"]/@c:type' -v "GtkResponseType" \
 	-u '//_:parameter[@name="response_id"]/_:type[@name="gint"]/@name' -v "ResponseType" \
-- 
2.51.0


--- End Message ---
--- Begin Message ---
Source: rust-gtk4
Source-Version: 0.10.1-2
Done: Matthias Geiger <[email protected]>

We believe that the bug you reported is fixed in the latest version of
rust-gtk4, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Geiger <[email protected]> (supplier of updated rust-gtk4 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 04 Oct 2025 23:52:31 +0200
Source: rust-gtk4
Architecture: source
Version: 0.10.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers 
<[email protected]>
Changed-By: Matthias Geiger <[email protected]>
Closes: 1116500
Changes:
 rust-gtk4 (0.10.1-2) unstable; urgency=medium
 .
   * Package gtk4 0.10.1 from crates.io using debcargo 2.7.11
   * Drop dependency on libgirepository-1.0-dev (Closes: #1116500)
Checksums-Sha1:
 1419e25277168e75db5d098c10130597922025ad 2573 rust-gtk4_0.10.1-2.dsc
 d17e907c98f032586f92e009479db64f5a136f09 6436 rust-gtk4_0.10.1-2.debian.tar.xz
 03a0bda98215a48f89afabc324b49bf1067d4a46 15049 
rust-gtk4_0.10.1-2_source.buildinfo
Checksums-Sha256:
 cd708b8ba0f09f452188023d890e9490385ecb24d52c35132cc59f806273aa26 2573 
rust-gtk4_0.10.1-2.dsc
 362203a1ce6fee4ee0424547cc5b3798cd6e37d0bbec88bcf85f5d5a24b04152 6436 
rust-gtk4_0.10.1-2.debian.tar.xz
 e7569c4bfe10dead155029f2c4d9e73a2ada59c3a60a2d65878daed7956c0e07 15049 
rust-gtk4_0.10.1-2_source.buildinfo
Files:
 a5cd2a0870db50cf68e8d048cfbe25c3 2573 rust optional rust-gtk4_0.10.1-2.dsc
 e4140377c19e03c0ac0df5cd29688092 6436 rust optional 
rust-gtk4_0.10.1-2.debian.tar.xz
 e53c0da1c944a59597c9096fbbc6b74f 15049 rust optional 
rust-gtk4_0.10.1-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCaOGXIQAKCRDsvtu2B7my
vp6xAQD0h9PyDtuK7uJOH9Dgmzuohfg9UizsYuXlWIT5Z5BrVAEA+tPkGYD9OlJg
/Piu1KbIontSzQGBLpAELp3ueoxuLwE=
=H7oW
-----END PGP SIGNATURE-----

Attachment: pgpgmQxsd2gZr.pgp
Description: PGP signature


--- End Message ---

Reply via email to