From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: Add libsodium Date: Thu, 26 Jun 2014 14:48:28 +0200 Message-ID: <87a98zu99f.fsf@gnu.org> References: <87zjh0tsfu.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X096R-0007gD-KX for guix-devel@gnu.org; Thu, 26 Jun 2014 08:48:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X096L-0007H7-Tx for guix-devel@gnu.org; Thu, 26 Jun 2014 08:48:35 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:46914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X096L-0007H3-GU for guix-devel@gnu.org; Thu, 26 Jun 2014 08:48:29 -0400 In-Reply-To: <87zjh0tsfu.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> (David Thompson's message of "Wed, 25 Jun 2014 20:39:33 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: David Thompson Cc: guix-devel@gnu.org David Thompson skribis: > From 873dffc9dc892ad252a33b2b27f28d41573d6bf7 Mon Sep 17 00:00:00 2001 > From: David Thompson > Date: Wed, 25 Jun 2014 20:32:23 -0400 > Subject: [PATCH] gnu: Add libsodium. > > * gnu-system.am (GNU_SYSTEM_MODULES): Add crypto.scm. > * gnu/packages/crypto.scm: New file. Looks good to me. However, the web page reads: In order to pick the fastest working implementation of each primitive, NaCl performs tests and benchmarks at compile-time. Unfortunately, the resulting library is not guaranteed to work on different hardware. Which means that Hydra would end up building a version that uses the specific ISA extensions that happened to be available on the build machine, which in turn might be unavailable on the user=E2=80=99s machine. Is there a way to disable the compile-time magic, and instead let libsodium make the choice at run time? GMP has --enable-fat for that purpose. Thanks, Ludo=E2=80=99. PS: Apparently this NaCl is unrelated to Google=E2=80=99s NaCl sandboxing thing; terrible!