Article View: linux.debian.bugs.dist
Article #986Bug#1136580: Bug1136580: samba uses pidof but does not depend on procps
From: Gioele Barabucci
Date: Thu, 15 Oct 2026 18:40
Date: Thu, 15 Oct 2026 18:40
57 lines
3838 bytes
3838 bytes
Control: tags -1 patch On Thu, 14 May 2026 01:32:11 +0200 Gioele Barabucci <gioele@debian.org> wrote: > it appears that samba 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 samba > that use `pidof` at runtime; > * via the `Build-Depends:` field of samba, 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 samba, 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 samba uses `pidof` due to the following > code snippets: > > ``` > path: samba_2:4.23.6+dfsg-2/ctdb/config/functions > _count=1 > for _pid in $(pidof "$_prog"); do > [ "$_count" -le "$_max" ] || break > ``` After a quick inspection of ctdb, it seems that `pidof` is used in `program_stack_traces()` (in `/etc/ctbd/functions`), which, in turn, is used in /etc/ctdb/nfs-check.d/*.check as `service_debug_cmd` For instance: ``` path: /etc/ctdb/nfs-checks.d/10.status.check # status version="1" restart_every=2 unhealthy_after=6 service_stop_cmd="$CTDB_NFS_CALLOUT stop status" service_start_cmd="$CTDB_NFS_CALLOUT start status" service_debug_cmd="program_stack_traces rpc.statd 5" ``` You can find a MR that adds `procps` to CTDB's Recommends field at <https://salsa.debian.org/samba-team/samba/-/merge_requests/73>. Regards, -- Gioele Barabucci
Technical Details
Message-ID:
<NOywV-5Ky3-11@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<MUrll-4Wy6-189@gated-at.bofh.it> <MUrll-4Wy6-189@gated-at.bofh.it> <MUrll-4Wy6-189@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!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Gioele Barabucci <gioele@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1136580: Bug1136580: samba uses pidof but does not depend on procps Date: Thu, 15 Oct 2026 20:40:01 +0200 Message-ID: <NOywV-5Ky3-11@gated-at.bofh.it> References: <MUrll-4Wy6-189@gated-at.bofh.it> <MUrll-4Wy6-189@gated-at.bofh.it> <MUrll-4Wy6-189@gated-at.bofh.it> X-Original-To: 1136580@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Oct 15 18:35:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Gioele Barabucci <gioele@debian.org>, 1136580@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-samba-maint@lists.alioth.debian.org X-Debian-Pr-Message: followup 1136580 X-Debian-Pr-Package: src:samba X-Debian-Pr-Source: samba MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Debian-User: gioele X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996986 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 57 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 15 Oct 2026 20:33:11 +0200 X-Original-Message-ID: <653ce88d-adb1-49e4-b9a7-530098341d59@debian.org> X-Original-References: <7cc0e8d1308d04c4c17baefcc48bd3e9@debian.org> <7cc0e8d1308d04c4c17baefcc48bd3e9@debian.org> <7cc0e8d1308d04c4c17baefcc48bd3e9@debian.org>