From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 0/3] add c-ares and aria2 Date: Tue, 03 Nov 2015 14:35:07 +0100 Message-ID: <87d1vryzn8.fsf@gnu.org> References: <1446448523-27811-1-git-send-email-efraim@flashner.co.il> 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]:37258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztbk1-0004Dl-Ps for guix-devel@gnu.org; Tue, 03 Nov 2015 08:35:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ztbjy-00045E-J3 for guix-devel@gnu.org; Tue, 03 Nov 2015 08:35:13 -0500 In-Reply-To: <1446448523-27811-1-git-send-email-efraim@flashner.co.il> (Efraim Flashner's message of "Mon, 2 Nov 2015 09:15:20 +0200") 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: Efraim Flashner Cc: guix-devel@gnu.org Efraim Flashner skribis: > This patch has driven me crazy a bit. C-ares is a library for asynchronou= s DNS > lookups, and aria2 is a cli program to download multiple files/torrents > simultaneously, and also a git-annex dependency. C-ares builds without any > problems, but aria2 was a different story. The first problem is that the = tests > seem to need network connectivity, and it tries to access files outside t= he > build chroot. Disabling the tests was the easy part. It=E2=80=99s cheating! ;-) Could you investigate and see whether/how tests could run in the build environment? A common problem wrt. networking in host name lookups. In the build environment, only =E2=80=9Clocalhost=E2=80= =9D can be found. > The second problem was that pkg-config wouldn't find c-ares, so it > kept on building without it. In that case, I would do this: guix build -K aria2 # =E2=80=A6 build fails cd /tmp/nix-build*aria2* source environment-variables pkg-config c-ares --libs (Replace =E2=80=9Cc-ares=E2=80=9D with the name corresponding to the actual= .pc file provided by c-ares.) It might be that this command fails because of a missing dependency that the .pc file requires. Ludo=E2=80=99.