From 02af5ad97f5def09e95d41203432816f50022534 Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Fri, 11 Dec 2020 21:26:58 +0200 Subject: Fix kFreeBSD build --- debian/changelog | 4 ++++ debian/control | 5 +++-- debian/patches/0003-Fix-kfreebsd-build.patch | 16 ++++++++++++++++ debian/patches/series | 1 + debian/rules | 8 +++++--- 5 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 debian/patches/0003-Fix-kfreebsd-build.patch diff --git a/debian/changelog b/debian/changelog index 452a374..951a3fe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,12 @@ htop (3.0.3-2) UNRELEASED; urgency=medium + [ Daniel Lange ] * Fix display in tree mode * Fix pausing screen updates (press Z key) in tree mode + [ Graham Inggs ] + * Fix kFreeBSD build + -- Daniel Lange Fri, 11 Dec 2020 18:22:00 +0100 htop (3.0.3-1) unstable; urgency=medium diff --git a/debian/control b/debian/control index d018a9f..90f3af5 100644 --- a/debian/control +++ b/debian/control @@ -6,12 +6,13 @@ Uploaders: Eugene V. Lyubimkin , Graham Inggs Build-Depends: debhelper-compat (= 13), dpkg-dev (>= 1.16.1.1), + libdevstat-dev [kfreebsd-any], libhwloc-dev [!linux-any], libkvm-dev [kfreebsd-any], libncurses5-dev, libncursesw5-dev, - libnl-3-dev, - libnl-genl-3-dev, + libnl-3-dev [linux-any], + libnl-genl-3-dev [linux-any], libsensors4-dev, pkg-config Standards-Version: 4.5.1 diff --git a/debian/patches/0003-Fix-kfreebsd-build.patch b/debian/patches/0003-Fix-kfreebsd-build.patch new file mode 100644 index 0000000..2e4a630 --- /dev/null +++ b/debian/patches/0003-Fix-kfreebsd-build.patch @@ -0,0 +1,16 @@ +Description: Fix kFreeBSD build + Drop redundant sys/dirent.h include +Forwarded: https://github.com/htop-dev/htop/pull/386 +Author: Graham Inggs +Last-Update: 2020-12-11 + +--- a/freebsd/FreeBSDProcessList.c ++++ b/freebsd/FreeBSDProcessList.c +@@ -14,7 +14,6 @@ + #include + #include + #include +-#include + #include + #include // needs to be included before for MAXPATHLEN + #include diff --git a/debian/patches/series b/debian/patches/series index c5991a0..57977ec 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 0001-Fix-broken-tree-display.patch 0002-Fix-paussing-in-tree-mode.patch +0003-Fix-kfreebsd-build.patch diff --git a/debian/rules b/debian/rules index 8fedabd..e561e98 100755 --- a/debian/rules +++ b/debian/rules @@ -5,9 +5,12 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk ifeq (linux,$(DEB_HOST_ARCH_OS)) - ARCH_DEPENDENT_CONFIGURE_PARAMS = --enable-linux-affinity + ARCH_DEPENDENT_CONFIGURE_PARAMS = \ + --enable-linux-affinity \ + --enable-delayacct else - ARCH_DEPENDENT_CONFIGURE_PARAMS = --enable-hwloc + ARCH_DEPENDENT_CONFIGURE_PARAMS = \ + --enable-hwloc endif %: @@ -20,6 +23,5 @@ override_dh_auto_configure: --enable-vserver \ --enable-cgroup \ --enable-unicode \ - --enable-delayacct \ --with-sensors \ $(ARCH_DEPENDENT_CONFIGURE_PARAMS) -- cgit v1.2.3