summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog864
-rw-r--r--debian/control34
-rw-r--r--debian/copyright35
-rw-r--r--debian/docs2
-rw-r--r--debian/install1
-rw-r--r--debian/patches/001_fix_number_of_running_tasks.patch26
-rw-r--r--debian/patches/002_fix_tree_mode_sorting.patch26
-rw-r--r--debian/patches/003_fix_column_header_update.patch23
-rw-r--r--debian/patches/004_fix_ktread_display.patch37
-rw-r--r--debian/patches/series4
-rwxr-xr-xdebian/rules31
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata4
-rw-r--r--debian/watch3
14 files changed, 1091 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..deb782b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,864 @@
+htop (3.3.0-4) unstable; urgency=medium
+
+ * Apply upstream fix for broken Kernel Thread names when
+ the "Show Program Path" setting was disabled
+
+ -- Daniel Lange <DLange@debian.org> Sun, 28 Jan 2024 17:08:00 +0100
+
+htop (3.3.0-3) unstable; urgency=medium
+
+ * Apply upstream fix for broken tree mode sorting
+ * Apply upstream fix for missing sort direction arrow update on mouse click
+
+ -- Daniel Lange <DLange@debian.org> Wed, 17 Jan 2024 10:28:00 +0100
+
+htop (3.3.0-2) unstable; urgency=medium
+
+ * Apply upstream fix for number of running tasks show as zero
+
+ -- Daniel Lange <DLange@debian.org> Fri, 12 Jan 2024 11:26:00 +0100
+
+htop (3.3.0-1) unstable; urgency=medium
+
+ * Import upstream 3.3.0 release
+ * Drop Debian patch (Remove LXC special handling for CPUs)
+ * Multiple refactorings and code improvements
+ * Shorten docker container IDs to 12 characters
+ * Settings: preserve empty header
+ * Fix execlp() argument without pointer cast
+ * OpenFilesScreen: Make column sizing dynamic for file size, offset and inode
+ * HeaderLayout: add "3 columns - 40/30/30", "... 30/40/30" & "... 30/30/40"
+ * Meter: use correct unicode characters for digit '9'
+ * Note in manual re default memory units of KiB
+ * Add column for process container name
+ * Add logic to filter the container name (+type) from the CGroup name
+ * Change NetworkIOMeter value unit from KiB/s to bytes/second
+ * Cap DiskIOMeter "utilisation" percentage at 100%
+ * Shorten podman/libpod container IDs to 12 characters
+ * Write configuration to temporary file first
+ * Incorporate shared memory in bar text
+ * Move shared memory next to used memory
+ * Correct order of memory meter in help
+ * Add recalculate to Ctrl-L refresh
+ * Update process list on thread visibility toggling
+ * Support dynamic screens with 'top-most' entities beyond processes
+ * Introduce Row and Table classes for screens beyond top-processes
+ * Rework ZramMeter and remove MeterClass.comprisedValues
+ * More robust logic for CPU process percentages
+ * Show year as start time for processes older than a year
+ * Short-term fix for docker container detection
+ * default color preset: use bold blue for better visibility
+ * Document 'O' keyboard shortcut
+ * Implement logic for '--max-iterations'
+ * Update F5 key label on tab switch (Tree <-> List)
+ * Force re-sorting of the process list view after switching between list/treeview mode
+ * Linux: (hack) work around the fact that Zswapped pages may be SwapCached
+ * Linux: implement zswap support
+ * {Memory,Swap}Meter: add "compressed memory" metrics
+ * Fix scroll relative to followed process
+ * ZramMeter: update bar mode
+ * Increase Search and Filter max string length to 128
+ * Improve CPU computation code
+ * Remove LXC special handling for the CPU count
+ * Create new File Descriptor meter
+ * Linux: add IRQ PSI meter
+ * Linux: highlight username if process has elevated privileges
+ * Add support for scheduling policies
+ * Add a systemd user meter to monitor user units.
+
+ -- Daniel Lange <DLange@debian.org> Wed, 10 Jan 2024 11:30:00 +0100
+
+htop (3.2.2-2) unstable; urgency=medium
+
+ * Remove LXC special handling for CPUs
+
+ -- Daniel Lange <DLange@debian.org> Sun, 26 Feb 2023 12:50:00 +0100
+
+htop (3.2.2-1) unstable; urgency=medium
+
+ * Import upstream 3.2.2 release
+ * CPUMeter now can show frequency in text mode
+ * Add option to render distribution path prefixes shadowed
+ * DiskIOMeter converts to bytes per second (not per interval)
+ * DiskIOMeter uses complete units, including missing "iB/s"
+ * DiskIOMeter indicates read and write in meter mode
+ * NetworkIOMeter converts to packets per second, shows packet rate
+ * Allow continued process following when changing display settings
+ * Update the panel header when changing to another tab
+ * Drop margin around the header if there are no meters
+ * Use Unicode replacement character for non-printable characters
+ * Default color preset uses bold blue for better visibility
+ * Update the Panel header on sort order inversions ('I')
+ * Toggle the header meters with pound key
+ * Fix ScreenPanel to handle quitting the panel while renaming
+ * Add fallback for HOME environment variable using passwd database
+ * Replace meaningless ID column with FD column in lock screen
+ * Use device format in the lock screen matching the files screen
+ * On Linux, improvements to file-descriptor lock detection
+ * On Linux, further distinguish systemd states in the SystemdMeter
+ * On Linux, improvements to cgroup and container identification
+ * On Linux, support openat(2) without readlinkat(2) platforms
+ * Handle invalid process columns from the configuration file
+ * Avoid undefined behaviour with deeply nested processes
+ * Fix crash when removing the currently active screen
+ * Prevent possible crash on a very early error path
+ * Include automake for Debian/Ubuntu
+ * Restore non-mouse support
+ * Reject unsupported command line arguments
+ * Document idle process state
+ * Clarify M_TRS/M_DRS columns
+
+ -- Daniel Lange <DLange@debian.org> Sun, 05 Feb 2023 03:59:59 +0100
+
+htop (3.2.1-1) unstable; urgency=medium
+
+ * Import upstream 3.2.1 release
+ * Update policy to 4.6.1 (no changes required)
+ * Fix setting to show all branches collapsed by default
+ * Restore functionality of stripExeFromCmdline setting
+ * Fix some command line display settings not being honored without restart
+ (Closes: #1010780)
+ * Display single digit precision for CPU% greater than 99.9%
+ * Consider only shrinkable ZFS ARC as cache
+ * Increase field width of CPUD% and SWAPD% columns
+ * Colorize process state characters in help screen
+ * Use mousemask(3X) to enable and disable mouse control
+ * Fix heap buffer overflow in Vector_compact
+ * Resolve processes exiting interfering with sampling
+ * Fix ProcessList quadratic removal when scanning processes
+ * Under LXC, limit CPU count to that given by /proc/cpuinfo
+ * Improve container detection for LXC
+ * Some minor documentation fixes
+
+ -- Daniel Lange <DLange@debian.org> Fri, 03 Jun 2022 09:00:00 +0200
+
+htop (3.2.0-1) unstable; urgency=medium
+
+ * Import upstream 3.2.0 release
+ (Closes: #1004582)
+ * Drop Debian patches applied upstream
+ * This version now has Screen tabs in the user interface
+ (use the tab key to switch)
+ * Allow multiple filter and search terms (logical OR, separate by "|")
+ * Add heuristics for guessing LXC or Docker from /proc/1/mounts
+ (this fixes a bug with memory reporting in containers while using ZFS
+ on the host)
+ * Many more performance and small functionality improvements
+
+ -- Daniel Lange <DLange@debian.org> Mon, 02 May 2022 16:27:00 +0200
+
+htop (3.1.0-1) UNRELEASED; urgency=medium
+
+ * Import upstream 3.1.0 release
+ * Drop all Debian patches (have been applied upstream or superseded)
+
+ -- Daniel Lange <DLange@debian.org> Tue, 21 Sep 2021 08:55:00 +0200
+
+htop (3.0.5-7) unstable; urgency=medium
+
+ * Fix division by 0 on ZfsCompressedArcMeter (when no ZFS volume is mounted)
+ * Update watch file to match Github URL schema change
+
+ -- Daniel Lange <DLange@debian.org> Sun, 02 May 2021 13:00:00 +0200
+
+htop (3.0.5-6) unstable; urgency=medium
+
+ * Fix cleaning the infoscreen before a next scan
+
+ -- Daniel Lange <DLange@debian.org> Mon, 01 Mar 2021 09:00:00 +0100
+
+htop (3.0.5-5) unstable; urgency=medium
+
+ * Fix forced sort order when switching to tree mode
+ * Allow btime=0 on some embedded systems (i.e. no RTC)
+ * Fix ZFS coloring to match other meters
+
+ -- Daniel Lange <DLange@debian.org> Mon, 15 Feb 2021 11:11:11 +0100
+
+htop (3.0.5-4) unstable; urgency=medium
+
+ * Fix mouse use / scrolling in Infoscreens
+ * Fix Shift-F3 (prev hit in search mode) for QT based terminals
+ * Harden string handling routine, sort timeout
+ * Improve initial setup of CPU meters for systems with many cores
+
+ -- Daniel Lange <DLange@debian.org> Fri, 05 Feb 2021 08:50:00 +0100
+
+htop (3.0.5-3) unstable; urgency=medium
+
+ [ Daniel Lange ]
+ * Overhaul of the column sorting logic
+ Note to users: This may invert the sort logic for some columns over what
+ is stored in your htoprc. Please press 'I' to invert the sort order and
+ save the htoprc (by exiting htop) to restore your startup sort order.
+ * Another update to the hurd patch
+ * Fix PROCDIR for the hurd build
+ * Disable sensors for hurd build (no libsensors-dev available)
+ * Add patch to silence kFreeBSD compiler warnings
+ * Build-dep on libsensors-dev (Closes: #980731)
+ * Drop configure options from d/rules that were made unconditional upstream
+
+ [ Graham Inggs ]
+ * Add lm-sensors to Suggests
+
+ -- Daniel Lange <DLange@debian.org> Mon, 25 Jan 2021 11:11:00 +0100
+
+htop (3.0.5-2) unstable; urgency=medium
+
+ * Backport patches to fix:
+ - Possible segfault in colored ("rich") string handling
+ - Issue in field background coloring
+ - Build for GNU/hurd (missing PATH_MAX in their limits.h)
+
+ -- Daniel Lange <DLange@debian.org> Fri, 15 Jan 2021 08:00:00 +0100
+
+htop (3.0.5-1) unstable; urgency=medium
+
+ * New upstream release 3.0.5
+ * Remove Debian patches upstreamed
+ * BUGFIX / SECURITY: InfoScreen: fix uncontrolled format string
+ * BUGFIX: Improve white text in the Light Terminal colour scheme
+ * Enable the function bar on the main screen to be hidden (see Setup -> Display options)
+ * BUGFIX: Reduce layout issues esp. around printing wide characters (not complete yet)
+ * BUGFIX: Make the follow function exit cleanly after followed process died
+ * Update help and man page for improved -t / -s options
+ * Drop usage of formatted error messages from <err.h>
+ * Show arrow indicating order of sorted process column
+ * Lots of plumbing around the internal Hashtable, hardening and code cleanups
+ * LibSensors: add support for Ryzen CPUs
+ * BUGFIX: Fix CPU percentage on M1 silicon Macs
+ * LoadMeter: dynamically adjust color and total of bar
+ * Enable going back to previous search matches (Shift-F3)
+ * Added keybind 'N' for sorting by PID (drops 'n'/'N' as not used before much)
+
+ -- Daniel Lange <DLange@debian.org> Mon, 11 Jan 2021 20:45:00 +0100
+
+htop (3.0.3-2) unstable; 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 <DLange@debian.org> Fri, 11 Dec 2020 21:00:00 +0100
+
+htop (3.0.3-1) unstable; urgency=medium
+
+ * New upstream release 3.0.3
+ * Enable delayacct support, closes: #908636
+ * Enable libsensors support
+ * Add svg icon, closes: #663635
+ * Enable pausing screen updates (press Z key), closes: #821904
+ * Hide process selection on ESC
+ * Enable process sorting in 'tree' mode
+ * Add screen for active file locks
+ * Calculate library size (M_LRS column) from maps file
+ * Add multiple new meters (Zram, systemd, network I/O, SELinux, date/time)
+ * Add Linux cwd, security attributes, disk I/O process, context switch columns
+ * Add support to change numeric options in settings screen
+ * Rename virtual memory column from M_SIZE to M_VIRT
+ * Enable showing CPU temperature in CPU meter
+ * Read CPU frequency from sysfs by default
+ * Add octuple-column CPU meters
+ * BUGFIX: On Linux consider ZFS ARC to be cache
+ * BUGFIX: Limit screen title length to window width
+ * Show selected command wrapped in a separate window
+ * Allow starting an item search with '/'
+ * Document implicit incremental search
+ * Handle 'q' as quit if first character
+ * Merged view for COMM, EXE and cmdline (press m key)
+ * Enhance highlighting of semi-large and large numbers
+ * Code hardening, speedups, fd and memory leak fixes
+ * Number CPUs from zero by default
+ * Plus more minor changes and fixes from upstream
+ * Update standards version to 4.5.1, no changes needed.
+
+ -- Daniel Lange <DLange@debian.org> Mon, 07 Dec 2020 11:30:00 +0100
+
+htop (3.0.2-1) unstable; urgency=medium
+
+ * New upstream release 3.0.2
+ * Drop 'vim_mode' - several issues, needs rethink
+ * fix regression in -u optional-argument handling
+ * Build system rework to remove python, header generation
+
+ -- Daniel Lange <DLange@debian.org> Tue, 15 Sep 2020 08:02:00 +0200
+
+htop (3.0.1-1) unstable; urgency=medium
+
+ * New upstream release 3.0.1
+ * Fix early exit with longer sysfs battery paths
+ * Improve OOM output, fix sorting
+ * Rework check buttons and tree open/closed
+ * Add -U/--no-unicode option to disable unicode
+ * Improvements to the affinity panel
+
+ -- Daniel Lange <DLange@debian.org> Thu, 03 Sep 2020 12:40:00 +0200
+
+htop (3.0.0-1) unstable; urgency=medium
+
+ * Switch upstream to htop-dev
+ * New upstream release 3.0.0
+ * Drop Debian patches merged upstream
+
+ -- Daniel Lange <DLange@debian.org> Thu, 27 Aug 2020 08:37:00 +0200
+
+htop (2.2.0-3) unstable; urgency=medium
+
+ [ Graham Inggs ]
+ * Switch to debhelper 13
+ * Avoid FTBFS with GCC 10 (Closes: #957344)
+ * Close pipe after lsof
+
+ [ Debian Janitor ]
+ * Set upstream metadata fields: Bug-Database, Repository, Repository-
+ Browse.
+ * Update standards version to 4.4.1, no changes needed.
+ * Set upstream metadata fields: Bug-Submit.
+ * Update standards version to 4.5.0, no changes needed.
+
+ -- Graham Inggs <ginggs@debian.org> Fri, 03 Jul 2020 09:29:55 +0000
+
+htop (2.2.0-2) unstable; urgency=medium
+
+ * Switch to debhelper 12
+ * Set Rules-Requires-Root: no
+ * Run MakeHeader.py in Python 3
+ * Drop trailing whitespace in debian/changelog
+ * Bump Standards-Version to 4.4.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org> Sun, 21 Jul 2019 23:06:13 +0000
+
+htop (2.2.0-1) unstable; urgency=medium
+
+ * New upstream release 2.2.0
+ * Update uscan to v4 and add gpg verification of upstream tarball
+ * Drop patches that were merged upstream
+ * Remove OpenVZ patch that wasn't merged upstream
+ (for now, upstream issue 464)
+ * Add upstream issue 780 patch
+ * Fix compile issue with regenerated header files (patch)
+ * Update policy to 4.1.4 (no changes required)
+
+ -- Daniel Lange <DLange@debian.org> Thu, 26 Apr 2018 21:10:00 +0200
+
+htop (2.1.0-3) unstable; urgency=medium
+
+ * Fix case of dyscalculia in changelog entry for 2.1.0-1
+ * Update Daniel Lange's email address
+ * Add debian/clean to remove autogenerated headers
+ * Refresh debian/patches/601-openvz-new-ctid-vpid.patch
+ * Fix issue with small terminals (Closes: #889693)
+ * Fix preservation of LDFLAGS value during configure script
+ * Handle unexpected values for character passed to isalnum
+
+ -- Graham Inggs <ginggs@debian.org> Sat, 17 Feb 2018 18:27:46 +0000
+
+htop (2.1.0-2) unstable; urgency=medium
+
+ * Add missing build-dependency on pkg-config
+
+ -- Graham Inggs <ginggs@debian.org> Mon, 05 Feb 2018 16:59:56 +0000
+
+htop (2.1.0-1) unstable; urgency=medium
+
+ [ Graham Inggs ]
+ * New upstream release 2.1.0 (Closes: #889634)
+ * Refresh debian/patches/601-openvz-new-ctid-vpid.patch
+ * Update Vcs-* URIs for move to salsa.debian.org
+ * Turn debhelper up to 11
+ * Update debian/copyright
+ * Remove trailing whitespace from debian/changelog
+ * Use secure URI in Homepage and debian/watch
+ * Bump Standards-Version to 4.1.3, no changes
+
+ [ Helmut Grohne ]
+ * Fix FTCBFS: Annotate python-minimal build dependency with :native.
+ (Closes: #864672)
+
+ -- Graham Inggs <ginggs@debian.org> Mon, 05 Feb 2018 13:22:25 +0000
+
+htop (2.0.2-1) unstable; urgency=medium
+
+ * Update to upstream version 2.0.2
+ - Use SOURCE_DATE_EPOCH instead of current year in copyright message
+ to make build reproducible. (Closes: #822963)
+ - Fix build to detect the Hurd as a Linux platform. (Closes: #821747)
+ - Fix crash when setting CPU affinity and -fPIE. (LP: #1589549)
+ * Bump Standards to 3.9.8 (no changes required)
+
+ -- Daniel Lange <dl.ml1@usrlocal.de> Mon, 25 Jul 2016 19:46:17 +0200
+
+htop (2.0.1-1) unstable; urgency=medium
+
+ * New upstream release 2.0.1. (Closes: #814401, #783893, #774930)
+ * Clean up patches from 1.0.3 -> 2.0.1
+ * Update compat -> 9, rules -> debhelper/9
+ * Update debian/copyright to copyright-format/1.0 (Closes: #749850)
+ * Add lsof as suggested (Closes: #817918)
+ * Change maintainership jackyf -> DLange, jackyf and ginggs will
+ co-maintain. Jackyf: Thank you very much for 8 years of htop
+ maintenance!
+
+ -- Daniel Lange <dl.ml1@usrlocal.de> Thu, 14 Apr 2016 10:25:45 +0200
+
+htop (1.0.3-1) unstable; urgency=low
+
+ * New upstream release.
+ * debian/watch:
+ - Updated to use new download location (http://hisham.hm/htop/releases).
+ * debian/patches:
+ - 600-openvz-veid-on-kernels-gt-2.6.18.patch: refreshed.
+ - 610-io-priority-only-on-linux.patch: ported to new upstream version.
+ - 700-ltrace-support.patch: ported to new upstream version.
+ * debian/control:
+ - Bumped Standards-Version to 3.9.5, no changes needed.
+ - Updated Homepage to 'http://hisham.hm/htop/'.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Thu, 01 May 2014 13:16:56 +0300
+
+htop (1.0.2-3) unstable; urgency=low
+
+ * debian/patches:
+ - New patch 610-io-priority-only-on-linux.patch which should fix building
+ on non-Linux kernels.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sat, 05 Oct 2013 13:17:13 +0300
+
+htop (1.0.2-2) unstable; urgency=low
+
+ * Upload to unstable.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sat, 29 Jun 2013 22:25:41 +0300
+
+htop (1.0.2-1) experimental; urgency=low
+
+ * New upstream release.
+ - Ability to update process names on refreshes. (Closes: #475254)
+ - More precise value of CPU%. (Closes: #668410)
+ - Columns line up properly even when for more-than-5-digits process ids.
+ (Closes: #687280)
+ * debian/control:
+ - Bumped Standards-Version to 3.9.4, no changes needed.
+ * debian/patches:
+ - Deleted 200-dont-delete-htoprc-if-symlink.patch, applied upstream.
+ - 700-ltrace-support.patch: ported to new upstream version.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sat, 01 Dec 2012 11:55:43 +0200
+
+htop (1.0.1-4) unstable; urgency=low
+
+ * debian/rules:
+ - Retrieve and pass also CPPFLAGS and LDFLAGS. Patch by Simon Ruderich.
+ (Closes: #685670)
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sat, 01 Sep 2012 14:29:59 +0300
+
+htop (1.0.1-3) unstable; urgency=low
+
+ * debian/rules:
+ - Retrieve CFLAGS from dpkg-buildflags as dpkg-buildpackage stopped to
+ export them. Thanks to Felix Geyer and Cyril Brulebois.
+ (Closes: #685670)
+ * debian/control:
+ - Build-depend on dpkg (>= 1.16.1) for using dpkg-buildflags.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Mon, 27 Aug 2012 19:51:54 +0300
+
+htop (1.0.1-2) unstable; urgency=low
+
+ * debian/patches:
+ - New patch 200-dont-delete-htoprc-if-symlink.patch from upstream VCS.
+ (Closes: #662087)
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Mon, 30 Jul 2012 19:12:16 +0300
+
+htop (1.0.1-1) unstable; urgency=low
+
+ * New upstream release.
+ - Don't crash when trying to kill already finished process.
+ (Closes: #652563, 657675)
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sun, 19 Feb 2012 10:24:46 +0200
+
+htop (1.0-1) unstable; urgency=low
+
+ * New upstream release.
+ - Don't die after a terminal resize. (Closes: #464852)
+ - Don't abort when a number of processes are removed from the list at
+ once. (Closes: #541417)
+ - Fixed the inconsistency in the documentation about "[" and "]" keys.
+ (Closes: #610329)
+ * debian/patches:
+ - 100-fix-cgroups-crash.patch: deleted, upstream fixed it in a different
+ way.
+ - 600-openvz-veid-on-kernels-gt-2.6.18.patch: ported to new upstream
+ version.
+ - 700-ltrace-support.patch: ported to new upstream version.
+ - 700-ltrace-support.patch: ltrace hotkey is 'L', not 'l'.
+ * debian/control:
+ - Add libhwloc-dev to Build-Depends on non-linux architectures.
+ - Add libncursesw5-dev to Build-Depends, enabling unicode support.
+ * debian/rules:
+ - Enable native affinity functions on linux architectures and use hwloc
+ library everywhere else.
+ * debian/copyright:
+ - Updated upstream copyright years.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sat, 26 Nov 2011 15:58:33 +0200
+
+htop (0.9-4) unstable; urgency=low
+
+ * debian/rules:
+ - Added 'build-arch' and 'build-indep' targets as suggested by Lintian.
+ * debian/patches:
+ - New patch 100-fix-cgroups-crash.patch fixing a crash when htop receives
+ an unexpected input from a cgroups file. (Closes: #628040)
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Wed, 21 Sep 2011 21:17:17 +0300
+
+htop (0.9-3) unstable; urgency=low
+
+ * debian/rules:
+ - Enable cgroups support. (Closes: #627545)
+ * debian/README.source:
+ - added with standard instructions how to use quilt.
+ * debian/control:
+ - Fixed spelling as suggested by lintian.
+ - Bumped Standards-Version to 3.9.2, no changes needed.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sun, 22 May 2011 12:05:09 +0300
+
+htop (0.9-2) unstable; urgency=low
+
+ * Upload to unstable.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sun, 13 Feb 2011 10:41:53 +0200
+
+htop (0.9-1) experimental; urgency=low
+
+ * New upstream release. (Closes: #610229)
+ - Fixed by-process IO stats in some cases. (Closes: #526070)
+ - Do not display nan% as CPU load sometimes. (Closes: #590535)
+ * debian/patches:
+ - 600-openvz-veid-on-kernels-gt-2.6.18.patch: ported to new upstream
+ version.
+ - 700-ltrace-support.patch: refreshed.
+ * debian/control:
+ - Bumped Standards-Version to 3.9.1, no changes needed.
+ - Updated my mail address.
+ - Removed 'DM-Upload-Allowed' flag as not needed anymore.
+ * debian/copyright:
+ - Updated author copyright years.
+ * debian/watch:
+ - Removed 'uupdate' option, not needed for my workflow.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org> Sun, 16 Jan 2011 19:36:07 +0200
+
+htop (0.8.3-1) unstable; urgency=low
+
+ * New upstream release:
+ - 0.8.2 (LP: #385862):
+ - Integrated lsof output. (Closes: #426003)
+ - Handling of absend CPU should work now. (Closes: #494057, #476273)
+ - Fixed a crash when sorting by USER column. (Closes: #526362)
+ - Fixed display of gigabyte-sized values.
+ - Fixed incremental search. (Closes: #521376)
+ - Option to display hostname in the meters area.
+ - 0.8.3
+ * debian/control:
+ - Suggested strace and ltrace. (Closes: #530449)
+ - Bumped Standards-Version to 3.8.2, no changes needed.
+ * debian/patches:
+ - 700-ltrace-support.patch: modified to not contradict with new upstream
+ release, the hotkey for ltrace output changed from 'l' to 'L'.
+ * debian/README:
+ - Added with note about ltrace support.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Mon, 29 Jun 2009 13:08:39 +0300
+
+htop (0.8.1+svn149-2) unstable; urgency=low
+
+ * debian/rules:
+ - Build with VServer support. (Closes: #522905)
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Fri, 17 Apr 2009 21:54:45 +0300
+
+htop (0.8.1+svn149-1) unstable; urgency=low
+
+ * New upstream development snapshot:
+ - Allow building without PLPA support. (Closes: #521861)
+ * debian/patches:
+ - 010-make-desktop-file-valid.patch: deleted, merged upstream.
+ - 100-upstream-sort-by-processor-and-session.patch: deleted, merged
+ upstream.
+ - 110-upstream-fix-page-size-on-BSD.patch: deleted, merged upstream.
+ - 120-upstream-explain-cpu-bars-in-monochrome-mode.patch: deleted, merged
+ upstream.
+ - 200-filter-non-printable-characters.patch: deleted, upstream has own
+ version of this patch.
+ - 610-rename-veid-to-ctid.patch: deleted, merged upstream.
+ - 600-openvz-veid-on-kernels-gt-2.6.18.patch: refreshed.
+ - 800-tree-view-without-userland-threads.patch: deleted, merged upstream.
+ - 700-ltrace-support.patch: refreshed, added the description.
+ * debian/rules:
+ - Deal more robustly with config.{sub,guess} files, thanks to Roger Leigh.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Sun, 05 Apr 2009 11:51:34 +0300
+
+htop (0.8.1-6) unstable; urgency=low
+
+ * debian/patches:
+ - debian/patches/110-upstream-fix-page-size-on-BSD.patch was accidentally
+ incorrectly applied, causing zeroes in memory columns. Fixed.
+ * debian/rules:
+ - File Process.c somewhy is not regenerated during normal build process.
+ Regenerate it by hand.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Sun, 29 Mar 2009 22:37:49 +0300
+
+htop (0.8.1-5) unstable; urgency=low
+
+ * debian/patches:
+ - New 100-upstream-sort-by-processor-and-session.patch, cherry-picked from
+ upstream svn: allow sorting by 'processor' and 'session' columns.
+ (Closes: #501317)
+ - New debian/patches/110-upstream-fix-page-size-on-BSD.patch,
+ cherry-picked from upstream svn: fix page size on BSD systems.
+ (Closes: #485277)
+ - New debian/patches/120-upstream-explain-cpu-bars-in-monochrome-mode.patch,
+ cherry-picked from upstream svn: document meanings of chars in CPU bars
+ in monochrome mode. (Closes: #477222)
+ - 600-openvz-veid-on-kernels-gt-2.6.18.patch: added a description.
+ - 610-rename-veid-to-ctid.patch: added a description.
+ - 800-tree-view-without-userland-threads.patch: added a description.
+ * debian/control:
+ - Bump 'Standards-Version' to 3.8.1, no changes needed.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Sun, 29 Mar 2009 19:49:53 +0300
+
+htop (0.8.1-4) unstable; urgency=low
+
+ * debian/patches:
+ - New 600-openvz-veid-on-kernels-gt-2.6.18.patch: fix determining veid on
+ openvz-enabled kernels greater than 2.6.18. Patch by
+ Thorsten Schifferdecker <tsd@debian.systs.org>. (Closes: #516846)
+ - New 610-rename-veid-to-ctid.patch: openvz: renames 'veid' -> 'ctid' since
+ it's now a preferred term. Patch by
+ Thorsten Schifferdecker <tsd@debian.systs.org>. (Closes: #516847)
+ - New 700-ltrace-support.patch: add ltrace(1) support in addition to strace
+ support. Patch by <knotor@users.sourceforge.net>.
+ - New 800-tree-view-with-userland-threads.patch: patch to fix tree view when
+ userland threads are hidden, taken from Ubuntu.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Mon, 02 Mar 2009 23:17:04 +0200
+
+htop (0.8.1-3) unstable; urgency=low
+
+ * debian/rules:
+ - Don't ship empty directories in the package.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Sun, 15 Feb 2009 13:56:41 +0200
+
+htop (0.8.1-2) experimental; urgency=low
+
+ * Disabled unicode support, it has both build and work problems yet.
+ (Closes: #507423)
+ * debian/patches:
+ - New patch 200-filter-non-printable-characters.patch to filter
+ non-printable characters in process names. Thanks to Josh Triplett
+ and Andrew O. Shadoura. (Closes: #504144)
+ - 010-make-desktop-file-valid.patch: comment added.
+ * debian/control:
+ - Added '${misc:Depends}' to 'Depends', fixes lintian warning.
+ - Added 'python-minimal' to 'Build-Depends' for MakeHeader.py.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Sat, 06 Dec 2008 11:03:18 +0200
+
+htop (0.8.1-1) experimental; urgency=low
+
+ * New maintainer. Thanks for work, Bartosz Fenski!
+ * New upstream release:
+ - Changes in 0.8.1 (Closes: #499928):
+ - Linux-VServer support.
+ - Battery meter (Closes: #484771).
+ - Fixed collection of IO stats in multithreaded processes.
+ - Removed assertion that fails on hardened kernels.
+ - Changes in 0.8.0 (Closes: #494646, #486213):
+ - Ability to change sort column with the mouse by
+ clicking column titles.
+ - Added support for Linux per-process IO statistics.
+ - Added Unicode support.
+ - Fixed display of CPU count for threaded processes.
+ - Avoid crashing when using many meters.
+ - Other fixes:
+ - Significantly increased line length limit (to 65535).
+ (Closes: #470280)
+ * debian/control:
+ - Bumped 'Standards-Version' to 3.8.0, no changes needed.
+ - Changed Build-Depends on debhelper to (>= 7) and 'libncurses5-dev' ->
+ 'libncursesw5-dev'. Added dependency on quilt (>= 0.40).
+ * debian/rules:
+ - Some cleanup, used debhelper v7 commands.
+ - Pass '--enable-taskstats' and '--enable-unicode' options to configure.
+ - Pass '--enable-openvz' to configure. (Closes: #480541)
+ * debian/patches:
+ - New 010-make-desktop-file-valid.patch: makes desktop file valid.
+ Thanks to Nathan Handler <nathan.handler@gmail.com> (Closes: #488912)
+ * debian/copyright:
+ - Fixed path for GPLv2 license.
+ * debian/menu:
+ - Set proper section, removed hint (now useless).
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Sun, 16 Nov 2008 20:36:18 +0200
+
+htop (0.7-1) unstable; urgency=low
+
+ * New upstrem version. (Closes: #452634)
+ * Move URL to homepage header.
+ * Bumped Standards-Version (no changes needed).
+ * Fixed watch file. (Closes: #449631)
+
+ -- Bartosz Fenski <fenio@debian.org> Sat, 26 Apr 2008 13:57:14 +0200
+
+htop (0.6.6+svn20070915-1) unstable; urgency=low
+
+ * New upstream snapshot with dedication to Nico Golde
+ (Closes: #410398, #410391, #427127)
+ - fixes problems with trailing newline in confi (Closes: #420856)
+ - fixes segfault on missing command line args (Closes: #435651)
+ - fixes FTBS with GCC 4.3 branch (Closes: #416852)
+
+ -- Bartosz Fenski <fenio@debian.org> Sat, 15 Sep 2007 14:37:41 +0200
+
+htop (0.6.3-1) unstable; urgency=low
+
+ * New upstream version.
+ - allows to rekill tagged group of processes (Closes: #375219)
+ * Bumped Standards-Version to 3.7.2 (no changes needed).
+
+ -- Bartosz Fenski <fenio@debian.org> Mon, 14 Aug 2006 13:03:15 +0200
+
+htop (0.6.2-1) unstable; urgency=low
+
+ * New upstream version.
+ - doesn't segfault running as root. (Closes: #354258)
+
+ -- Bartosz Fenski <fenio@debian.org> Tue, 4 Jul 2006 07:53:58 +0200
+
+htop (0.6-1) unstable; urgency=low
+
+ * New upstream version.
+ - doesn't show pipe when some value is equal to zero. (Closes: #325058)
+ - allows renicing group of processes. (Closes: #317391)
+
+ -- Bartosz Fenski <fenio@debian.org> Thu, 29 Dec 2005 13:22:07 +0100
+
+htop (0.5.4-1) unstable; urgency=low
+
+ * New upstream version.
+ - does not leave cruft on console on exit. (Closes: #334657)
+
+ -- Bartosz Fenski <fenio@debian.org> Fri, 4 Nov 2005 17:25:27 +0100
+
+htop (0.5.3-1) unstable; urgency=low
+
+ * New upstream version.
+ * Bumped Standards-Version to 3.6.2 (no changes needed).
+
+ -- Bartosz Fenski <fenio@debian.org> Tue, 20 Sep 2005 10:49:52 +0200
+
+htop (0.5.2-1) unstable; urgency=low
+
+ * New upstream bugfix release.
+
+ -- Bartosz Fenski <fenio@debian.org> Wed, 8 Jun 2005 20:02:19 +0200
+
+htop (0.5.1-1) unstable; urgency=low
+
+ * New upstream version.
+ - correctly honors limits for nice values (Closes: #291502)
+
+ -- Bartosz Fenski <fenio@debian.org> Sun, 10 Apr 2005 17:49:12 +0200
+
+htop (0.5-2) unstable; urgency=low
+
+ * watch file changed a little to handle weird upstream versions
+ * s/fenio@o2.pl/fenio@debian.org/
+
+ -- Bartosz Fenski <fenio@debian.org> Thu, 7 Apr 2005 12:00:11 +0200
+
+htop (0.5-1) unstable; urgency=low
+
+ * New upstream version.
+ - fixes problem with wrongly displayed CPU bar (Closes: #283212)
+
+ -- Bartosz Fenski <fenio@o2.pl> Sat, 27 Nov 2004 10:10:17 +0100
+
+htop (0.4.1-3) unstable; urgency=low
+
+ * Fixed handling of non-alphanumeric chars during search.
+ Thanks to Gian Piero Carrubba for noticing it (Closes: #269060)
+ * Added description of recursive search of processes to the manpage.
+ Should be now clear how does it work so (Closes: #269061)
+
+ -- Bartosz Fenski <fenio@o2.pl> Tue, 31 Aug 2004 21:40:15 +0200
+
+htop (0.4.1-2) unstable; urgency=low
+
+ * Included updated manpage. (Closes: #269064)
+ Thanks to Gian Piero Carrubba for provided patch.
+
+ -- Bartosz Fenski <fenio@o2.pl> Tue, 31 Aug 2004 21:08:13 +0200
+
+htop (0.4.1-1) unstable; urgency=low
+
+ * New upstream version.
+ - fixes FTBFS on some archs (Closes: #268373)
+
+ -- Bartosz Fenski <fenio@o2.pl> Fri, 27 Aug 2004 14:01:11 +0200
+
+htop (0.4-1) unstable; urgency=low
+
+ * New upstream version.
+ * Added debian/menu file.
+
+ -- Bartosz Fenski <fenio@o2.pl> Sun, 22 Aug 2004 13:09:12 +0200
+
+htop (0.3.3-1) unstable; urgency=low
+
+ * New upstream version.
+ * Added debian/watch file.
+
+ -- Bartosz Fenski <fenio@o2.pl> Sun, 20 Jun 2004 10:33:13 +0200
+
+htop (0.3.1-1) unstable; urgency=low
+
+ * New upstream version.
+ * Hopefully first official Debian release. (Closes: #248939)
+ Thanks for sponsoring goes to Cedric Delfosse.
+ * debian/rules:
+ - removed dh_installman, cause it's now included by upstream.
+
+ -- Bartosz Fenski <fenio@o2.pl> Mon, 31 May 2004 05:37:15 +0200
+
+htop (0.3-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Bartosz Fenski <fenio@o2.pl> Thu, 20 May 2004 01:15:05 +0200
+
+htop (0.2.1-1) unstable; urgency=low
+
+ * New upstream version.
+ * Some updates to manual page.
+
+ -- Bartosz Fenski <fenio@o2.pl> Sat, 15 May 2004 10:15:03 +0200
+
+htop (0.2-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Bartosz Fenski <fenio@o2.pl> Fri, 14 May 2004 10:37:04 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7091001
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,34 @@
+Source: htop
+Section: utils
+Priority: optional
+Maintainer: Daniel Lange <DLange@debian.org>
+Uploaders: Eugene V. Lyubimkin <jackyf@debian.org>,
+ Graham Inggs <ginggs@debian.org>
+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 [linux-any],
+ libnl-genl-3-dev [linux-any],
+ libsensors-dev [!hurd-any],
+ pkg-config
+Standards-Version: 4.6.2
+Rules-Requires-Root: no
+Homepage: https://htop.dev/
+Vcs-Browser: https://salsa.debian.org/debian/htop
+Vcs-Git: https://salsa.debian.org/debian/htop.git
+
+Package: htop
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Suggests: lm-sensors, lsof, strace
+Description: interactive processes viewer
+ Htop is an ncursed-based process viewer similar to top, but it
+ allows one to scroll the list vertically and horizontally to see
+ all processes and their full command lines.
+ .
+ Tasks related to processes (killing, renicing) can be done without
+ entering their PIDs.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f17b2d8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: htop
+Upstream-Contact: htop dev team <htop@groups.io>
+Source: https://github.com/htop-dev/htop/releases
+
+Files: *
+License: GPL-2+
+Copyright: 2004-2019 Hisham Muhammad
+ 2020-2024 htop dev team
+
+Files: debian/*
+License: GPL-2+
+Copyright: 2016-2024 Daniel Lange
+ 2018-2021 Graham Inggs
+ 2008-2016 Eugene V. Lyubimkin
+ 2004-2008 Bartosz Fenski
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..6f12db5
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+AUTHORS
+README
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..f502e6a
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+htop usr/bin
diff --git a/debian/patches/001_fix_number_of_running_tasks.patch b/debian/patches/001_fix_number_of_running_tasks.patch
new file mode 100644
index 0000000..1d59b26
--- /dev/null
+++ b/debian/patches/001_fix_number_of_running_tasks.patch
@@ -0,0 +1,26 @@
+From b6b9384678fa111d47a8d3074c31490863619d12 Mon Sep 17 00:00:00 2001
+From: Benny Baumann <BenBE@geshi.org>
+Date: Thu, 11 Jan 2024 21:09:43 +0100
+Subject: [PATCH] Fix the display of number of running tasks
+
+This was broken by a logic change in 72235d8e.
+
+Fixes: #1369
+---
+ linux/LinuxMachine.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/linux/LinuxMachine.c b/linux/LinuxMachine.c
+index ae2930d40..50d181e16 100644
+--- a/linux/LinuxMachine.c
++++ b/linux/LinuxMachine.c
+@@ -489,8 +489,7 @@ static void LinuxMachine_scanCPUTime(LinuxMachine* this) {
+ char buffer[PROC_LINE_LENGTH + 1];
+ while (fgets(buffer, sizeof(buffer), file)) {
+ if (String_startsWith(buffer, "procs_running")) {
+- ProcessTable* pt = (ProcessTable*) super->processTable;
+- pt->runningTasks = strtoul(buffer + strlen("procs_running"), NULL, 10);
++ this->runningTasks = strtoul(buffer + strlen("procs_running"), NULL, 10);
+ break;
+ }
+ }
diff --git a/debian/patches/002_fix_tree_mode_sorting.patch b/debian/patches/002_fix_tree_mode_sorting.patch
new file mode 100644
index 0000000..81391f0
--- /dev/null
+++ b/debian/patches/002_fix_tree_mode_sorting.patch
@@ -0,0 +1,26 @@
+From 5d778eaacc78c69d5597b57afb4f98062d8856ef Mon Sep 17 00:00:00 2001
+From: Nathan Scott <nathans@redhat.com>
+Date: Wed, 17 Jan 2024 14:04:24 +1100
+Subject: [PATCH] Undo too-aggressive code collapsing from tree mode
+ refactoring
+
+---
+ Process.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/Process.c b/Process.c
+index a36ab6c77..1497503f0 100644
+--- a/Process.c
++++ b/Process.c
+@@ -902,7 +902,10 @@ int Process_compare(const void* v1, const void* v2) {
+ }
+
+ int Process_compareByParent(const Row* r1, const Row* r2) {
+- int result = Row_compareByParent_Base(r1, r2);
++ int result = SPACESHIP_NUMBER(
++ r1->isRoot ? 0 : Row_getGroupOrParent(r1),
++ r2->isRoot ? 0 : Row_getGroupOrParent(r2)
++ );
+
+ if (result != 0)
+ return result;
diff --git a/debian/patches/003_fix_column_header_update.patch b/debian/patches/003_fix_column_header_update.patch
new file mode 100644
index 0000000..7122d04
--- /dev/null
+++ b/debian/patches/003_fix_column_header_update.patch
@@ -0,0 +1,23 @@
+From 91990b1a34927a4136a85e4ff9adcdbfa500286a Mon Sep 17 00:00:00 2001
+From: Daniel Lange <DLange@git.local>
+Date: Wed, 17 Jan 2024 10:18:31 +0100
+Subject: [PATCH] Clicking on column headers needs to also update the sort
+ direction arrow
+
+---
+ MainPanel.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/MainPanel.c b/MainPanel.c
+index 83490236e..47b2f92fe 100644
+--- a/MainPanel.c
++++ b/MainPanel.c
+@@ -92,7 +92,7 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
+ } else {
+ reaction |= Action_setSortKey(settings, field);
+ }
+- reaction |= HTOP_RECALCULATE | HTOP_REDRAW_BAR | HTOP_SAVE_SETTINGS;
++ reaction |= HTOP_RECALCULATE | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR | HTOP_SAVE_SETTINGS;
+ result = HANDLED;
+ } else if (EVENT_IS_SCREEN_TAB_CLICK(ch)) {
+ int x = EVENT_SCREEN_TAB_GET_X(ch);
diff --git a/debian/patches/004_fix_ktread_display.patch b/debian/patches/004_fix_ktread_display.patch
new file mode 100644
index 0000000..8fff974
--- /dev/null
+++ b/debian/patches/004_fix_ktread_display.patch
@@ -0,0 +1,37 @@
+From 71b099a8df9e8c2bf4361a9a93bebc409f513460 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
+Date: Sat, 27 Jan 2024 23:22:31 +0100
+Subject: [PATCH] Disable basename matching for kernel threads
+
+Kernel threads are commonly not based on an executable and their cmdline
+therefore just a human readable string.
+On Linux this string might contain slashes, e.g. kworker/7:5H-ttm, which
+cause Process_writeCommand() to print only the trailing parts if the
+option *Show Program Path* is disabled.
+
+Reported-and-Suggested-By: mmrmaximuzz
+---
+ Process.c | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/Process.c b/Process.c
+index 1497503f0..9179c0eaf 100644
+--- a/Process.c
++++ b/Process.c
+@@ -1038,8 +1038,14 @@ void Process_updateCmdline(Process* this, const char* cmdline, int basenameStart
+
+ free(this->cmdline);
+ this->cmdline = cmdline ? xStrdup(cmdline) : NULL;
+- this->cmdlineBasenameStart = (basenameStart || !cmdline) ? basenameStart : skipPotentialPath(cmdline, basenameEnd);
+- this->cmdlineBasenameEnd = basenameEnd;
++ if (Process_isKernelThread(this)) {
++ /* kernel threads have no basename */
++ this->cmdlineBasenameStart = 0;
++ this->cmdlineBasenameEnd = 0;
++ } else {
++ this->cmdlineBasenameStart = (basenameStart || !cmdline) ? basenameStart : skipPotentialPath(cmdline, basenameEnd);
++ this->cmdlineBasenameEnd = basenameEnd;
++ }
+
+ this->mergedCommand.lastUpdate = 0;
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..80c3f36
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+001_fix_number_of_running_tasks.patch
+002_fix_tree_mode_sorting.patch
+003_fix_column_header_update.patch
+004_fix_ktread_display.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4a8ce7c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+ ARCH_DEPENDENT_CONFIGURE_PARAMS = \
+ --enable-affinity \
+ --enable-delayacct
+else
+ ARCH_DEPENDENT_CONFIGURE_PARAMS = \
+ --enable-hwloc
+endif
+
+# hurd-i386 can open /proc (nothing there) and /proc/ which works
+ifeq (hurd,$(DEB_HOST_ARCH_OS))
+ ARCH_DEPENDENT_CONFIGURE_PARAMS+= --with-proc=/proc/
+else
+ ARCH_DEPENDENT_CONFIGURE_PARAMS+= --enable-sensors
+endif
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ --enable-openvz \
+ --enable-vserver \
+ --enable-unicode \
+ $(ARCH_DEPENDENT_CONFIGURE_PARAMS)
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..6113602
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,4 @@
+Bug-Database: https://github.com/htop-dev/htop/issues
+Bug-Submit: https://github.com/hop-dev/htop/issues/new
+Repository: https://github.com/htop-dev/htop.git
+Repository-Browse: https://github.com/htop-dev/htop
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0b7bbaa
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/htop-$1\.tar\.gz/ \
+ https://github.com/htop-dev/htop/tags .*/(\d{1,2}\.\d.\d)\.tar\.gz