Control: affects -1 + src:foot src:fuzzel src:gamescope src:libxkbcommon 
src:mesa-demos src:swaybg src:swaylock src:wayland src:wayland-utils src:wev 
src:wlroots

On Thu, Sep 05, 2019 at 08:34:08PM +0200, Helmut Grohne wrote:
> Source: libwayland-bin
> Version: 1.17.0-1
> Tags: patch
> User: debian-cr...@lists.debian.org
> Usertags: ftcbfs
> Control: affects -1 + src:weston
> 
> weston fails to cross build from source, because meson cannot find
> wayland-scanner.pc. It requests wayland-scanner as a native dependency.
> weston declares a build dependency on libwayland-dev. It thus receives
> the host architecture libwayland-dev. libwayland-dev declares a
> depenency on libwayland-bin, which happens to be Multi-Arch: foreign.
> Thus it receives the build architecture libwayland-bin. Unfortunately,
> wayland-scanner.pc, which describes the location of the wayland-scanner
> binary, is shipped in libwayland-dev. So it is only available for the
> host architecture, but required for the build architecture. Please move
> it to libwayland-bin where the wayland-scanner executable lives.

Given that the lack of progress on this issue for almost four years
combined with it affecting a number of packages of growing popularity, I
have uploaded a 10-day NMU of wayland to finally settle this.

The change I've uploaded is slightly different to the one originally
proposed. Lintian rightly complains about a multiarch directory in a
Multi-Arch: foreign package. Therefore, I also move wayland-scanner.pc
to /usr/share/pkgconfig. As a consequence, this move works without
Breaks and Replaces.

Let me know if I should delay this change any longer. I'm attaching the
actual .debdiff for completeness.

Helmut
diff -u wayland-1.22.0/debian/changelog wayland-1.22.0/debian/changelog
--- wayland-1.22.0/debian/changelog
+++ wayland-1.22.0/debian/changelog
@@ -1,3 +1,10 @@
+wayland (1.22.0-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Move wayland-scanner.pc to libwayland-bin. (Closes: #939515)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 25 Aug 2023 09:24:40 +0200
+
 wayland (1.22.0-2) unstable; urgency=medium
 
   * Upload to unstable
diff -u wayland-1.22.0/debian/libwayland-bin.install 
wayland-1.22.0/debian/libwayland-bin.install
--- wayland-1.22.0/debian/libwayland-bin.install
+++ wayland-1.22.0/debian/libwayland-bin.install
@@ -2,3 +2,4 @@
 usr/bin/wayland-scanner
 usr/share/aclocal/wayland-scanner.m4
 usr/share/wayland/wayland-scanner.mk
+usr/lib/*/pkgconfig/wayland-scanner.pc usr/share/pkgconfig
diff -u wayland-1.22.0/debian/libwayland-dev.install 
wayland-1.22.0/debian/libwayland-dev.install
--- wayland-1.22.0/debian/libwayland-dev.install
+++ wayland-1.22.0/debian/libwayland-dev.install
@@ -16,7 +16,6 @@
 usr/lib/*/pkgconfig/wayland-cursor.pc
 usr/lib/*/pkgconfig/wayland-egl.pc
 usr/lib/*/pkgconfig/wayland-server.pc
-usr/lib/*/pkgconfig/wayland-scanner.pc
 
 # Documentation
 usr/share/wayland/wayland.xml

Reply via email to