Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #92637

Bug#1136535: nfs-utils uses pidof but does not depend on procps

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Salvatore Bonaccorso <carnil@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1136535: nfs-utils uses pidof but does not depend on procps
Date Wed, 20 May 2026 22:10:01 +0200
Message-ID <MWVoR-6CVb-7@gated-at.bofh.it> (permalink)
References <MUrlj-4Wy6-113@gated-at.bofh.it> <MUrlj-4Wy6-113@gated-at.bofh.it>
X-Original-To Gioele Barabucci <gioele@debian.org>, 1136535@bugs.debian.org
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Wed May 20 20:09:10 2026
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -1.699
Reply-To Salvatore Bonaccorso <carnil@debian.org>, 1136535@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc debian-kernel@lists.debian.org
X-Debian-Pr-Message followup 1136535
X-Debian-Pr-Package src:nfs-utils
X-Debian-Pr-Source nfs-utils
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Debian-User carnil
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1970925
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 63
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 20 May 2026 22:07:31 +0200
X-Original-Message-ID <ag4Ugwr877lOf3RY@eldamar.lan>
X-Original-References <efbdca52997135c9403b71421771e0f1@debian.org> <efbdca52997135c9403b71421771e0f1@debian.org>
Xref csiph.com linux.debian.bugs.dist:1294535 linux.debian.kernel:92637

Cross-posted to 2 groups.

Show key headers only | View raw


Control: tags -1 + pending 

Hi,

On Thu, May 14, 2026 at 01:29:37AM +0200, Gioele Barabucci wrote:
> Source: nfs-utils
> Version: 1:2.9.1-1
> Usertags: pidof-without-procps
> 
> Dear maintainer(s) of nfs-utils,
> 
> it appears that nfs-utils 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 nfs-utils
>   that use `pidof` at runtime;
> * via the `Build-Depends:` field of nfs-utils, 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 nfs-utils, 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 nfs-utils uses `pidof` due to the following
> code snippets:
> 
> ```
> path: nfs-utils_1:2.8.6-1/debian/tests/v3-mount
> grep "${hello}" /mnt/hello.txt
> pidof rpc.statd > /dev/null 2>&1 || {
>     echo "rpc.statd isn't running after the NVSv3 mount, and it should..."
>     exit 1
> 
> 
> path: nfs-utils_1:2.8.6-1/debian/tests/v3-mount
> # stop statd if it's running, because we will check later if it
> # was started automatically for the NFSv3 mount as it should
> if pidof rpc.statd > /dev/null 2>&1; then
>     systemctl stop rpc-statd.service > /dev/null 2>&1 || :
>     pidof rpc.statd > /dev/null 2>&1 && {
> ```
> 
> Feel free to close this issue if this is a false positive (for example
> if this code is in an unreachable code path).

I addressed the case for the autopkgtest adding a Depends there.

But I won't add a Depends for nfs-common binary package providing
still the init script as well. The idea is to either drop the status
there or ask people who will still use the init scripts instead of the
systemd units to please provide a patch moving away of the pidof
usage there.

Regards,
Salvatore

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1136535: nfs-utils uses pidof but does not depend on procps Gioele Barabucci <gioele@debian.org> - 2026-05-14 01:40 +0200
  Processed: Re: Bug#1136535: nfs-utils uses pidof but does not  depend on procps "Debian Bug Tracking System" <owner@bugs.debian.org> - 2026-05-20 22:10 +0200
  Bug#1136535: nfs-utils uses pidof but does not depend on procps Salvatore Bonaccorso <carnil@debian.org> - 2026-05-20 22:10 +0200
    Bug#1136535: nfs-utils uses pidof but does not depend on procps Gioele Barabucci <gioele@debian.org> - 2026-05-20 22:20 +0200
  Bug#1136535: marked as done (nfs-utils uses pidof but does not  depend on procps) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2026-07-31 22:40 +0200

csiph-web