@@ -297,6 +297,22 @@ jobs:
297
297
else
298
298
echo "Launchpad readline not found, using system readline"
299
299
fi
300
+
301
+ # Find the launchpad bzip2 installation
302
+ LAUNCHPAD_BZIP2_DIR="$HOME/.local/share/launchpad/global/sourceware.org/bzip2"
303
+ if [[ -d "$LAUNCHPAD_BZIP2_DIR" ]]; then
304
+ # Find the latest version
305
+ BZIP2_VERSION=$(ls "$LAUNCHPAD_BZIP2_DIR" | grep "^v" | sort -V | tail -1)
306
+ if [[ -n "$BZIP2_VERSION" ]]; then
307
+ BZIP2_PATH="$LAUNCHPAD_BZIP2_DIR/$BZIP2_VERSION"
308
+ echo "Found launchpad bzip2 at: $BZIP2_PATH"
309
+ EXTRA_CONFIG="$EXTRA_CONFIG --with-bz2=$BZIP2_PATH"
310
+ else
311
+ echo "No bzip2 version found in $LAUNCHPAD_BZIP2_DIR"
312
+ fi
313
+ else
314
+ echo "Launchpad bzip2 not found, using system bzip2"
315
+ fi
300
316
fi
301
317
302
318
echo "Configuring PHP with:"
@@ -333,9 +349,9 @@ jobs:
333
349
pkg-config --exists libxml-2.0 && echo "✓ libxml-2.0 found" || echo "✗ libxml-2.0 not found"
334
350
pkg-config --exists sqlite3 && echo "✓ sqlite3 found" || echo "✗ sqlite3 not found"
335
351
336
- # Ensure launchpad iconv and readline are properly linked and available
352
+ # Ensure launchpad iconv, readline, and bzip2 are properly linked and available
337
353
if [[ "${{ matrix.platform }}" != "darwin" ]]; then
338
- echo "Ensuring launchpad iconv and readline are properly configured..."
354
+ echo "Ensuring launchpad iconv, readline, and bzip2 are properly configured..."
339
355
# Check if launchpad iconv is available and working
340
356
if command -v iconv >/dev/null 2>&1; then
341
357
echo "✓ iconv found in PATH"
@@ -363,6 +379,26 @@ jobs:
363
379
fi
364
380
fi
365
381
fi
382
+
383
+ # Check if bzip2 headers are available
384
+ if [[ -f "/usr/include/bzlib.h" ]] || [[ -f "/usr/local/include/bzlib.h" ]]; then
385
+ echo "✓ bzlib.h found in system include paths"
386
+ else
387
+ echo "⚠️ bzlib.h not found in system include paths"
388
+ # Check if we can find it in launchpad paths
389
+ LAUNCHPAD_BZIP2_DIR="$HOME/.local/share/launchpad/global/sourceware.org/bzip2"
390
+ if [[ -d "$LAUNCHPAD_BZIP2_DIR" ]]; then
391
+ BZIP2_VERSION=$(ls "$LAUNCHPAD_BZIP2_DIR" | grep "^v" | sort -V | tail -1)
392
+ if [[ -n "$BZIP2_VERSION" ]]; then
393
+ BZIP2_INCLUDE="$LAUNCHPAD_BZIP2_DIR/$BZIP2_VERSION/include"
394
+ if [[ -f "$BZIP2_INCLUDE/bzlib.h" ]]; then
395
+ echo "✓ bzlib.h found in launchpad: $BZIP2_INCLUDE/bzlib.h"
396
+ else
397
+ echo "⚠️ bzlib.h not found in launchpad include path"
398
+ fi
399
+ fi
400
+ fi
401
+ fi
366
402
fi
367
403
368
404
./configure \
0 commit comments