Your message dated Fri, 03 Sep 2021 06:49:04 +0000
with message-id <[email protected]>
and subject line Bug#989000: fixed in python3.9 3.9.7-2
has caused the Debian Bug report #989000,
regarding distutils: missing CFLAGS/LDFLAGS from environment
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
989000: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989000
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3.9
Version: 3.9.2-1
Severity: normal
Affects: brltty

Hello,

The brltty package build is currently unreproducible because the build
path leaks into its Python bindings because distutils does not take
CFLAGS (and not LDFLAGS either) from the environment.

That can be seen in the brltty build log (as of current git version that
enables verbose log):

/tmp/brltty-6.3+dfsg$ dpkg-buildpackage
[...]
set -- --verbose build --build-temp .; \
[ "linux-gnu" != "mingw32" ] || set -- "${@}" --compiler mingw32; \
"/usr/bin/python3.9" ./setup.py "${@}"
running build
running build_ext
building 'brlapi' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g 
-fwrapv -O2 -Wall -g 
-ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g 
-ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -I. -I../../../Bindings/Python -I../../Programs 
-I../../../Programs -I../../ -I../../../ -I/usr/include/python3.9 -c 
../../../Bindings/Python/bindings.c -o ./../../../Bindings/Python/bindings.o 
-Wno-parentheses -Wno-unused -fno-strict-aliasing -U_POSIX_C_SOURCE 
-U_XOPEN_SOURCE
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g 
-fwrapv -O2 -Wall -g 
-ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g 
-ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -I. -I../../../Bindings/Python -I../../Programs 
-I../../../Programs -I../../ -I../../../ -I/usr/include/python3.9 -c 
brlapi.auto.c -o ./brlapi.auto.o -Wno-parentheses -Wno-unused 
-fno-strict-aliasing -U_POSIX_C_SOURCE -U_XOPEN_SOURCE
creating build
creating build/lib.linux-x86_64-3.9
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
-Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -fwrapv -O2 -g 
-ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 ./../../../Bindings/Python/bindings.o ./brlapi.auto.o 
-L./../../Programs -lbrlapi -lpthread -o 
build/lib.linux-x86_64-3.9/brlapi.cpython-39-x86_64-linux-gnu.so

I.e. distutils passes to gcc the flags it got during python3.9 build
(which included -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=.)
but it does not include the flags it got from the environment (which
includes -ffile-prefix-map=/tmp/brltty-6.3+dfsg=.), and as a result the
generated .o and .so files include the build path /tmp/brltty-6.3+dfsg.


blhc also notices that LDFLAGS is not getting included:

https://salsa.debian.org/a11y-team/brltty/-/jobs/1660079

2438:LDFLAGS missing (-Wl,-z,now): x86_64-linux-gnu-gcc -pthread -shared 
-Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g 
-fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 ./../../../Bindings/Python/bindings.o ./brlapi.auto.o 
-L./../../Programs -lbrlapi -lpthread -o 
build/lib.linux-x86_64-3.9/brlapi.cpython-39-x86_64-linux-gnu.so

Samuel

-- System Information:
Debian Release: 11.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 
'proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 
'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), 
(1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.12.0 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3.9 depends on:
ii  libpython3.9-stdlib  3.9.2-1
ii  media-types          4.0.0
ii  mime-support         3.66
ii  python3.9-minimal    3.9.2-1

python3.9 recommends no packages.

Versions of packages python3.9 suggests:
ii  binutils        2.35.2-2
pn  python3.9-doc   <none>
ii  python3.9-venv  3.9.2-1

-- no debconf information

-- 
Samuel
 Profitant de cette occasion, vous serait-il possible de rebooter 
 aussi Modérator et son petit copain qui gère les ressources de 
 download ?
 -+- OB in NPC : Apprendre à flasher son personnel -+-

--- End Message ---
--- Begin Message ---
Source: python3.9
Source-Version: 3.9.7-2
Done: Matthias Klose <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python3.9, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated python3.9 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 03 Sep 2021 08:18:44 +0200
Source: python3.9
Architecture: source
Version: 3.9.7-2
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 989000 991110 992091 992669 992775 993413
Changes:
 python3.9 (3.9.7-2) unstable; urgency=medium
 .
   * Fix CFLAGS in the python3.x-config scripts. Closes: #992669, #989000.
   * Support arc-linux-gnu in the multiarch header. Closes: #992091.
   * Don't run the test_concurrent_futures test on alpha and sparc64.
     Closes: #991110.
   * Fix path to mkdir on a unified-/usr system. Closes: #992775.
   * Use command -v instead of which in shell scripts. Closes: #993413.
Checksums-Sha1:
 17ef1d15102029c66744acb83eac93c1bfdb4165 3493 python3.9_3.9.7-2.dsc
 f011a4231b2d6d51af4f70f5e838491a9c6ce38c 212164 python3.9_3.9.7-2.debian.tar.xz
 bb3310ec52ac37947e13658074daa864dda59b15 10182 
python3.9_3.9.7-2_source.buildinfo
Checksums-Sha256:
 7b14f5d79bd3a33ff2ffac479655416b139222a18e7e93b6afe6b69b4821ec4b 3493 
python3.9_3.9.7-2.dsc
 80e2be75e2b1e7553a828a8c45d27852e4b054375875b7408e99669e75e3c937 212164 
python3.9_3.9.7-2.debian.tar.xz
 7e9345550c51e9a6a7bac60ef49831fafa0422e7bcbaf74915f10375aca5c741 10182 
python3.9_3.9.7-2_source.buildinfo
Files:
 15f1c468a2eb2d25e6157efaf69eb8b0 3493 python optional python3.9_3.9.7-2.dsc
 751091f441daa0a73fbaddff5a9a2875 212164 python optional 
python3.9_3.9.7-2.debian.tar.xz
 8a40b4a4126fd3e8fff876403d3d2803 10182 python optional 
python3.9_3.9.7-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmExwG8QHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9QGnEACjGY7FIq519X9/41eagYOofuSWhuvEW5hn
5MaS+TE09oKuUoJEXZ8xqwxI+cyUOW3jtNNC0kfqWuoTPrvMWNbhZpeLZIIYCn8Q
+dHOsc8zmjl0U2uyFjF2EIWk9JoE/RJswjRueeP1lAusZ2lY6fpLXkihKldizOmj
1gNlEDSxjDPeKFvD625ijN92yZBi3qM4yqxZH1MdUPRLYEkVRxHv8FOjvUhebxhp
EvIOVCQEJD4pi5KzrAsDYaGpaw6dfuqDmOyDw2l7WR1oev6DfjGSJh18O5kswBkb
aVCLt2Zpm24HTyw0KAkX7gh8WO2JKN1nNMqWDSsN8w5XM7U988yLPFL6XhpARN3V
bgL5QmiBNtjQwA1NiszzDrw+CHkwMdnnB1LZG+hFZpsyOrNPHGGBuqKE+ZoUfcz4
w+tVzoZgvh5eC2CVVCTikvQQjeOAi8Hqs/WM8T4n6gBY2GO21Pxhm9C8OlbcIk7Y
TCc7uCqa8ClRoFq/S+P5F6bDEQo9RYwppWTJVtixS0xOTPfaab7pPa4HIQ4+7VLq
T4g4SIPUIex5BgH7nNlF8M/I7xaXGRepzyM+yFgcUAU2InvRvefbqG7+pPOlDG8v
p9mzVV7sU1NFf0Ocxhf8N7DjZ5G9CdFW+kkUo9AVvMYO0VAESKSOSYHkNC/Ryq5B
NWKnv2vH1Q==
=QBOs
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to