#988999 cython3: Avoid including absolute paths

Package:
cython3
Source:
cython
Description:
C-Extensions for Python 3
Submitter:
Samuel Thibault
Date:
2024-01-21 18:33: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