🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1994

Bug#1136574: rocksdb uses pidof but does not depend on procps

#1994
From: Gioele Barabucci
Date: Sat, 24 Oct 2026 22:50
59 lines
4292 bytes
Control: severity -1 minor

On Thu, 14 May 2026 01:31:51 +0200 Gioele Barabucci <gioele@debian.org> 
wrote:
> it appears that rocksdb uses `pidof` in its testsuite, or that
> at least one of its binary packages uses `pidof` at runtime.
> Historically, `pidof` was provided by the Essential package
> `sysvinit-tools`, making an explicit dependency unnecessary. However
> `pidof` will soon be moved to `procps` and will no longer be part of
> the Essential set.
> 
> Please add an explicit dependency on `procps`:
> 
> * via the `Depends:` field of all binary packages of rocksdb
>   that use `pidof` at runtime;
> * via the `Build-Depends:` field of rocksdb, if `pidof` is
>   used in tests run at build-time;
> * via the `Depends:` field of `debian/control/tests`, if `pidof` is
>   used in autopkgtests.
> 
> To prevent any disruption for users of rocksdb, please add
> this dependency now, before `pidof` is moved from `sysvinit-utils` to
> `procps`. Alternatively, you could remove all uses of `pidof`.
> 
> It is believed that rocksdb uses `pidof` due to the following
> code snippets:
> 
> ```
> path: rocksdb_9.11.2-1/tools/regression_test.sh
> # $6 --- async_io. Default: False
> function run_db_bench {
>   # Make sure no other db_bench is running. (Make sure command succeeds if pidof
>   # command exists but finds nothing.)
>   pids_cmd='pidof db_bench || pidof --version > /dev/null'
> 
> 
> path: rocksdb_9.11.2-1/tools/regression_test.sh
>   # But first, make best effort to kill any db_bench that have run for more
>   # than 12 hours, as that indicates a hung or runaway process.
>   kill_old_cmd='for PID in $(pidof db_bench); do [ "$(($(stat -c %Y /proc/$PID) + 43200))" -lt "$(date +%s)" ] && echo "Killing old db_bench $PID" && kill $PID && sleep 5 && kill -9 $PID && sleep 5; done; pidof --version > /dev/null'
>   if ! [ -z "$REMOTE_USER_AT_HOST" ]; then
>     pids_cmd="$SSH $REMOTE_USER_AT_HOST '$pids_cmd'"
> ```
Dear rocksdb maintainers,

the script `tools/regression_test.sh` does not seems to be run at 
build-time (the tests are disabled «Test is no-op as running for hours 
on a normal PC»), nor as part of an autopkgtest (there are none), nor 
shipped in any binary package.

If this analysis is correct, you can close this bug report without 
further action.

In the meantime I'll lower the severity to minor.

Regards,

-- 
Gioele Barabucci
Technical Details
Message-ID: <NRSIN-7G2W-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <MUrlg-4Wy6-23@gated-at.bofh.it> <MUrlg-4Wy6-23@gated-at.bofh.it> <MUrlg-4Wy6-23@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Gioele Barabucci <gioele@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1136574: rocksdb uses pidof but does not depend on procps
Date: Sun, 25 Oct 2026 00:50:01 +0200
Message-ID: <NRSIN-7G2W-3@gated-at.bofh.it>
References: <MUrlg-4Wy6-23@gated-at.bofh.it> <MUrlg-4Wy6-23@gated-at.bofh.it> <MUrlg-4Wy6-23@gated-at.bofh.it>
X-Original-To: 1136574@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sat Oct 24 22:43:15 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Gioele Barabucci <gioele@debian.org>, 1136574@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: gcs@debian.org
X-Debian-Pr-Message: followup 1136574
X-Debian-Pr-Package: src:rocksdb
X-Debian-Pr-Source: rocksdb
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Debian-User: gioele
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998630
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 59
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 25 Oct 2026 00:40:02 +0200
X-Original-Message-ID: <47cebe6a-e85a-4abf-9821-ab16c78aa649@debian.org>
X-Original-References: <0ac7ab0792ce47027564b97e7b1b1a7c@debian.org> <0ac7ab0792ce47027564b97e7b1b1a7c@debian.org> <0ac7ab0792ce47027564b97e7b1b1a7c@debian.org>