Received: (at submit) by debbugs.gnu.org; 26 Sep 2019 16:02:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 26 12:02:00 2019 Received: from localhost ([127.0.0.1]:44454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1iDWDQ-0000n8-2f for submit <at> debbugs.gnu.org; Thu, 26 Sep 2019 12:02:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:60599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <h.goebel@HIDDEN>) id 1iDWDO-0000le-5a for submit <at> debbugs.gnu.org; Thu, 26 Sep 2019 12:01:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34255) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <h.goebel@HIDDEN>) id 1iDWDF-0003uk-5u for bug-guix@HIDDEN; Thu, 26 Sep 2019 12:01:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <h.goebel@HIDDEN>) id 1iDWDD-000302-4Q for bug-guix@HIDDEN; Thu, 26 Sep 2019 12:01:48 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:53985) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <h.goebel@HIDDEN>) id 1iDWDC-0002ss-VL for bug-guix@HIDDEN; Thu, 26 Sep 2019 12:01:47 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46fKRp0nSHz1rKJp for <bug-guix@HIDDEN>; Thu, 26 Sep 2019 18:01:42 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46fKRp0gKPz1qqkL for <bug-guix@HIDDEN>; Thu, 26 Sep 2019 18:01:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ObEvKQvkU26F for <bug-guix@HIDDEN>; Thu, 26 Sep 2019 18:01:41 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-55-104.dynamic.mnet-online.de [188.174.55.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <bug-guix@HIDDEN>; Thu, 26 Sep 2019 18:01:41 +0200 (CEST) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 6A81E60084 for <bug-guix@HIDDEN>; Thu, 26 Sep 2019 18:04:24 +0200 (CEST) To: bug-guix <bug-guix@HIDDEN> From: Hartmut Goebel <h.goebel@HIDDEN> Openpgp: preference=signencrypt Organization: crazy-compilers.com Subject: Print hint if build fails due to invalid character in package source base name Message-ID: <80714a9a-b70d-8810-0f1b-606b8a6b8743@HIDDEN> Date: Thu, 26 Sep 2019 18:01:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.18.0.9 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Followup to <http://issues.guix.gnu.org/issue/26175#4>: guix shall print a hint if building fails due to the package source base name containing a character invalid in a store filename (e.g. "@" or "%")= . Currently, when building such a package, one gets an error message like: guix build: error: invalid character `@' in name `kde-l10n-ca@HIDDEN' guix build should catch this error and print a hint like: You may add a =E2=80=98file-name=E2=80=99 field to the package source to = work around this. Ludovic Court=C3=A8s wrote on Sun Sep 08 22:07:10+0200 2019 > Unfortunately it cannot really be caught. I mean, you could catch > =E2=80=98&store-protocol-error=E2=80=99 error conditions, but then the = error message is > just a string, there=E2=80=99s no error code you can compare against. Example package raising this error: (use-modules (guix packages) (guix download) (guix build-system gnu)) (package =C2=A0 (name "kde-l10n-ca-valencia") =C2=A0 (version "14.11.80") =C2=A0 (source =C2=A0=C2=A0 (origin =C2=A0=C2=A0=C2=A0=C2=A0 (method url-fetch) =C2=A0=C2=A0=C2=A0=C2=A0 (uri (string-append "mirror://kde//Attic/applica= tions/" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ver= sion "/src/kde-l10n/" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "kd= e-l10n-ca@valencia-" version ".tar.xz")) =C2=A0=C2=A0=C2=A0=C2=A0 (sha256 (base32 "1mqadassxcm0m9r1l02m5vr4bbandn48xz8gifvxmb4wiz8i8d0w")))) =C2=A0 (build-system gnu-build-system) =C2=A0 (synopsis "") (description "") (license "") (home-page "")) --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@HIDDEN | | www.crazy-compilers.com | compilers which you thought are impossible |
Hartmut Goebel <h.goebel@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#37523
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.