[Debian-on-mobile-maintainers] Bug#1118318: rust-gio-0.18: FTBFS: can't find file to patch at input line 23
Santiago Vila
sanvila at debian.org
Sat Oct 18 00:09:22 BST 2025
Package: src:rust-gio-0.18
Version: 0.18.4-3
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202510/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-gio-0.18, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem cargo
dh_auto_clean -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'clean', '--verbose', '--verbose'],) {'check': True}
Removed 0 files
dh_autoreconf_clean -O--buildsystem=cargo
dh_clean -O--buildsystem=cargo
debian/rules binary
dh binary --buildsystem cargo
dh_update_autotools_config -O--buildsystem=cargo
dh_autoreconf -O--buildsystem=cargo
dh_auto_configure -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into /<<PKGBUILDDIR>>/debian/cargo_registry/
debian/rules execute_before_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f Cargo.lock
cp /usr/share/gir-1.0/GLib-2.0.gir /<<PKGBUILDDIR>>
cp /usr/share/gir-1.0/GModule-2.0.gir /<<PKGBUILDDIR>>
cp /usr/share/gir-1.0/GObject-2.0.gir /<<PKGBUILDDIR>>
cp /usr/share/gir-1.0/Gio-2.0.gir /<<PKGBUILDDIR>>
sed -i 's/girs_directories\s=\s\[\"\.\.\/gir-files\"\]/girs_directories=\[\".\"\]/' /<<PKGBUILDDIR>>/Gir.toml
xmlstarlet ed -L \
-u '//*[@glib:error-domain="g-option-context-error-quark"]/@glib:error-domain' -v g-option-error-quark \
GLib-2.0.gir
xmlstarlet ed -L \
-u '//_:record[@name="KeyFile"]/_:method[@name="set_boolean_list"]//_:parameter[@name="list"]/_:array/@c:type' -v "gboolean*" \
-u '//_:record[@name="KeyFile"]/_:method[@name="set_double_list"]//_:parameter[@name="list"]/_:array/@c:type' -v "gdouble*" \
-u '//_:record[@name="KeyFile"]/_:method[@name="set_integer_list"]//_:parameter[@name="list"]/_:array/@c:type' -v "gint*" \
-u '//_:record[@name="KeyFile"]/_:method[@name="set_locale_string_list"]//_:parameter[@name="list"]/_:array/@c:type' -v "const gchar* const*" \
-u '//_:record[@name="KeyFile"]/_:method[@name="set_string_list"]//_:parameter[@name="list"]/_:array/@c:type' -v "const gchar* const*" \
GLib-2.0.gir
xmlstarlet ed -L \
-u '//_:class[@name="Object"]/_:method[@name="getv"]//_:parameter[@name="names"]/_:array/@c:type' -v "const gchar**" \
-u '//_:class[@name="Object"]/_:method[@name="getv"]//_:parameter[@name="values"]/_:array/@c:type' -v "GValue*" \
-u '//_:class[@name="Object"]/_:method[@name="setv"]//_:parameter[@name="names"]/_:array/@c:type' -v "const gchar**" \
-u '//_:class[@name="Object"]/_:method[@name="setv"]//_:parameter[@name="values"]/_:array/@c:type' -v "const GValue*" \
-u '//_:class[@name="Object"]/_:constructor[@name="new_with_properties"]//_:parameter[@name="names"]/_:array/@c:type' -v "const char**" \
-u '//_:class[@name="Object"]/_:constructor[@name="new_with_properties"]//_:parameter[@name="values"]/_:array/@c:type' -v "const GValue*" \
GObject-2.0.gir
xmlstarlet ed -L \
-i '//_:interface[@name="TypePlugin" and not(@glib:type-struct)]' -t 'attr' -n 'glib:type-struct' -v 'TypePluginClass' \
-i '//_:record[@name="TypePluginClass" and not(@glib:is-gtype-struct-for)]' -t 'attr' -n 'glib:is-gtype-struct-for' -v 'TypePlugin' \
GObject-2.0.gir
gir -o .
[ERROR libgir::config::error] "object Gio.DBusMessage": Unknown key: ["generate_display_trait"]
[WARN libgir::library_postprocessing] Field `DBusInterfaceSkeletonClass::vfunc_padding` missing c:type assumed to be `fixed_array`
[WARN libgir::library_postprocessing] Field `DBusInterfaceSkeletonClass::signal_padding` missing c:type assumed to be `fixed_array`
[WARN libgir::config::gobjects] Configured object `Gio.DesktopAppInfo` missing from the library
[WARN libgir::config::gobjects] Configured object `Gio.FileDescriptorBased` missing from the library
[WARN libgir::config::gobjects] Configured object `Gio.UnixFDMessage` missing from the library
[WARN libgir::config::gobjects] Configured object `Gio.UnixInputStream` missing from the library
[WARN libgir::config::gobjects] Configured object `Gio.UnixMountEntry` missing from the library
[WARN libgir::config::gobjects] Configured object `Gio.UnixMountPoint` missing from the library
[WARN libgir::config::gobjects] Configured object `Gio.UnixOutputStream` missing from the library
[WARN libgir::config::gobjects] Configured object `Gio.Win32InputStream` missing from the library
[WARN libgir::config::gobjects] Configured object `Gio.Win32OutputStream` missing from the library
[WARN libgir::analysis::functions] Function "get_poll_func" returns callback
[ERROR libgir::analysis::record] Missing memory management functions for Gio.ActionEntry
[ERROR libgir::analysis::record] Missing memory management functions for Gio.FileAttributeInfo
[WARN libgir::analysis::functions] Function g_file_info_get_attribute_data has unsupported outs
[WARN libgir::analysis::functions] Function g_file_info_get_modification_time has unsupported outs
[ERROR libgir::analysis::record] Missing memory management functions for Gio.IOExtension
[ERROR libgir::analysis::record] Missing memory management functions for Gio.IOExtensionPoint
[ERROR libgir::analysis::record] Missing memory management functions for Gio.InputMessage
[WARN libgir::analysis::functions] Function get_item_attributes has unsupported outs
[WARN libgir::analysis::functions] Function get_item_links has unsupported outs
[WARN libgir::analysis::trampolines] Can't generate Gio.MountOperation trampoline for signal 'ask-question'
[WARN libgir::analysis::trampolines] Can't generate Gio.MountOperation trampoline for signal 'show-processes'
[ERROR libgir::analysis::record] Missing memory management functions for Gio.OutputMessage
[WARN libgir::analysis::functions] `SettingsGetMapping`: unknown type
[WARN libgir::analysis::functions] `get_mapped`: this is supposed to be a callback function but no callback was found...
[WARN libgir::analysis::trampolines] Can't generate Gio.Settings trampoline for signal 'change-event'
[WARN libgir::analysis::functions] `g_tls_password_set_value_full`: no user data point to the destroy callback
[WARN libgir::analysis::functions] `g_tls_password_set_value_full`: destructor without linked callback
[WARN libgir::analysis::functions] function `local_file_add_info`'s callback `free_extra_data` without associated user data
[WARN libgir::analysis::functions] `local_file_add_info`: this is supposed to be a callback function but no callback was found...
[WARN libgir::analysis::functions] `g_dbus_connection_register_object`: no user data point to the destroy callback
[WARN libgir::analysis::functions] `g_dbus_connection_register_object`: destructor without linked callback
patch -p1 < /<<PKGBUILDDIR>>/debian/patches/0003-fix-build-with-2-84.diff
can't find file to patch at input line 23
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From: Arnaud Ferraris <arnaud.ferraris at collabora.com>
|Date: Wed, 25 Sep 2024 11:11:19 +0200
|Subject: unix_mount_entry: fix build with glib 2.84
|
|Due to `g_unix_mount_entry_{copy,free}()` being new in 2.84, the
|auto-generated module uses those new functions in the main wrapper
|without guarding them with a feature flag, leading to compilation errors
|when not using the `v2_84` feature.
|
|This is a bug in the bindings generator, but we can work around it by
|by adding the former code and using either one depending on the
|feature(s) used.
|
|Forwarded: not-needed
|---
| src/auto/unix_mount_entry.rs | 14 ++++++++++++++
| 1 file changed, 14 insertions(+)
|
|diff --git a/src/auto/unix_mount_entry.rs b/src/auto/unix_mount_entry.rs
|index fa145d1..189e2bd 100644
|--- a/src/auto/unix_mount_entry.rs
|+++ b/src/auto/unix_mount_entry.rs
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
make[1]: *** [debian/rules:20: execute_before_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Debian-on-mobile-maintainers
mailing list