Hi Andrius, [email protected], on 2020-05-20 06:24:47 +0300: > On 2020-05-19 23:01, Étienne Mollier wrote: > > For what it's worth, looking at the C code embeded into the Perl > > modules, this seems to be the result of a swig wrapping. I'm a > > bit unsure how the relinking is supposed to occur in that kind > > of cases (maybe it's not too hard, I just haven't dived into > > this sort of thing yet). But yes, I understand that avoiding > > convenience copies in the source code is definitely wanted by > > the Debian Policy. > > Swig wrappers could (and, in my understanding of Debian policies of > rebuilding things from source, should) be regenerated from Cephes.i file.
It makes sense. In that particular case though, after a bit of
reading and quite some testing, the resulting Cephes.pm
regenerated by swig fails the build time testing. I don't
exclude this is caused by a mishandling of mine with swig.
Here is the kind of command I was considering in d/rules:
swig -perl5 -module Math::Cephes -I$(CURDIR)libmd/ \
-o $(CURDIR)/lib/Math/Cephes.pm Cephes.i
But I'm afraid to suspect manual modifications in Cephes.pm.
Maybe I'll leave these files as such for the moment.
Anyway, thanks for the pointer!
I believe I learned something useful with swig.
Kind Regards,
--
Étienne Mollier <[email protected]>
Fingerprint: 5ab1 4edf 63bb ccff 8b54 2fa9 59da 56fe fff3 882d
Help find cures against the Covid-19 ! Give CPU cycles:
* Rosetta@home: https://boinc.bakerlab.org/rosetta/
* Folding@home: https://foldingathome.org/
signature.asc
Description: PGP signature

