@@ -2964,57 +2964,17 @@ async function installPackage(packageName: string, packageSpec: string, installP
2964
2964
catch ( error ) {
2965
2965
if ( config . verbose ) {
2966
2966
console . log ( `⚠️ Binary download failed: ${ error instanceof Error ? error . message : String ( error ) } ` )
2967
- console . log ( '🔄 Falling back to source build...' )
2968
2967
}
2969
2968
}
2970
2969
2971
- // Fallback to source build if binary download fails
2972
- if ( config . verbose ) {
2973
- console . warn ( `Building PHP from source for ${ name } ` )
2974
- }
2975
- else {
2976
- // Show clean progress like other packages
2977
- console . log ( '🔄 Installing PHP from source...' )
2978
- }
2979
-
2980
2970
// CRITICAL: Install ALL PHP dependencies FIRST before building
2981
2971
if ( config . verbose ) {
2982
2972
console . log ( '🔧 Setting up build environment for PHP...' )
2983
2973
}
2984
2974
2985
- // Install all PHP dependencies from ts-pkgx (includes build tools and runtime deps)
2986
- // PHP build dependencies are no longer needed with precompiled binaries
2987
-
2988
- if ( config . verbose ) {
2989
- console . log ( '✅ All PHP dependencies ready - starting build...' )
2990
- }
2991
2975
throw new Error ( 'Source builds are no longer supported. Use precompiled binaries instead.' )
2992
2976
}
2993
2977
2994
- // Special handling for zlib - disabled, let ts-pkgx handle it
2995
- // if (name === 'zlib' || domain === 'zlib.net') {
2996
- // if (config.verbose) {
2997
- // console.warn(`Building zlib from source to fix broken dependencies for ${name}`)
2998
- // }
2999
- // return await buildZlibFromSource(installPath, requestedVersion)
3000
- // }
3001
-
3002
- // Special handling for libpng - disabled, let ts-pkgx handle it
3003
- // if (name === 'libpng' || domain === 'libpng.org') {
3004
- // if (config.verbose) {
3005
- // console.warn(`Building libpng from source to fix broken package for ${name}`)
3006
- // }
3007
- // return await buildLibpngFromSource(installPath, requestedVersion)
3008
- // }
3009
-
3010
- // Special handling for GMP - disabled, let ts-pkgx handle it
3011
- // if (name === 'gmp' || domain === 'gnu.org/gmp') {
3012
- // if (config.verbose) {
3013
- // console.warn(`Building GMP from source to fix broken package for ${name}`)
3014
- // }
3015
- // return await buildGmpFromSource(installPath, requestedVersion)
3016
- // }
3017
-
3018
2978
if ( config . verbose ) {
3019
2979
console . warn ( `Resolved ${ name } to domain: ${ domain } ` )
3020
2980
}
0 commit comments