aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/004-linux-backend-for-hurd.patch
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-19 09:33:22 +0200
committerDaniel Lange <DLange@git.local>2016-04-19 09:33:22 +0200
commit467eb8588b08f4beba50120ff9f312331dae47b1 (patch)
treeae5755ae7528e2e8213f5208cc0696f9bff54637 /debian/patches/004-linux-backend-for-hurd.patch
parentcef9e7933e5c9704eaa5a6330067967f32e52798 (diff)
downloaddebian_htop-467eb8588b08f4beba50120ff9f312331dae47b1.tar.gz
debian_htop-467eb8588b08f4beba50120ff9f312331dae47b1.tar.bz2
debian_htop-467eb8588b08f4beba50120ff9f312331dae47b1.zip
Fix build to detect the Hurd as a Linux platform. (Closes: #821747)
patch from https://patch-diff.githubusercontent.com/raw/hishamhm/htop/pull/472.patch thanks to jrtc27
Diffstat (limited to 'debian/patches/004-linux-backend-for-hurd.patch')
-rw-r--r--debian/patches/004-linux-backend-for-hurd.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/debian/patches/004-linux-backend-for-hurd.patch b/debian/patches/004-linux-backend-for-hurd.patch
new file mode 100644
index 0000000..059e042
--- /dev/null
+++ b/debian/patches/004-linux-backend-for-hurd.patch
@@ -0,0 +1,61 @@
+Make the build system use $target_os and consider Hurd to be Linux
+ reg. htop_platform
+Source: https://patch-diff.githubusercontent.com/raw/hishamhm/htop/pull/472.patch
+From: James Clarke <jrtc27@jrtc27.com>
+Date: Mon, 18 Apr 2016 23:55:55 +0100
+Subject: [PATCH 1/2] Use $target_os instead of $target in configure.ac
+
+---
+ configure.ac | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fa32359..8d48d68 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -26,17 +26,17 @@ AC_PROG_LIBTOOL
+
+ # Checks for platform.
+ # ----------------------------------------------------------------------
+-case "$target" in
+-*linux*)
++case "$target_os" in
++linux*)
+ my_htop_platform=linux
+ ;;
+-*freebsd*)
++freebsd*|kfreebsd*)
+ my_htop_platform=freebsd
+ ;;
+-*openbsd*)
++openbsd*)
+ my_htop_platform=openbsd
+ ;;
+-*darwin*)
++darwin*)
+ my_htop_platform=darwin
+ ;;
+ *)
+
+From 2de52862a693327e9d18057b175e4a7753a492e3 Mon Sep 17 00:00:00 2001
+From: James Clarke <jrtc27@jrtc27.com>
+Date: Mon, 18 Apr 2016 23:57:30 +0100
+Subject: [PATCH 2/2] Use Linux backend on the Hurd
+
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 8d48d68..ccbfb52 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -27,7 +27,7 @@ AC_PROG_LIBTOOL
+ # Checks for platform.
+ # ----------------------------------------------------------------------
+ case "$target_os" in
+-linux*)
++linux*|gnu*)
+ my_htop_platform=linux
+ ;;
+ freebsd*|kfreebsd*)

© 2014-2024 Faster IT GmbH | imprint | privacy policy