Your message dated Tue, 03 Nov 2026 18:05:21 +0000
with message-id <[email protected]>
and subject line Bug#1152880: fixed in librsvg 2.63.4+dfsg-3
has caused the Debian Bug report #1152880,
regarding librsvg FTCBFS: multiple reasons
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.)


-- 
1152880: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1152880
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: librsvg
Version: 2.63.3+dfsg-1
Tags: patch
User: [email protected]
Usertags: cross-satisfiability ftcbfs
Control: affects 1126007 + src:librsvg

librsvg fails to cross build from source for a fair number of reasons.

The first issue to run into is the locales dependency. The package is
Arch: all and not Multi-Arch: foreign. Rather than figuring out how to
make it work, I observe that it is only used inside dh_auto_test, so
annotating the dependency <!nocheck> is feasible. At that point, it
becomes irrelevant to cross building.

With that change in place, librsvg's dependencies become theoretically
satisfiable. Unfortunately, apt sees a difference to practice. The rustc
and cargo dependencies are interpreted has host architecture
dependencies, so they would get us tools that cannot be run. Since they
are multi-target tools, we need their native version. While the rustc
dependency normally includes libstd-rust-dev, it gets us the wrong
libstd-rust-dev once rustc is annotated :native, so libstd-rust-dev must
be added to Build-Depends explicitly.

At this point, Build-Depends can be installed. Unfortunately, meson
refuses to configure. It objects to enabling the introspection and vala
features as we cannot run host binaries. Indeed, there is no known way
to run the g-ir-scanner without actually running host binaries, but on
Debian the tool hides this fact and transparently uses qemu when needed,
so meson doesn't actually get to run host binaries. For vala, the story
is different. It actually doesn't require running host binaries. I'm not
sure whether removing the "meson.can_run_host_binaries()" calls is
acceptable upstream, but it certainly is not generally correct.

With that change, meson manages to configure librsvg. Unfortunately, it
does not pass a host triplet to cargo, so the Rust components are built
for the build architecture. librsvg's meson.build expect that you pass
the relevant triplet via -Dtriplet= and to be precise, a Rust triplet
rather than a GNU triplet is expected here.
/usr/share/rustc/architecture.mk can compute the relevant value.

Then, the build proceeds quite far until meson launches the wrong
vapigen. This is not a bug in librsvg but in meson itself and it is
reported as #1126007.

Please consider applying the attached patch.

