Your message dated Tue, 03 Nov 2026 00:05:06 +0000
with message-id <[email protected]>
and subject line Bug#1152880: fixed in librsvg 2.63.4+dfsg-2
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-2
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 00:40:04 +0100
Source: librsvg
Built-For-Profiles: derivative.ubuntu noudeb
Architecture: source
Version: 2.63.4+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GNOME Maintainers 
<[email protected]>
Changed-By: Jeremy Bícha <[email protected]>
Closes: 1038252 1152880
Changes:
 librsvg (2.63.4+dfsg-2) unstable; urgency=medium
 .
   [ Helmut Grohne ]
   * Improve cross building (Closes: #1152880)
     + Mark locales as only needed for build tests
     + Use a native Rust toolchain
     + Pass the triplet option to meson
     + Add cross.patch: Reduce introspection and vala requirements
 .
   [ Jeremy Bícha ]
   * Remove 2 i386 workaround patches that are no longer needed
     (Closes: #1038252)
   * Remove some reftest workarounds
Checksums-Sha1:
 0eb78dff3ddba35ca9a5891a74ca1a502e6963d0 8773 librsvg_2.63.4+dfsg-2.dsc
 dd58d9076cd6b3685160ebedae3041eb927683dd 14230244 
librsvg_2.63.4+dfsg-2.debian.tar.xz
 47572a26aeb47a6deaa41eaa35da14e78f4b6107 9806 
librsvg_2.63.4+dfsg-2_source.buildinfo
Checksums-Sha256:
 9d846ad7c1abdcd380beb25c68ef3ff00a5f1a04cd23b2c729a49df2445f8a9e 8773 
librsvg_2.63.4+dfsg-2.dsc
 bf0c6228cdc6017a74f3b9e11897595789f88af61061ed2c250957567b69d39f 14230244 
librsvg_2.63.4+dfsg-2.debian.tar.xz
 198ae0d723d0d23c46435f2f900bb78c93abb7bb572c7ada7edd149425218c5c 9806 
librsvg_2.63.4+dfsg-2_source.buildinfo
Files:
 696d1a7ea9ac0bb3f2fe8dbf333df894 8773 libs optional librsvg_2.63.4+dfsg-2.dsc
 06693d554839194acd785f3a5cb26724 14230244 libs optional 
librsvg_2.63.4+dfsg-2.debian.tar.xz
 982c2e6bdfb2e9ddec44e67776ab4a9d 9806 libs optional 
librsvg_2.63.4+dfsg-2_source.buildinfo

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

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmrpH7YACgkQ5mx3Wuv+
bH1nYw/+IY2O3FotOsHVO46gpfId9zWRjwu4miW0Y4AMfHbkbPpHRS/BmeKiw3X8
n+2HQOJYY7dXzvlRhYWKYWMK8ENM1APv6iSU/qzScA/OoCdoT5jvEG931+rTLBTL
ldG9jVTZqbPtkHXcayfA4+bVHyriWiB7a4iZrMbboeT+rqim8/mPkskrFALMDRqe
0pABXxEHvbgwvctsUxB8kciFtxBAxPlSE90fd4UKExtoNkfElkjuTXeXwAhsBZyR
fz+BnKg7IyiZLyXfmg7QV/inL1B4sSb1OsJo9KBciqFV8P+6aIPuYWivRq2jF9fD
KD+JY+uOenC0MZIReb8usZdQ+GNsISwSmBO1a2L7+StYFOaEcKZ3SJeii5w3/Z+z
ueq8xbEXiZvxYhrhzNJB+Dcfk76wlHyeeyBOoNfuuvNDKPQOPriG/U3h9Nt4sIeA
RbjyEq2wxkAgZ5KUx6Exaatrp6DYLVREDh49cQ3ejif/v285mMviVjMlHdaN4no9
tyQ40a15z5X8wul/DXFKM77sHvcoWlUr3Fh7ELGYC+y5b2/wA+icvRNQ/MyexQhp
GB9sB6Q8jTeG2qUNp/EbQFpf+cewTRqANKadZDAQUeKxA4p61qDe7yMHJMxgXkXj
RqOEtYDDHh0KWWvwrKb1yVfBvOh1Qlh++RA7Bboa34fCToO0SXk=
=KEVq
-----END PGP SIGNATURE-----

Attachment: pgprpFN21hfyj.pgp
Description: PGP signature


--- End Message ---

Reply via email to