Comment 42 for bug 2002043

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Attached is my manual verification steps of testing the proposed package for Jammy.

Package version 2.7.18-13ubuntu1.2

Part of the verification process is to ensure no regressions happen in no-change rebuilds of the current wheels compiled with python2.7 in our archives. It was determined that the best way to do this was to make this feature opt-in, so a test is performed to ensure that functionally no changes happen for no-change rebuilds.

This was tested in this PPA - https://launchpad.net/~mitchdz/+archive/ubuntu/python-stdlib-extensions-py2-opt

Observe the build logs and see

The specific build log for Jammy is https://launchpadlibrarian.net/714574054/buildlog_ubuntu-jammy-amd64.python-stdlib-extensions_2.7.18-1ubuntu1~jammy1_BUILDING.txt.gz

Where you will see the following lines showing the workaround is not used:

cd 2.7 && python2.7 setup.py build
running build
running build_ext
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
building 'gdbm' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/Modules
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -I/usr/include/python2.7 -c Modules/gdbmmodule.c -o build/temp.linux-x86_64-2.7/Modules/gdbmmodule.o
creating build/lib.linux-x86_64-2.7
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC build/temp.linux-x86_64-2.7/Modules/gdbmmodule.o -lgdbm -o build/lib.linux-x86_64-2.7/gdbm.so
building '_tkinter' extension

Notice the lack of the OPT flags (-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes) in the compiletime flags.