🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1136552: php-defaults uses pidof but does not depend on procps

#1029
From: Gioele Barabucci
Date: Fri, 16 Oct 2026 09:50
45 lines
3599 bytes
Control: tags -1 patch

On Thu, 14 May 2026 01:30:35 +0200 Gioele Barabucci <gioele@debian.org> 
wrote:
> it appears that php-defaults 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 php-defaults
>   that use `pidof` at runtime;
> * via the `Build-Depends:` field of php-defaults, 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 php-defaults, 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 php-defaults uses `pidof` due to the following
> code snippets:
> 
> ```
> path: php-defaults_99/sessionclean
> done
> # first find all open session files and touch them (hope it's not massive amount of files)
> for pid in $(pidof $proc_names); do
>     find "/proc/$pid/fd" -ignore_readdir_race -lname "$save_path/sess_*" -exec touch -c {} \; 2>/dev/null
> done ) | \
> ```
In fact `sessionclean` is shipped as part of `php-common` and called 
from a systemd service, so `php-common` must depend on `pidof`.

You can find a MR with a fix for this issue at 
<https://salsa.debian.org/php-team/php-defaults/-/merge_requests/6>.

Regards,

-- 
Gioele Barabucci
Technical Details
Message-ID: <NOMJz-5Trq-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <MUrli-4Wy6-105@gated-at.bofh.it> <MUrli-4Wy6-105@gated-at.bofh.it> <MUrli-4Wy6-105@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!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Gioele Barabucci <gioele@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1136552: php-defaults uses pidof but does not depend on procps
Date: Fri, 16 Oct 2026 11:50:01 +0200
Message-ID: <NOMJz-5Trq-1@gated-at.bofh.it>
References: <MUrli-4Wy6-105@gated-at.bofh.it> <MUrli-4Wy6-105@gated-at.bofh.it> <MUrli-4Wy6-105@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Oct 16 09:41:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Gioele Barabucci <gioele@debian.org>, 1136552@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+pkg-php@tracker.debian.org
X-Debian-Pr-Message: followup 1136552
X-Debian-Pr-Package: src:php-defaults
X-Debian-Pr-Source: php-defaults
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/1997037
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 45
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 16 Oct 2026 11:38:23 +0200
X-Original-Message-ID: <aafa0360-d668-48fd-a798-b3d03c9fe732@debian.org>
X-Original-References: <8858212059adafe624384fce0743b078@debian.org> <8858212059adafe624384fce0743b078@debian.org> <8858212059adafe624384fce0743b078@debian.org>