#988999 cython3: Avoid including absolute paths

Package:
cython3
Source:
cython
Description:
C-Extensions for Python 3
Submitter:
Samuel Thibault
Date:
2026-11-10 16:17:04 UTC
Severity:
normal
#988999#5
Date:
2021-05-22 20:38:17 UTC
From:
To:
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

#988999#10
Date:
2021-05-22 20:47:21 UTC
From:
To:
Samuel Thibault, le sam. 22 mai 2021 22:38:17 +0200, a ecrit:

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

#988999#17
Date:
2026-11-10 16:15:24 UTC
From:
To:
On Sat, 22 May 2021 22:38:17 +0200 Samuel Thibault <sthibault@debian.org> wrote:
 > 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.

This specific issue has been fixed. The upstream issue still needs more investigation,
yet that is out of the scope of Debian's bug. Closing this bug report accordingly.

Thanks,
Boyuan Yang