Bug#1124485: libei FTCBFS: unsatisfiable cross Build-Depends
Source: libei
Version: 1.5.0-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: cross-satisfiability
libei cannot be cross built from source, because it has a number of
Build-Depends that cannot be satisfied during a cross build. Most of
them relate to tests. Hence, I am introducing the noinsttest build
profile for dropping the libei-tests package. Then, given noinsttest and
nocheck, libei can be made to cross build with relative ease. Note that
black is an unused dependency and that python3-jinja is not a test
dependency. Please consider applying the attached patch.
Helmut
diff -Nru libei-1.5.0/debian/changelog libei-1.5.0/debian/changelog
--- libei-1.5.0/debian/changelog 2025-09-12 04:01:33.000000000 +0200
+++ libei-1.5.0/debian/changelog 2026-01-01 16:56:43.000000000 +0100
@@ -1,3 +1,13 @@
+libei (1.5.0-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Improve cross building. (Closes: #-1)
+ + Drop unused black dependency.
+ + Support skipping tests.
+ + Annotate jinja dependency :native.
+
+ -- Helmut Grohne <helmut@subdivi.de> Thu, 01 Jan 2026 16:56:43 +0100
+
libei (1.5.0-2) unstable; urgency=medium
* debian/watch: convert to Version: 5
diff -Nru libei-1.5.0/debian/control libei-1.5.0/debian/control
--- libei-1.5.0/debian/control 2025-09-12 04:01:33.000000000 +0200
+++ libei-1.5.0/debian/control 2026-01-01 16:56:43.000000000 +0100
@@ -5,18 +5,17 @@
Uploaders: Jeremy Bícha <jbicha@ubuntu.com>
Build-Depends:
debhelper-compat (= 13),
- black,
libevdev-dev,
libsystemd-dev,
libxkbcommon-dev,
meson,
pkgconf,
- python3-attr,
- python3-dbusmock,
- python3-jinja2,
- python3-pytest,
- python3-structlog,
- python3-yaml
+ python3-attr <!nocheck> <!noinsttest>,
+ python3-dbusmock <!nocheck> <!noinsttest>,
+ python3-jinja2:native,
+ python3-pytest <!nocheck> <!noinsttest>,
+ python3-structlog <!nocheck> <!noinsttest>,
+ python3-yaml <!nocheck> <!noinsttest>
Standards-Version: 4.7.2
Homepage: https://gitlab.freedesktop.org/libinput/libei
Vcs-Git: https://salsa.debian.org/xorg-team/lib/libei.git
@@ -124,6 +123,7 @@
Package: libei-tests
Architecture: any
+Build-Profiles: <!noinsttest>
Depends:
${misc:Depends},
${shlibs:Depends}
diff -Nru libei-1.5.0/debian/rules libei-1.5.0/debian/rules
--- libei-1.5.0/debian/rules 2025-09-12 04:01:33.000000000 +0200
+++ libei-1.5.0/debian/rules 2026-01-01 16:56:43.000000000 +0100
@@ -5,6 +5,13 @@
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
built_binaries := $(shell dh_listpackages)
+meson_args :=
+
+ifneq (,$(filter nocheck,$(DEB_BUILD_PROFILES) $(DEB_BUILD_OPTIONS)))
+ifneq (,$(filter noinsttest,$(DEB_BUILD_PROFILES)))
+meson_args += -Dtests=disabled
+endif
+endif
%:
dh $@
@@ -20,7 +27,8 @@
ln -s ../munit subprojects/
dh_auto_configure -- \
-Dauto_features=enabled \
- -Dsd-bus-provider=libsystemd
+ -Dsd-bus-provider=libsystemd \
+ $(meson_args)
override_dh_missing:
dh_missing -Xusr/bin/ei-debug-events
Reply to: