Re: libcrypt-nacl-sodium-perl

gregor herrmann <[email protected]> Sun, 5 Oct 2025 19:00:30 +0200
Newsgroups gmane.linux.debian.devel.perl
Message-ID <[email protected]>
------------=_1759683636-10014-13
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, 06 Oct 2025 00:12:03 +1300, Andrew Ruthven wrote:

debian-devel -> debian-perl

>On Sun, 2025-10-05 at 21:59 +1100, Russell Coker wrote:
>> I'm in the process of creating a package libcrypt-nacl-sodium-perl which
>> depends on it (part of the dependency chain for matrixtool).
>>
>> Below are the error messages from trying to build it.=A0 What is this
>> libsodium.a that it's expecting?=A0 The libalien-sodium-perl package doe=
sn't
>> have any source files from a compiled language.=A0 The above URLs have my
>> work
>> in progress and the cpan page.
>
>Looking at
>https://metacpan.org/release/CAPOEIRAB/Alien-Sodium-2.000/source/lib/Alien=
/Sodium.pm
>is says it wraps libsodium from https://doc.libsodium.org/ . The good news
>is that libsodium is already in Debian, perhaps try adding libsodium23 as a
>dependency and maybe libsodium-dev as a build-dep?

Also, we often get away with ignoring the Alien::something=20
requirement and patching the upstream build system instead (and=20
B-D-ing on the -dev package of course).

Looking at https://metacpan.org/release/AJGB/Crypt-NaCl-Sodium-1.0.8.0/sour=
ce/Makefile.PL=20
Alien::Sodium seems to be optional anyway, the Makefile.PL just needs=20
a -L and -I option.

(Instead of manually crafting -L and -I it might be nicer to use=20
ExtUtils::PkgConfig in Makefile.PL.)

Cheers,
gregor

--=20
  .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian=
.org
  : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 =
AA06
  `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Eu=
rope
    `-=20=20=20

------------=_1759683636-10014-13
Content-Type: application/pgp-signature; name="signature.asc"
Content-Disposition: inline; filename="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: Digital Signature

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

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmjipDVfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgYIjA/7BrQiiRLd/kgCjanRasus6+P46FwzGrgQvxsb7DW8LJr8OcUUYHaqW4+L
fmArAO8u0S1HQQbPjwpCS+I9PXcukbIA7GzBF+8teLk9rU+xdj8sF8Z7a7QHWVvc
E/EtT0cEvCj1Xwdo7Z5kQynDVBrunllBEFG993fVkAvyyfFj/QOMvEAnJJD0PTY2
11WOv90G3Tyy1qhy+3kyuR5LC9mX6FRxr+mSAsLwfBdokB3QOBMyiTXz+9URFU70
X32crxh+YCL9Gl5U0rL1FH+n3HETv/FaQ1N58zP5oUAh3ytRDqxj/ykgUjTIDT9h
BYoBl2O45GhB238Nr3Lk6k8qE1pStMdODGtWZg7n8hJa1G2dBHXUM2R1zV67mYLg
YUcmJXItW0S6N+7f1gjRCy2nj3WZb82vuMvC+yTH/pYGacD5i81SNnrbjREh47DQ
HTFjaVB8IIQFyMXqKY8JS4KTNgOtbGdX/xqnvsSYk0jgnwshWvBfDbtZB/LdAtcO
VmCmiTMw6VWNEwAzrlqykKed13pYRtvjiip+VXehFpP6zK7WWGdfx6MOnNFN+7ih
xgidsL4uBOUC9tRaC1Sl0QI3xp0gY9ype1YMFut5aVaE/ByASuGbR/WKQbCdM33W
Hj/EkFFBzBsAI7bmH+0jC7w5Yb2Fh/jLuic1Yjo2ZQpEiolJvQ4=
=gmQo
-----END PGP SIGNATURE-----

------------=_1759683636-10014-13--