Skip to content

Install php-inotify from the OS package where available#2828

Merged
enoch85 merged 1 commit into
mainfrom
smbmount-inotify-apt
Jul 8, 2026
Merged

Install php-inotify from the OS package where available#2828
enoch85 merged 1 commit into
mainfrom
smbmount-inotify-apt

Conversation

@enoch85

@enoch85 enoch85 commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

Fixes #2827

The SMB mount script builds the inotify PHP extension with PECL, but since #2780 removed php-dev from the base installation, pecl install inotify fails on current systems - which is what the reporter of #2827 ran into (their workaround was adding the sury.org repository).

There is no need for a third-party repository:

  • Ubuntu 25.10 and later ship inotify as an OS package in universe (php8.5-inotify on 26.04, which is what the VM currently installs). The script now prefers that when apt knows the package.
  • Ubuntu 24.04 doesn't package it at all (neither does sury.org's Ubuntu PPA change that need - the package simply isn't in noble's archive), so the PECL path is kept as fallback, now with php-dev installed first so the build actually succeeds.

Changes

  • apps/smbmount.sh: prefer php$PHPVER-inotify from apt when available; otherwise install php$PHPVER-dev before building via PECL as before.

The OS package ships its own mods-available/inotify.ini, so the manual ini handling is only needed on the PECL path. Once 24.04 support is dropped, the PECL path can be removed entirely.

Ubuntu ships inotify as an OS package since 25.10 (php8.5-inotify on
26.04), so prefer that over building with PECL. On Ubuntu 24.04 the
package doesn't exist, so keep the PECL path there, but install php-dev
first - it was removed from the base installation in #2780, which made
'pecl install inotify' fail when enabling inotify for an SMB mount.

No third-party repository (sury.org) is needed.

Fixes #2827
@enoch85 enoch85 force-pushed the smbmount-inotify-apt branch from 6420b6f to 8df584b Compare July 8, 2026 17:59
@enoch85 enoch85 merged commit d58255f into main Jul 8, 2026
10 of 11 checks passed
@enoch85 enoch85 deleted the smbmount-inotify-apt branch July 8, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Repository for php8.3-inotify

1 participant