Source: hwloc
Version: 2.4.0+dfsg-3
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

hwloc participates in dependency loops relevant to architecture
bootstrap. Rather than work on such a difficult problem, I looked for
easily droppable dependencies. It turns out that on glibc systems, hwloc
prefers dlopen over ltdl, so we can restrict the dependency to !glibc
systems. The libxml2-utils dependency is used for xmllint, which is used
for tests. It can be annotated <!nocheck>. Finally, the documentation is
not rebuilt during package build. As a result, doxygen-latex, transfig
and w3m are unused and can be dropped. Please consider applying the
attached patch. Alternatively, consider actually rebuilding the
documentation during package build.

Helmut
diff --minimal -Nru hwloc-2.4.0+dfsg/debian/changelog 
hwloc-2.4.0+dfsg/debian/changelog
--- hwloc-2.4.0+dfsg/debian/changelog   2020-12-31 15:21:52.000000000 +0100
+++ hwloc-2.4.0+dfsg/debian/changelog   2021-01-26 14:20:03.000000000 +0100
@@ -1,3 +1,15 @@
+hwloc (2.4.0+dfsg-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Reduce Build-Depends: (Closes: #-1)
+    + Restrict libltdl-dev dependency to !glibc systems as hwloc prefers
+      dlopen for glibc.
+    + Annotate test dependency libxml2-utils <!nocheck>.
+    + Drop dependencies doxygen-latex, transfig and w3m as the documentation
+      is not rebuilt during package build anyway.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 26 Jan 2021 14:20:03 +0100
+
 hwloc (2.4.0+dfsg-3) unstable; urgency=medium
 
   * control: Update packaging URL.
diff --minimal -Nru hwloc-2.4.0+dfsg/debian/control 
hwloc-2.4.0+dfsg/debian/control
--- hwloc-2.4.0+dfsg/debian/control     2020-12-31 14:41:28.000000000 +0100
+++ hwloc-2.4.0+dfsg/debian/control     2021-01-26 14:20:03.000000000 +0100
@@ -1,16 +1,15 @@
 Source: hwloc
 Priority: optional
 Maintainer: Samuel Thibault <sthiba...@debian.org>
-Build-Depends: debhelper-compat (= 12), dh-exec, libltdl-dev,
+Build-Depends: debhelper-compat (= 12), dh-exec, libltdl-dev [!gnu-any-any],
   valgrind [amd64 arm64 armhf i386 mips64el mipsel ppc64el s390x powerpc 
ppc64],
-  libcairo2-dev, libx11-dev, libxml2-dev, libxml2-utils, libncurses5-dev,
+  libcairo2-dev, libx11-dev, libxml2-dev, libxml2-utils <!nocheck>, 
libncurses5-dev,
   libnuma-dev [linux-any],
   libxnvctrl-dev,
   libpciaccess-dev, libudev-dev [linux-any], pkg-config,
   ocl-icd-opencl-dev [!hurd-i386] | opencl-dev, opencl-headers,
-  autoconf (>= 2.63), w3m,
+  autoconf (>= 2.63),
   dpkg-dev (>= 1.16)
-Build-Depends-Indep: doxygen-latex, transfig
 Build-Conflicts: autoconf2.13
 Standards-Version: 4.5.0
 Section: libs

Reply via email to