Your message dated Fri, 03 Jan 2025 14:44:08 +0000
with message-id <[email protected]>
and subject line Bug#1060906: fixed in cppgir 2.0+git20240928.c8bb1c6-1
has caused the Debian Bug report #1060906,
regarding cppgir: Please search the same paths for GIR XML that
GObject-Introspection does
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.)
--
1060906: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060906
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cppgir
Version: 2.0-2
Severity: normal
Tags: trixie sid
User: [email protected]
Usertags: gi-gir-path
Steps to reproduce
------------------
$ podman run --rm -it debian:sid-slim
# apt update
# apt install cppgir libportal-dev gir1.2-glib-2.0-dev
# apt remove libgirepository1.0-dev
# cppgir --output /tmp/gir /usr/share/gir-1.0/Xdp-1.0.gir
(libportal-dev is a relatively small GLib-based library and Xdp-1.0.gir
is its corresponding GIR XML - you could use any GLib-dependent library
for this)
Expected result
---------------
Bindings are generated successfully
Actual result
-------------
ERROR could not find GIR for GLib-2.0
Workaround
----------
# apt install libgirepository1.0-dev
# cppgir --output /tmp/gir /usr/share/gir-1.0/Xdp-1.0.gir
(success)
Or use the --gir-path option, or the $GI_GIR environment variable.
Discussion
----------
The gobject-introspection package had a long-standing bug that
GLib-2.0.gir was installed in /usr/share, but has architecture-dependent
contents, preventing it from being co-installed on different
architectures. Recent versions solve this by moving GLib-2.0.gir
to /usr/lib/${DEB_HOST_MULTIARCH}/gir-1.0 (in the gir1.2-glib-2.0-dev
package), and configuring gobject-introspection to search that path.
Unfortunately, various other programs like cppgir also want to
read GIR XML, and they don't search the same directories for it
that gobject-introspection does. For backwards compatibility,
gobject-introspection still installs a symbolic link
/usr/share/gir-1.0/GLib-2.0.gir -> ../../lib/${DEB_HOST_MULTIARCH}/GLib-2.0.gir
in the libgirepository1.0-dev package to avoid breaking those tools,
but I would prefer that symlink to disappear eventually.
There is at least one other package that has an architecture-dependent
GIR XML file: GstAudio-1.0.gir in libgstreamer-plugins-base1.0-dev
(https://bugs.debian.org/1016631). Having a symbolic link in /usr/share
is probably not an option here, because there's no convenient package
split to take advantage of; but if we move GstAudio-1.0.gir into
/usr/lib/${DEB_HOST_MULTIARCH}, then cppgir will become unable to
process it.
I think the best way to solve this in cppgir would be to propose changes
upstream to make it use the same search path as gobject-introspection,
resolving upstream issue https://gitlab.com/mnauw/cppgir/-/issues/66,
and then apply those changes in Debian (as a backported patch if
necessary) and configure it in a suitable way so that it searches
/usr/lib/${DEB_HOST_MULTIARCH}.
If that cannot be done in the near future, a less good alternative would
be to have a Debian-specific patch hard-coding it to search
/usr/lib/${DEB_HOST_MULTIARCH}.
Thanks,
smcv
--- End Message ---
--- Begin Message ---
Source: cppgir
Source-Version: 2.0+git20240928.c8bb1c6-1
Done: Nicholas Guriev <[email protected]>
We believe that the bug you reported is fixed in the latest version of
cppgir, 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.
Nicholas Guriev <[email protected]> (supplier of updated cppgir 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: SHA256
Format: 1.8
Date: Fri, 03 Jan 2025 16:55:28 +0300
Source: cppgir
Architecture: source
Version: 2.0+git20240928.c8bb1c6-1
Distribution: unstable
Urgency: medium
Maintainer: Nicholas Guriev <[email protected]>
Changed-By: Nicholas Guriev <[email protected]>
Closes: 1060906
Changes:
cppgir (2.0+git20240928.c8bb1c6-1) unstable; urgency=medium
.
* Update to the latest upstream commit.
* Remove previous patches taken from upstream Git.
* Add data-ignore-deprecated-glib-symbol.patch instead.
* Add multiarch directory to search paths for GIR XML. (Closes: #1060906)
Checksums-Sha1:
9610c439234087b3aa6818c797c7f739df0cafff 1692
cppgir_2.0+git20240928.c8bb1c6-1.dsc
5625f38278304ab20528af246ea3f54631ef8489 141040
cppgir_2.0+git20240928.c8bb1c6.orig.tar.xz
0a2aa60bd4f1d92babaa1dd9dee5e113b3880976 3996
cppgir_2.0+git20240928.c8bb1c6-1.debian.tar.xz
Checksums-Sha256:
776d4ad5ae7334dab8da7da955a6ae803347d0bdbb1e147d6fdbe6859a25978f 1692
cppgir_2.0+git20240928.c8bb1c6-1.dsc
b6dc46661447ff3050df36a3a30ffa27ac95809bbd427f71c40078add56139a4 141040
cppgir_2.0+git20240928.c8bb1c6.orig.tar.xz
2496060aee2205102ac08a8f9468563b3e6c6c6007e28a84ac22667d88b81ef1 3996
cppgir_2.0+git20240928.c8bb1c6-1.debian.tar.xz
Files:
8436988972686dae7bb481ddee0de374 1692 devel optional
cppgir_2.0+git20240928.c8bb1c6-1.dsc
8427b79b295652780b3b9db3a0e29c10 141040 devel optional
cppgir_2.0+git20240928.c8bb1c6.orig.tar.xz
5f5cbb7ae62a9b869ca885525fa29da4 3996 devel optional
cppgir_2.0+git20240928.c8bb1c6-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iIYEARYIAC4WIQQRm7llN8yxifaG60cF2qh9JI3wlQUCZ3fwvxAcZ3VyaWV2LW5z
QHlhLnJ1AAoJEAXaqH0kjfCVOicA/j2Ib920DAHjk++D0ZHoeM7guMSpXK9U5BPT
qD6oskYRAQDatSbr3GosRwnl0hyHHyEBuE4VX5lL8L4FCqvoj6+fCQ==
=nos5
-----END PGP SIGNATURE-----
pgpkcakYqhmPf.pgp
Description: PGP signature
--- End Message ---