Attached is my manual verification steps of testing the proposed package for Focal.
Package version tested: 2.7.18-1~20.04.4
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.
Attached is my manual verification steps of testing the proposed package for Focal.
Package version tested: 2.7.18-1~20.04.4
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 Focal is https:/ /launchpadlibra rian.net/ 714574260/ buildlog_ ubuntu- focal-amd64. python- stdlib- extensions_ 2.7.18- 1ubuntu1~ focal1_ BUILDING. txt.gz
Where you will see the following lines showing the workaround is not used:
cd 2.7 && python2.7 setup.py build _UBUNTU_ CFLAGS_ WORKAROUND in your /launchpad. net/bugs/ 2002043 for further context. _UBUNTU_ CFLAGS_ WORKAROUND not detected. linux-x86_ 64-2.7 linux-x86_ 64-2.7/ Modules linux-gnu- gcc -pthread -fno-strict- aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-CxOYiX/ python2. 7-2.7.18= . -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 linux-x86_ 64-2.7 linux-gnu- gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic- functions -Wl,-Bsymbolic- functions -Wl,-z,relro -fno-strict- aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-CxOYiX/ python2. 7-2.7.18= . -fstack- protector- strong -Wformat -Werror= format- security -Wl,-Bsymbolic- functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-CxOYiX/ python2. 7-2.7.18= . -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
running build
running build_ext
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043
environment. See LP: https:/
APPLY_LP2002043
building 'gdbm' extension
creating build
creating build/temp.
creating build/temp.
x86_64-
creating build/lib.
x86_64-
building '_tkinter' extension
Notice the lack of the OPT flags (-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict- prototypes) in the compile time flags for the module.