From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Invalid nar signature Date: Sun, 14 Dec 2014 21:22:36 -0500 Message-ID: <87zjapejo3.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0LJ1-0002ca-QV for guix-devel@gnu.org; Sun, 14 Dec 2014 21:22:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0LJ0-0006w8-Lj for guix-devel@gnu.org; Sun, 14 Dec 2014 21:22:39 -0500 Received: from mail.fsf.org ([208.118.235.13]:53214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0LJ0-0006vq-I1 for guix-devel@gnu.org; Sun, 14 Dec 2014 21:22:38 -0500 Received: from 209-6-40-86.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.40.86]:33073 helo=izanagi) by mail.fsf.org with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Y0LJ0-0003Ha-8E for guix-devel@gnu.org; Sun, 14 Dec 2014 21:22:38 -0500 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: guix-devel@gnu.org Hello everyone, While working on a new guix command, called 'guix publish', I've run into a snag. The archives I've exported via export-paths in the (guix store) module are rejected by 'guix substitute-binary' due to the nar signature being invalid. The signature is a string containing "nix-archive-1" at the head of the file. I can clearly see that text there, but the read-string operation that happens in the restore-file procedure in (guix serialization) says otherwise. The output of the following code in the context of the (guix serialization) module is "\r", it should be "nix-archive-1": (with-input-from-file "some-nar-file" (lambda () (read-string (current-input-port)))) Does anyone know what I'm missing here? Thanks in advance. -- David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate