Skip to content

Commit ca83721

Browse files
godlygeekpablogsal
authored andcommitted
Upgrade from elfutils 0.189 to 0.193
Drop our patch for correctly handling core files with non-contiguous segments. This patch made it into the upstream 0.191 release. Work around some new warnings that appear when building `elfutils` on musl by setting `-Wno-error` in both `CFLAGS` and `CXXFLAGS`. While we're at it, standardize the flags used for building `elfutils` across `manylinux` and `musllinux`. Signed-off-by: Matt Wozniski <[email protected]>
1 parent af1ee80 commit ca83721

File tree

4 files changed

+7
-76
lines changed

4 files changed

+7
-76
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Elfutils build stage
22
FROM ubuntu:22.04 AS elfutils_builder
33
ARG DEBIAN_FRONTEND=noninteractive
4-
ENV VERS=0.189
4+
ENV VERS=0.193
55

66
# Install elfutils build dependencies
77
RUN apt-get update \
@@ -31,7 +31,7 @@ RUN apt-get update \
3131
&& cd /elfutils \
3232
&& curl https://sourceware.org/elfutils/ftp/$VERS/elfutils-$VERS.tar.bz2 > ./elfutils.tar.bz2 \
3333
&& tar -xf elfutils.tar.bz2 --strip-components 1 \
34-
&& CFLAGS='-w' ./configure --prefix=/usr/local --disable-nls --disable-debuginfod --enable-libdebuginfod=dummy --with-zstd \
34+
&& CFLAGS='-Wno-error -g -O3' CXXFLAGS='-Wno-error -g -O3' ./configure --disable-nls --enable-libdebuginfod=dummy --disable-debuginfod --with-zstd \
3535
&& make install
3636

3737
# Stage 2: Final stage

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ include README.md
1414
include src/pystack/py.typed
1515
include .bumpversion.cfg
1616
include .pre-commit-config.yaml
17-
include build_scripts/elfutils_contiguous_segments.diff
1817

1918
recursive-include src/pystack/_pystack *
2019
recursive-include src/pystack *.py

build_scripts/elfutils_contiguous_segments.diff

Lines changed: 0 additions & 66 deletions
This file was deleted.

pyproject.toml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@ skip = "*-musllinux_aarch64"
5151

5252
[tool.cibuildwheel.linux]
5353
before-all = [
54-
"yum install -y python-devel-2.7.5",
54+
"yum install -y python-devel-2.7.5 libzstd-devel",
5555
"cd /",
56-
"VERS=0.189",
56+
"VERS=0.193",
5757
"curl https://sourceware.org/elfutils/ftp/$VERS/elfutils-$VERS.tar.bz2 > ./elfutils.tar.bz2",
5858
"tar -xf elfutils.tar.bz2",
5959
"cd elfutils-$VERS",
60-
"patch libdwfl/dwfl_segment_report_module.c < {package}/build_scripts/elfutils_contiguous_segments.diff",
61-
"CFLAGS='-w' ./configure --enable-libdebuginfod=dummy --disable-debuginfod --prefix=/usr --libdir=/usr/lib64",
60+
"CFLAGS='-Wno-error -g -O3' CXXFLAGS='-Wno-error -g -O3' ./configure --disable-nls --enable-libdebuginfod=dummy --disable-debuginfod --with-zstd",
6261
"make install"
6362
]
6463

@@ -76,12 +75,11 @@ before-all = [
7675
# https://git.alpinelinux.org/aports/tree/main/elfutils/musl-macros.patch
7776
"cd /",
7877
"apk add --update argp-standalone bison bsd-compat-headers bzip2-dev flex-dev libtool linux-headers musl-fts-dev musl-libintl musl-obstack-dev xz-dev zlib-dev zstd-dev",
79-
"VERS=0.189",
78+
"VERS=0.193",
8079
"curl https://sourceware.org/elfutils/ftp/$VERS/elfutils-$VERS.tar.bz2 > ./elfutils.tar.bz2",
8180
"tar -xf elfutils.tar.bz2",
8281
"cd elfutils-$VERS",
83-
"patch libdwfl/dwfl_segment_report_module.c < {package}/build_scripts/elfutils_contiguous_segments.diff",
84-
"CFLAGS='-w -DFNM_EXTMATCH=0' ./configure --prefix=/usr --disable-nls --disable-libdebuginfod --disable-debuginfod --with-zstd",
82+
"CFLAGS='-Wno-error -DFNM_EXTMATCH=0 -g -O3' CXXFLAGS='-Wno-error -g -O3' ./configure --disable-nls --enable-libdebuginfod=dummy --disable-debuginfod --with-zstd",
8583
"make install",
8684

8785
# Reinstall libintl, as the Python interpreter requires it

0 commit comments

Comments
 (0)