[gtk: 1/2] Do not require wayland-protocols as dependency in the .pc file
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Do not require wayland-protocols as dependency in the .pc file
- Date: Thu, 16 Sep 2021 18:32:25 +0000 (UTC)
commit c9aec9b5a2ad039d28f83bf1a278c1d21ca4889e
Author: muradm <muradm>
Date: Thu Sep 16 17:53:00 2021 +0300
Do not require wayland-protocols as dependency in the .pc file
Basically, I was building some packages on Guix. I figured out that
wayland-protocols was listed among propagated-inputs for gtk+ package
(gtk-3-24). propagated-inputs holds a list of runtime dependencies,
that should be available to any other package that depends on gtk+.
While discussing we clarified that wayland-protocols is not runtime
dependency. So I moved it to native-inputs of gtk+ package, which
means that, this dependency will be available only to gtk+ package and
only at build time. Once moved, building of other applications that
depening on gtk+ started to fail.
Investigation showed that, all .pc (pkg-config) files prepared by gtk+
package, was including:
Requires.private: ... wayland-protocols ...
Since it becomes requirement, other applications was failing with
missing dependency wayland-protocols of dependency gtk+, for instance:
-- Checking for module 'gtk+-3.0'
-- Package 'wayland-protocols', required by 'gdk-3.0', not found
While actually wayland-protocols is not even a build time dependency
of application that depends on gtk+. Advertisement of such
requirement, is a bit misleading, because one does not need it at
runtime, especially applications based on gtk.
meson.build | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 070aa6a80d..764755bf33 100644
--- a/meson.build
+++ b/meson.build
@@ -478,7 +478,6 @@ if wayland_enabled
wayland_pkgs = [
'wayland-client @0@'.format(wayland_req),
- 'wayland-protocols @0@'.format(wayland_proto_req),
'xkbcommon @0@'.format(xkbcommon_req),
'wayland-egl',
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]