Control: tags 962956 + patch Control: tags 962956 + pending Dear maintainer,
I've prepared an NMU for reniced (versioned as 1.21-1.2) and uploaded it to DELAYED/2. Please feel free to tell me if I should cancel it. cu Adrian
diff -Nru reniced-1.21/debian/changelog reniced-1.21/debian/changelog --- reniced-1.21/debian/changelog 2022-06-14 16:15:44.000000000 +0300 +++ reniced-1.21/debian/changelog 2022-10-15 12:20:06.000000000 +0300 @@ -1,3 +1,12 @@ +reniced (1.21-1.2) unstable; urgency=medium + + * Non-maintainer upload. + * Add upstream fix for PIDs with more than 5 digits. + (Closes: #962956) + * Add the missing dependency on procps. + + -- Adrian Bunk <b...@debian.org> Sat, 15 Oct 2022 12:20:06 +0300 + reniced (1.21-1.1) unstable; urgency=medium * Non maintainer upload by the Reproducible Builds team. diff -Nru reniced-1.21/debian/control reniced-1.21/debian/control --- reniced-1.21/debian/control 2016-05-15 17:21:09.000000000 +0300 +++ reniced-1.21/debian/control 2022-10-15 12:20:06.000000000 +0300 @@ -8,7 +8,7 @@ Package: reniced Architecture: all -Depends: libbsd-resource-perl, ${perl:Depends}, ${misc:Depends} +Depends: procps, libbsd-resource-perl, ${perl:Depends}, ${misc:Depends} Description: renice running processes based on regular expressions reniced takes a list of regular expressions, looks for processes matching them and renices the processes to given values. diff -Nru reniced-1.21/debian/patches/0001-fix-parsing-of-ps-output-for-PIDs-longer-than-5-digi.patch reniced-1.21/debian/patches/0001-fix-parsing-of-ps-output-for-PIDs-longer-than-5-digi.patch --- reniced-1.21/debian/patches/0001-fix-parsing-of-ps-output-for-PIDs-longer-than-5-digi.patch 1970-01-01 02:00:00.000000000 +0200 +++ reniced-1.21/debian/patches/0001-fix-parsing-of-ps-output-for-PIDs-longer-than-5-digi.patch 2022-10-15 12:18:41.000000000 +0300 @@ -0,0 +1,39 @@ +From 2c65c0550f5785674ae5e0b057ef2efc66358f27 Mon Sep 17 00:00:00 2001 +From: Christian Garbs <mi...@cgarbs.de> +Date: Sun, 15 Mar 2020 20:36:49 +0100 +Subject: fix parsing of ps output for PIDs longer than 5 digits + +--- + reniced | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/reniced b/reniced +index 656175e..6481c3c 100755 +--- a/reniced ++++ b/reniced +@@ -2,7 +2,7 @@ + # + # reniced - renice running processes based on regular expressions + # +-# Copyright (C) 2005 Christian Garbs <mi...@cgarbs.de> ++# Copyright (C) 2005, 2020 Christian Garbs <mi...@cgarbs.de> + # + # 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 +@@ -432,9 +432,10 @@ sub read_processes() + my $line = <PS>; # skip first line + while ($line = <PS>) { + chomp $line; +- my $pid = substr($line, 0, 5 )+ 0; +- my $cmd = substr($line, 6 ); +- push @proc, { PID => $pid, CMD => $cmd }; ++ if ($line =~ m/^\s*(\d+)\s+(.*)$/) { ++ my ($pid, $cmd) = ($1, $2); ++ push @proc, { PID => $pid, CMD => $cmd }; ++ } + } + } + close PS or die "can't close `$cmdline': $!\n"; +-- +2.30.2 + diff -Nru reniced-1.21/debian/patches/series reniced-1.21/debian/patches/series --- reniced-1.21/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 +++ reniced-1.21/debian/patches/series 2022-10-15 12:20:03.000000000 +0300 @@ -0,0 +1 @@ +0001-fix-parsing-of-ps-output-for-PIDs-longer-than-5-digi.patch