Bug#988999: cython3: Avoid including absolute paths

2021-05-22 Thread Samuel Thibault
Samuel Thibault, le sam. 22 mai 2021 22:38:17 +0200, a ecrit:
> But in the generated brlapi.auto.c file we can read:
> 
> static const char __pyx_k_tmp_brltty_6_3_dfsg_Bindings_Py[] = 
> "/tmp/brltty-6.3+dfsg/Bindings/Python/brlapi.pyx";
> 
> i.e. the relative ../../../Bindings/Python/brlapi.pyx got turned into
> absolute path /tmp/brltty-6.3+dfsg/Bindings/Python/brlapi.pyx, which is
> undesirable for reproducible builds.

Also not the variable name __pyx_k_tmp_brltty_6_3_dfsg_Bindings_Py, but
also

static PyObject *__pyx_kp_s_tmp_brltty_6_3_dfsg_Bindings_Py;
  {&__pyx_kp_s_tmp_brltty_6_3_dfsg_Bindings_Py, 
__pyx_k_tmp_brltty_6_3_dfsg_Bindings_Py, 
sizeof(__pyx_k_tmp_brltty_6_3_dfsg_Bindings_Py), 0, 0, 1, 0},
  etc.

which end up in the debugging symbols informations.

Samuel



Bug#988999: cython3: Avoid including absolute paths

2021-05-22 Thread Samuel Thibault
Package: cython3
Version: 0.29.21-3+b1
Severity: normal
Affects: brltty

Hello,

The brltty package build is currently non-reproducible only because of
the python bindings build. Notably, we can see in the build log:

"/usr/bin/cython3" -3 -I. -o brlapi.auto.c ../../../Bindings/Python/brlapi.pyx

But in the generated brlapi.auto.c file we can read:

static const char __pyx_k_tmp_brltty_6_3_dfsg_Bindings_Py[] = 
"/tmp/brltty-6.3+dfsg/Bindings/Python/brlapi.pyx";

i.e. the relative ../../../Bindings/Python/brlapi.pyx got turned into
absolute path /tmp/brltty-6.3+dfsg/Bindings/Python/brlapi.pyx, which is
undesirable for reproducible builds.

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 cython3 depends on:
ii  libc62.31-12
ii  python3  3.9.2-3

Versions of packages cython3 recommends:
ii  gcc  4:10.2.1-1
ii  python3-dev  3.9.2-3

Versions of packages cython3 suggests:
pn  cython-doc  

-- no debconf information

-- 
Samuel
 can you guys see what I type?
 no, raize
 How do I set it up so you can see it?