[Bug 297406] www/nextcloud: FreeBSD patch uses undefined POSIX_EPERM

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 09 Aug 2026 21:00:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297406

            Bug ID: 297406
           Summary: www/nextcloud: FreeBSD patch uses undefined
                    POSIX_EPERM
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brnrd@freebsd.org
          Reporter: paul.le.gauret@gmail.com
             Flags: maintainer-feedback?(brnrd@freebsd.org)
          Assignee: brnrd@freebsd.org

Affects at least FreeBSD packages nextcloud-php84-34.0.1_1 and
nextcloud-php84-34.0.2.

  files/patch-PR296323, introduced by commit 811fa21, uses POSIX_EPERM, which
PHP 8.4 does not define. 

Nextcloud cron fails with:
  Undefined constant "OC\BackgroundJob\POSIX_EPERM"

Tested on FreeBSD with PHP 8.4.24: posix_kill() returns false and
posix_get_last_error() returns integer 1 for EPERM.

Upstream’s working solution is:
  posix_get_last_error() === 1 /* EPERM */

-- 
You are receiving this mail because:
You are the assignee for the bug.