Skip to content

Conversation

alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Jul 18, 2025

Fix #1739

@henderkes
Copy link
Contributor

Oh this is great. I have full support for building for alpine at spc-packages by using bin/spp all --target="native-native-musl -dynamic". But I don't have any logic to create debian or apk packages due to the three different layouts.

@henderkes
Copy link
Contributor

FYI, fpm also supports .apk images, so you wouldn't have to go the manual way. It's a bit simpler to use fpm for all three, rather than fpm for two but native abuild for the last.

@alexandre-daubois
Copy link
Member Author

Oh that's good to know, I'll have a look at it. Thanks for the hint!

@alexandre-daubois alexandre-daubois force-pushed the os-packages branch 2 times, most recently from 37c66d1 to 6150abd Compare July 21, 2025 09:50
@alexandre-daubois alexandre-daubois marked this pull request as ready for review July 21, 2025 13:40
@alexandre-daubois alexandre-daubois force-pushed the os-packages branch 3 times, most recently from ce9a222 to 74c1d33 Compare July 21, 2025 13:57
@alexandre-daubois
Copy link
Member Author

Should be ready for review now. Here is what the artifact from the CI contains:

Capture d’écran 2025-07-21 à 16 01 28

@henderkes
Copy link
Contributor

henderkes commented Jul 21, 2025

I believe the musl version we release in a package should be dynamically linked against libc, so users can install extensions.

The zig branch @ static-php-cli implements this with zig cc. It should be merged within the week.

@alexandre-daubois
Copy link
Member Author

For the record: crazywhalecc/static-php-cli#806

@henderkes
Copy link
Contributor

Yeah, it's ready, but I unfortunately discovered a performance degradation of clang (and in turn zig) over gcc, because of missing global register support.

This makes for ~25% performance and is quite noticeable. I unfortunately do not have any plans to add -dynamic support to the musl toolchain, so I think the only way this could be achieved is compiling on alpine with CC="gcc -dynamic" (or a wrapper script for that, because many libraries don't like when CC has a space).

@alexandre-daubois alexandre-daubois force-pushed the os-packages branch 3 times, most recently from bf5ebeb to 38c0204 Compare August 4, 2025 09:07
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.

Create .rpm, .deb and .apk packages.

2 participants