Helmut
diff -Nru librsvg-2.63.3+dfsg/debian/changelog 
librsvg-2.63.3+dfsg/debian/changelog
--- librsvg-2.63.3+dfsg/debian/changelog        2026-10-19 17:37:26.000000000 
+0200
+++ librsvg-2.63.3+dfsg/debian/changelog        2026-11-01 13:35:36.000000000 
+0100
@@ -1,3 +1,14 @@
+librsvg (2.63.3+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building: (Closes: #-1)
+    + Turn locales dependency optional via <!nocheck>.
+    + Use a native Rust toolchain.
+    + Pass the triplet option to meson.
+    + cross.patch: Reduce introspection and vala requirements.
+
+ -- Helmut Grohne <[email protected]>  Sun, 01 Nov 2026 13:35:36 +0100
+
 librsvg (2.63.3+dfsg-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru librsvg-2.63.3+dfsg/debian/control librsvg-2.63.3+dfsg/debian/control
--- librsvg-2.63.3+dfsg/debian/control  2026-10-19 17:37:26.000000000 +0200
+++ librsvg-2.63.3+dfsg/debian/control  2026-11-01 13:35:36.000000000 +0100
@@ -10,8 +10,8 @@
 Build-Depends:
  debhelper-compat (= 14),
  dh-sequence-gir,
- cargo,
- cargo-c (>= 0.10.10),
+ cargo:native,
+ cargo-c:native (>= 0.10.10),
  gir1.2-cairo-1.0-dev <!nogir>,
  gir1.2-gdkpixbuf-2.0-dev <!nogir>,
  gir1.2-gio-2.0-dev <!nogir>,
@@ -24,11 +24,12 @@
  libglib2.0-dev,
  libharfbuzz-dev,
  libpango1.0-dev (>= 1.58.2),
+ libstd-rust-dev,
  libxml2-dev,
- locales,
+ locales <!nocheck>,
  meson (>= 1.3.0),
  python3-docutils,
- rustc (>= 1.85.1),
+ rustc:native (>= 1.85.1),
  valac,
 Build-Depends-Indep:
  gi-docgen <!nodoc>,
diff -Nru librsvg-2.63.3+dfsg/debian/patches/cross.patch 
librsvg-2.63.3+dfsg/debian/patches/cross.patch
--- librsvg-2.63.3+dfsg/debian/patches/cross.patch      1970-01-01 
01:00:00.000000000 +0100
+++ librsvg-2.63.3+dfsg/debian/patches/cross.patch      2026-11-01 
13:35:36.000000000 +0100
@@ -0,0 +1,14 @@
+--- librsvg-2.63.3+dfsg.orig/meson.build
++++ librsvg-2.63.3+dfsg/meson.build
+@@ -158,9 +158,9 @@
+ if host_system == 'windows'
+   build_gir = 
get_option('introspection').require(get_option('default_library') != 'static' 
and meson.can_run_host_binaries() and gi_dep.found())
+ else
+-  build_gir = 
get_option('introspection').require(meson.can_run_host_binaries() and 
gi_dep.found())
++  build_gir = get_option('introspection').require(gi_dep.found())
+ endif
+-build_vala = get_option('vala').require(meson.can_run_host_binaries() and 
vapigen_dep.found())
++build_vala = get_option('vala').require(vapigen_dep.found())
+ 
+ build_rsvg_convert = get_option('rsvg-convert')
+ 
diff -Nru librsvg-2.63.3+dfsg/debian/patches/series 
librsvg-2.63.3+dfsg/debian/patches/series
--- librsvg-2.63.3+dfsg/debian/patches/series   2026-10-19 17:37:26.000000000 
+0200
+++ librsvg-2.63.3+dfsg/debian/patches/series   2026-11-01 13:35:36.000000000 
+0100
@@ -4,3 +4,4 @@
 workarounds/skip-broken-reftests.diff
 workarounds/Skip-invalid_viewbox-test-on-32-bit-x86.patch
 workarounds/tests-Skip-known-failing-tests-on-i386.patch
+cross.patch
diff -Nru librsvg-2.63.3+dfsg/debian/rules librsvg-2.63.3+dfsg/debian/rules
--- librsvg-2.63.3+dfsg/debian/rules    2026-10-19 17:37:26.000000000 +0200
+++ librsvg-2.63.3+dfsg/debian/rules    2026-11-01 13:35:36.000000000 +0100
@@ -7,6 +7,8 @@
 export CARGO_VENDOR_DIR = $(CURDIR)/debian/missing-sources
 NULL =
 
+include /usr/share/rustc/architecture.mk
+
 # Increase reftest tolerance a bit to account for different harfbuzz,
 # pango, etc.
 export RSVG_TEST_TOLERANCE=20
@@ -27,6 +29,7 @@
        dh_auto_configure -- \
                -Davif=$(if $(shell dpkg-vendor --derives-from Ubuntu && echo 
y),disabled,enabled) \
                -Dpixbuf-loader=enabled \
+               -Dtriplet=$(DEB_HOST_RUST_TYPE) \
                $(NULL)
 
 execute_after_dh_auto_build:

--- End Message ---
--- Begin Message ---
Source: librsvg
Source-Version: 2.63.4+dfsg-3
Done: Jeremy Bícha <[email protected]>

We believe that the bug you reported is fixed in the latest version of
librsvg, 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.
Jeremy Bícha <[email protected]> (supplier of updated librsvg 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: Tue, 03 Nov 2026 18:48:51 +0100
Source: librsvg
Built-For-Profiles: derivative.ubuntu noudeb
Architecture: source
Version: 2.63.4+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian GNOME Maintainers 
<[email protected]>
Changed-By: Jeremy Bícha <[email protected]>
Closes: 1152880
Changes:
 librsvg (2.63.4+dfsg-3) unstable; urgency=medium
 .
   * Fix Ubuntu's librsvg2-dev after enabling avif support
   * Set MESON_USE_NEW_CROSSGEN=1 instead of using the cross building patch
     (Closes: #1152880)
Checksums-Sha1:
 63aa8416fb7570e770fe5cd6227ba56f99b2ba19 8773 librsvg_2.63.4+dfsg-3.dsc
 65c37e0a46aff496e66292cb93a3157ce3c0809b 14230784 
librsvg_2.63.4+dfsg-3.debian.tar.xz
 91ae983440c3abbaa46ed7e8cb5766bcaf0a9027 9806 
librsvg_2.63.4+dfsg-3_source.buildinfo
Checksums-Sha256:
 8a183361e404f767fe20b08ccda617a058644a322d375ad10aca24832b7d79b8 8773 
librsvg_2.63.4+dfsg-3.dsc
 6ca39c0cf426bdbbb407be55fa4959fec08ddc5854bbc9f0806a5017927c73d7 14230784 
librsvg_2.63.4+dfsg-3.debian.tar.xz
 cb5ef353bb16e80a2068aeefffcf8b27ed739b1c0eebc1c8aa89ea31ae48eba8 9806 
librsvg_2.63.4+dfsg-3_source.buildinfo
Files:
 54f0032c4c52528c90901f6a39c9721c 8773 libs optional librsvg_2.63.4+dfsg-3.dsc
 0811045e3ae9f6682ac1ac53fa93d03f 14230784 libs optional 
librsvg_2.63.4+dfsg-3.debian.tar.xz
 57216f227c39c3b6f6e1e7ced03cd823 9806 libs optional 
librsvg_2.63.4+dfsg-3_source.buildinfo

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

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmrqHsoACgkQ5mx3Wuv+
bH1kUQ/9EzH6IpCSGNyzKhMYvTKcUMLlYRHPQgkQPGKCz6YaXQNkgf3kPJBR7c9T
ywGXbGyn6UAyVjAnQ+vJixl6qaDwCt+mj5BCwPLyM2JZR/zYxXSkZ2mGwrEg6cDs
pgoB3Xmi/BHQhvyTrUoY14QVDPvJRIaAyFkCGKtqXz7N1O4gjmjT+XPJZS3zQv97
WA1OLaQqXqZ6TRIyejU4rHZ/55IuKDO7qQqqS4IQ1NG12TzdkrzfvkKoqkIQAaQb
dMjsOTMNWGfGvqS4lxhqhgs2dYA+p33vInL+JXxS60efi4vS0d8aQTkoRwcsRRmq
9B+e3STZ+xnYSppMVsm8ubkUKl5uwYmMcge6QtJrpGWlJ/k7JhuJKWzBTc/qm8Gc
gDqfaL5FqH4QDVSQE3AQK+8g08mpovXZHPEFxPdH6gSHOkyx0jdS4jZqVm576eIn
pFwx45LBsoqpw0Sdn3Y1vFm3/hbBPELupA2V3poUEur5Muta+/j0XGOpegJ4pC9V
IpbklmZHhFZ6/0gRRRbSmdUT2zP4fGV79RMwXjUwX29sYG4tZhig10edrkzq8bfm
btww5NJc8+CC6opWugR2QgJh7t2cZRTvnmL7znDluu3A3t1SfPhMZASacS5bEEgK
Js0RTvt6TzMo8YoVA1b8gwdMG1jwRLUaA15I/PKapfmBls4rXNA=
=h8l+
-----END PGP SIGNATURE-----

Attachment: pgpy7YVNTJAMm.pgp
Description: PGP signature


--- End Message ---

Reply via email to