Skip to content

Commit

Permalink
Build manylinux wheels with debuginfod support
Browse files Browse the repository at this point in the history
Now that we call libdebuginfod ourselves and can link against it instead
of using dlopen, we can add it to our manylinux wheels.

Also explicitly configure a few other features we want enabled to make
sure we don't lose them.

Signed-off-by: Omar Sandoval <[email protected]>
  • Loading branch information
osandov committed Jan 31, 2025
1 parent 7dc474d commit 4dca429
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions scripts/build_manylinux_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ sed -i -e 's/mirrorlist/#mirrorlist/g' \

yum install -y \
bzip2-devel \
json-c-devel \
libcurl-devel \
libzstd-devel \
lzo-devel \
snappy-devel \
Expand All @@ -38,13 +40,7 @@ elfutils_url=https://sourceware.org/elfutils/ftp/$elfutils_version/elfutils-$elf
mkdir /tmp/elfutils
cd /tmp/elfutils
curl -L "$elfutils_url" | tar -xj --strip-components=1
# We don't bother with debuginfod support for a few reasons:
#
# 1. It depends on libcurl, which would pull in a bunch of transitive
# dependencies.
# 2. libdw loads libdebuginfod with dlopen(), which auditwheel misses.
# 3. drgn hasn't been tested with debuginfod.
./configure --disable-libdebuginfod --disable-debuginfod
./configure --enable-libdebuginfod --disable-debuginfod --with-zlib --with-bzlib --with-lzma --with-zstd
make -j$(($(nproc) + 1))
make install

Expand Down Expand Up @@ -85,7 +81,8 @@ build_for_python() {

for pybin in /opt/python/cp*/bin; do
if build_for_python "$pybin/python"; then
"$pybin/pip" wheel . --no-deps -w /tmp/wheels/
CONFIGURE_FLAGS="--with-debuginfod --disable-dlopen-debuginfod --with-libkdumpfile" \
"$pybin/pip" wheel . --no-deps -w /tmp/wheels/
fi
done

Expand Down

0 comments on commit 4dca429

Please sign in to comment.