Source: libxkbcommon
Version: 1.0.3-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libxkbcommon participates in dependency loops relevant to architecture
bootstrap. Instead of looking into such a difficult problem, I looked
for easily droppable dependencies.

An obvious one is cmake as libxkbcommon now uses meson.

libx11-dev is less obvious. libxkbcommon now uses libxcb a lot and does
not use any libx11-dev header.

I'm not sure what xutils-dev was ever used for. I couldn't locate any
use of it anywhere in libxkbcommon or an explanation in a changelog.
Maybe it was build with xmkmf at an earlier time? I suggest dropping it
as well.

x11-xkb-utils and xkb-data are less obvious. I'm not sure whether
they're completely unused or whether they're used in tests. The safe bet
is annotating them <!nocheck>, but maybe removing them is better.

Since libxkbcommon is normally reproducible, one can verify the
correctness of this change. A regular build produces the very same
binary artifacts as a nocheck build with all of the mentioned
dependencies turned into Build-Conflicts. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru libxkbcommon-1.0.3/debian/changelog 
libxkbcommon-1.0.3/debian/changelog
--- libxkbcommon-1.0.3/debian/changelog 2020-11-26 13:55:39.000000000 +0100
+++ libxkbcommon-1.0.3/debian/changelog 2021-01-26 20:47:43.000000000 +0100
@@ -1,3 +1,14 @@
+libxkbcommon (1.0.3-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Reduce Build-Depends: (Closes: #-1)
+    + Drop cmake as we now use meson.
+    + Drop libx11-dev as we now use libxcb.
+    + Drop xutils-dev as no tool of it is being used.
+    + Annotate x11-xkb-utils and xkb-data <!nocheck>.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 26 Jan 2021 20:47:43 +0100
+
 libxkbcommon (1.0.3-2) unstable; urgency=medium
 
   [ Simon McVittie ]
diff --minimal -Nru libxkbcommon-1.0.3/debian/control 
libxkbcommon-1.0.3/debian/control
--- libxkbcommon-1.0.3/debian/control   2020-11-26 13:50:36.000000000 +0100
+++ libxkbcommon-1.0.3/debian/control   2021-01-26 20:47:43.000000000 +0100
@@ -6,7 +6,6 @@
 Build-Depends:
  debhelper-compat (= 12),
  bison,
- cmake,
  dh-exec,
  doxygen,
  flex,
@@ -15,14 +14,12 @@
  pkg-config,
  quilt,
  libwayland-dev [linux-any],
- libx11-dev,
  libxcb-xkb-dev (>= 1.10),
  libxml2-dev,
  wayland-protocols [linux-any],
- x11-xkb-utils,
+ x11-xkb-utils <!nocheck>,
  x11proto-dev,
- xkb-data,
- xutils-dev (>= 7.5+4),
+ xkb-data <!nocheck>,
  xvfb <!nocheck>,
 Standards-Version: 4.5.0
 Homepage: http://www.xkbcommon.org/

Reply via email to