Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add limited ustack helper to python 3.12 #3503

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions build/python312/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ test_dtrace() {
}

multi_build() {
typeset arch="$1"

logcmd rsync -ac --delete $TMPDIR/$BUILDDIR{,.debug}/ \
|| logerr "Failed to create debug copy of build directory"

Expand All @@ -196,7 +198,8 @@ multi_build() {
[ -n "$FLAVOR" -a "$FLAVOR" != "debug" ] && return

note -n "Building debug $PROG"
CONFIGURE_OPTS=${CONFIGURE_OPTS/enable-optimizations/disable-optimizations}
CONFIGURE_OPTS[$arch]=${CONFIGURE_OPTS[$arch]/enable-optimizations/disable-optimizations}
CFLAGS[$arch]+=" -fno-reorder-functions -fno-clone-functions"
pushd $TMPDIR/$BUILDDIR.debug >/dev/null
patch_file patches ustack.patch
popd >/dev/null
Expand Down Expand Up @@ -236,11 +239,10 @@ download_source $PROG $PROG $VER
patch_source
prep_build autoconf -autoreconf
if [[ $BUILDARCH = *amd64* ]]; then
# multi build is currently disabled until the ustack helper patch is ready
build #multi_build
multi_build "$BUILDARCH"
launch_testsuite
test_dtrace
make_package #merged_package
merged_package
else
build
make_package
Expand Down
3 changes: 3 additions & 0 deletions build/python312/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ test-processgroup.patch
test-tarfile.patch
test-zipfile.patch
revert-makedirs.patch
#
# Do not add ustack.patch to this file, it is used to build the debug
# variant of python, see build.sh
Loading
Loading