[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libcrypt-nacl-sodium-perl



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.  What is this
libsodium.a that it's expecting?  The libalien-sodium-perl package doesn't
have any source files from a compiled language.  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 requirement and patching the upstream build system instead (and B-D-ing on the -dev package of course).

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

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

Cheers,
gregor

--
 .''`.  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 Europe
`-

Attachment: signature.asc
Description: Digital Signature


Reply to: