From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: Writing and Bulding emacs-weechat package: In procedure url-fetch, Invalid keyword Date: Sat, 01 Jun 2019 16:41:10 +0800 Message-ID: <87pnnxwvdl.fsf@member.fsf.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWzZq-0000wT-Uy for help-guix@gnu.org; Sat, 01 Jun 2019 04:41:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWzZp-0004Cq-Hs for help-guix@gnu.org; Sat, 01 Jun 2019 04:41:22 -0400 Received: from rezeros.cc ([2001:19f0:7001:2f3e:5400:ff:fe84:e55d]:52018) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hWzZp-00049U-32 for help-guix@gnu.org; Sat, 01 Jun 2019 04:41:21 -0400 In-Reply-To: (b0f0's message of "Fri, 31 May 2019 01:29:49 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: b0f0 Cc: help-guix@gnu.org b0f0 writes: > Hello Guix ! > (This is my first mail to a newsgroup. ) Welcome! (This is a mailing list, a newsgroup should be accessed via NNTP instead.) > I would like to package the emacs-weechat package. > I run this command in my terminal: > > $guix import elpa -a melpa emacs-weechat > > I put the output in to a emacs-weechat.scm file > and then I modified the output like this (everything below this line > is a emacs-weechat.scm): > > ;;(define-module (gnu packages emacs-weechat) > ;; #:use-module (guix packages) > ;; #:use-module (guix build download) > ;; #:use-module (guix build-system emacs) > ;; #:use-module (gnu packages emacs-xyz)) > (use-modules (guix packages) > (guix download) > (guix git-download) > (guix utils) > (guix build download) You don't need =E2=80=98(guix build download)=E2=80=99, and it exports anot= her =E2=80=98url-fetch=E2=80=99 proceduce which cause errors here=E2=80=A6 > (guix build-system emacs) > (gnu packages emacs-xyz)) > > (package > (name "emacs-weechat") > (version "20190520.1551") > (source > (origin > (method url-fetch) > (uri (string-append > "http://melpa.org/packages/weechat-" > version > ".tar")) > (sha256 > (base32 > "143bjyrfz37ihmpkrbr668pn0z1017pjzb1d7hmqrr518slg7a")))) > (build-system emacs-build-system) > (propagated-inputs > `(("emacs-s" ,emacs-s) > ("emacs-tracking" ,emacs-tracking))) > (home-page "https://github.com/the-kenny/weechat.el") > (synopsis "Chat via WeeChat's relay protocol in Emacs") > (description "This package provides a way to chat via WeeChat's > relay protocol in Emacs. Please see README.org on how to use it.") > (license #f)) > > > I read the manual but I am stuck, in terminal I run this comand: > $guix build --file=3Demacs-weechat.scm > > Backtrace: > In guix/store.scm: > 623:10 19 (call-with-store _) > In guix/scripts/build.scm: > 911:26 18 (_ #) > In ice-9/boot-9.scm: > 829:9 17 (catch _ _ # =E2=80=A6) > In guix/ui.scm: > 495:6 16 (_) > In guix/scripts/build.scm: > 876:5 15 (_) > In srfi/srfi-1.scm: > 679:15 14 (append-map _ _ . _) > 592:17 13 (map1 ("x86_64-linux")) > 679:15 12 (append-map _ _ . _) > 592:17 11 (map1 (#)) > In guix/scripts/build.scm: > 835:18 10 (_ _) > In guix/packages.scm: > 936:16 9 (cache! # # =E2=80=A6) > 1255:22 8 (thunk) > 1188:25 7 (bag->derivation # #<=E2=80= =A6> =E2=80=A6) > In srfi/srfi-1.scm: > 592:29 6 (map1 (("emacs" #= ) =E2=80=A6)) > 592:17 5 (map1 (("source" #= ) =E2=80=A6)) > In ice-9/boot-9.scm: > 829:9 4 (catch srfi-34 # =E2=80=A6) > In guix/packages.scm: > 1003:18 3 (_) > In guix/store.scm: > 1794:24 2 (run-with-store _ _ #:guile-for-build _ #:system _ # _) > 1667:13 1 (_ _) > In guix/build/download.scm: > 741:0 0 (url-fetch _ _ #:timeout _ #:verify-certificate? _ # _ # =E2= =80=A6) > > guix/build/download.scm:741:0: In procedure url-fetch: > Invalid keyword: #vu8(234 60 170 81 40 57 227 10 79 11 235 203 123 2 8 > 31 216 139 140 201 43 207 91 97 60 227 187 236 229 26 36) > > Isn't url-fetch provided with 'guix download' module ? Yes, and remove =E2=80=98(guix build download)=E2=80=99 does the right thin= g for me. Have a good day :-)