Skip to content

Commit bb157ef

Browse files
committed
chore: wip
1 parent 1cacacc commit bb157ef

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

.github/workflows/build-binaries.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,22 @@ jobs:
297297
else
298298
echo "Launchpad readline not found, using system readline"
299299
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
300316
fi
301317
302318
echo "Configuring PHP with:"
@@ -333,9 +349,9 @@ jobs:
333349
pkg-config --exists libxml-2.0 && echo "✓ libxml-2.0 found" || echo "✗ libxml-2.0 not found"
334350
pkg-config --exists sqlite3 && echo "✓ sqlite3 found" || echo "✗ sqlite3 not found"
335351
336-
# Ensure launchpad iconv and readline are properly linked and available
352+
# Ensure launchpad iconv, readline, and bzip2 are properly linked and available
337353
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..."
339355
# Check if launchpad iconv is available and working
340356
if command -v iconv >/dev/null 2>&1; then
341357
echo "✓ iconv found in PATH"
@@ -363,6 +379,26 @@ jobs:
363379
fi
364380
fi
365381
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
366402
fi
367403
368404
./configure \

0 commit comments

Comments
 (0)