Source: heimdal
Version: 7.7.0+dfsg-2
Tags: patch
User: [email protected]
Usertags: cross-satisfiability

heimdal cannot be cross built from source, because its Build-Depends are
not cross satisfiable. Rather than looking into this difficult problem,
I looked into easily droppable dependencies and it has quite some:
 * I could not identify any uses of libhesiod-dev, libx11-dev,
   libxau-dev, libxt-dev, ss-dev or x11proto-core-libs. When turning
   these into Build-Conflicts, heimdal reproduces the artifacts of an
   unmodified build.
 * libperl4-corelibs-perl was used in cf/make-proto.pl, but no longer
   is.
 * python3 is unused, because the lib/wind/*_table.* are not regenerate
   them. Rather than dropping python3, I propose regenerating them
   during build.
 * unzip is only used in unit tests. Annotate <!nocheck>.

Please consider applying the attached patch.

Helmut
 
diff --minimal -Nru heimdal-7.7.0+dfsg/debian/changelog 
heimdal-7.7.0+dfsg/debian/changelog
--- heimdal-7.7.0+dfsg/debian/changelog 2020-05-11 22:56:04.000000000 +0200
+++ heimdal-7.7.0+dfsg/debian/changelog 2021-01-19 13:28:53.000000000 +0100
@@ -1,3 +1,17 @@
+heimdal (7.7.0+dfsg-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Reduce Build-Depends: (Closes: #-1)
+    + Drop unused libhesiod-dev.
+    + Drop unused libperl4-corelibs-perl as cf/make-proto.pl no longer uses
+      it.
+    + Drop unused libx11-dev, libxau-dev, libxt-dev, ss-dev, and
+      x11proto-core-dev.
+    + Clean generated C tables to actually rebuild them using python3.
+    + Annotate unzip <!nocheck>.
+
+ -- Helmut Grohne <[email protected]>  Tue, 19 Jan 2021 13:28:53 +0100
+
 heimdal (7.7.0+dfsg-2) unstable; urgency=medium
 
   * Build using python3. Closes: #936695, #960032.
diff --minimal -Nru heimdal-7.7.0+dfsg/debian/clean 
heimdal-7.7.0+dfsg/debian/clean
--- heimdal-7.7.0+dfsg/debian/clean     1970-01-01 01:00:00.000000000 +0100
+++ heimdal-7.7.0+dfsg/debian/clean     2021-01-19 13:28:53.000000000 +0100
@@ -0,0 +1,2 @@
+lib/wind/*_table.c
+lib/wind/*_table.h
diff --minimal -Nru heimdal-7.7.0+dfsg/debian/control 
heimdal-7.7.0+dfsg/debian/control
--- heimdal-7.7.0+dfsg/debian/control   2020-05-11 22:55:00.000000000 +0200
+++ heimdal-7.7.0+dfsg/debian/control   2021-01-19 13:28:53.000000000 +0100
@@ -12,22 +12,15 @@
                libcap-ng-dev [linux-any],
                libdb-dev,
                libedit-dev,
-               libhesiod-dev,
                libjson-perl,
                libldap2-dev,
                libncurses5-dev,
-               libperl4-corelibs-perl,
                libsqlite3-dev,
-               libx11-dev,
-               libxau-dev,
-               libxt-dev,
                netbase,
                pkg-config,
                python3,
-               ss-dev,
                texinfo,
-               unzip,
-               x11proto-core-dev
+               unzip <!nocheck>,
 Vcs-Browser: https://salsa.debian.org/debian/heimdal
 Vcs-Git: https://salsa.debian.org/debian/heimdal.git
 

Reply via email to