fix: v1.8.3 - build sodium + ship pecl on Linux#18
Merged
Conversation
The Linux from-source build omitted two things that break common Laravel projects: - `--with-sodium` was missing, so ext-sodium was never compiled. Packages like lcobucci/jwt require ext-sodium and composer install fails with "ext-sodium is missing from your system". - `--with-pear` was missing, so the `pecl` binary was never installed. `phpvm ext install <name>` and `phpvm ext laravel` (redis via PECL) failed with "pecl not found. It should be installed with PHP." Also add libsodium dev headers to the dependency hints for apt / dnf / yum / pacman / zypper. Windows is unaffected (it uses prebuilt binaries that already bundle sodium and fetch PECL DLLs). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On Linux, two missing
./configureflags break common Laravel setups:ext-sodiumnever compiled —--with-sodiumwas absent.composer installfails on packages likelcobucci/jwt/kreait/firebase-tokenswith "ext-sodium is missing from your system".peclnever installed —--with-pearwas absent.phpvm ext install <name>andphpvm ext laravel(redis via PECL) fail with "pecl not found. It should be installed with PHP."Fix
--with-sodiumand--with-pearto the build'sconfigure_opts.libsodiumdev headers to the dependency hints (apt / dnf / yum / pacman / zypper).Windows is unaffected — it uses prebuilt binaries that already bundle sodium and fetch PECL DLLs.
🤖 Generated with Claude Code