On 2026/01/03 15:36, vansid wrote: > There are two PHP dependencies that seem to be missing from OpenBSD's > current list of packages, the PHP extensions 'mysqlnd' and 'apcu'. I > was able to compile and install these myself, but how do I request > that these are added to the official OpenBSD package and/or port > library? I assume that external dependencies like this need to be > satisfied before a port can be submitted.
mysqlnd is included in the main PHP binaries already, it's an internal library to PHP and not used directly by anything else, it provides the database access layer for pdo_mysql and mysqli extensions. (PHP can be compiled to use libmysqlclient instead but that is not the default). I'll send a port for apcu. > Second, ZoneMinder makes use of a construct called '/dev/shm' in the > Linux world, but this doesn't seem to exist in OpenBSD (note: I am > neither a Linux expert, nor an OpenBSD expert...or ZoneMinder for that > matter). I was able to "solve" this probably by making a symlink from > '/dev/shm' to '/tmp', but I assume that is frowned upon. If anyone > has advice, I can submit an issue with the ZoneMinder team. on linux this would normally be expected to be a memory-based filesystem. zoneminder uses this explicitly as a backing store for files which the various processes use to communicate (opened with mmap). most software doing similar would probably use shm_open(3) rather than managing files themselves; on linux that typically uses /dev/shm (and on openbsd, typically /tmp). probably best to patch this to use /tmp. check that it's working properly though, if some of the zoneminder processes access this via file operations and others via mmap there can be problems (openbsd behaves differently with this than nearly all other OS as it needs explicit syncs). if it doesn't work properly then you can try configuring with -DZM_NO_MMAP=On to use sysv shared memory interfaces instead (you'll probably need to bump kern.shminfo.shmall and kern.shminfo.shmmax sysctls above defaults).
