From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2DbRLupfiWKSUQAAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 23:55:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wKDGLepfiWKZUAAAG6o9tA (envelope-from ) for ; Sat, 21 May 2022 23:55:54 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 34C231EA15 for ; Sat, 21 May 2022 23:55:54 +0200 (CEST) Received: from localhost ([::1]:54682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsX4j-000461-3I for larch@yhetil.org; Sat, 21 May 2022 17:55:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsX4X-00045N-2P for help-guix@gnu.org; Sat, 21 May 2022 17:55:41 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:36712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsX4V-0001KI-8a for help-guix@gnu.org; Sat, 21 May 2022 17:55:40 -0400 Received: from shelob.hcoop.net ([68.183.54.165] helo=webmail.hcoop.net) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsX4U-0000Ia-2I; Sat, 21 May 2022 17:55:38 -0400 MIME-Version: 1.0 Date: Sat, 21 May 2022 23:55:37 +0200 From: =?UTF-8?Q?=E7=99=BD=E3=81=84=E7=86=8A?= To: raingloom Cc: help-guix@gnu.org Subject: Re: Package definition - argument, fix for wrong file format before unpack In-Reply-To: <20220521222910.07a43915@riseup.net> References: <3eceaea9454f82f2d8c28af880f82ecb@sumou.com> <20220521222910.07a43915@riseup.net> User-Agent: Roundcube Webmail/1.4.7 Message-ID: X-Sender: help-guix_gnu.org@sumou.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=104.248.1.95; envelope-from=help-guix_gnu.org@sumou.com; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653170154; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=azZYsNK6ilDMhMMZlYKMqn2OzQ5ZlZEJCCrKpArSmf0=; b=VhKgjTVszkpd/HLj1Yx1R3ZusonCMuNLYxditNrLLMjqExuFLKb3izSmPrzjb7TzRuCg8n B//qgz4T217JgktdOO/sWO+i/NkeOO/KJ7q/M9Jl4ln9QddjNNvqwwH4lsmuFztlAXo9Sq zTBs91F1t8pBMiHrnF++u27NpVVWWkhc+iBSbQmXvTkU4lZVXfw78WEk/05eiNYNGi25Uc nEphrhrrDoydz521zdghOgNtGQZUiv1509ISX0QEKvnuhVCwR+NStLSW6DHwtuHCHerkGb Gxt2sz+KFajh4QGjusHYN9e136hm9zb/+cV5RZLGPP86TtPvGDqanqXoE6l6Vw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653170154; a=rsa-sha256; cv=none; b=atGYhmaruGVJPBpUOO/Ep6fxQOLME9B+nyBQTl48AZdcp/jb+creuH79H+gMjAgtxpWNT1 DFjT49VkDyL/lxqazdeFFS3xPOVDX6PKLibjXiUXacmJzJzCRzeSjjO6RglKXsp8gStQ7y i/o5+QStAebf0ijlmzOFdDWY/VvTND36Ok27GkCJ7g8e9GUOuZqBCuy7K35ZuaC2XlQdgG 6Gc16CtY+SNAjkCKfEIEyu9wkSq7OrBGqEUyNVP6+ooJWiKLzPEjzCg3K8SkKcQNkvqKpl jTWE7Qvmjs65xU1nDgipgOw5T42PS3xmboPPyjw3IqpI9wyEqGFKQn9xPA60Ag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 34C231EA15 X-Spam-Score: -3.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: V2zc3vVKjnxP On 2022-05-21 10:29 pm, raingloom wrote: > > If I remember correctly, the source should get passed as part of the > inputs alist? Try this: > `(replace 'unpack (lambda args (display args)))` > And look at what arguments it gets passed. The store path of the > tarball should be right there. It does indeed give it: (#:source /gnu/store/db0094xgx1z63i7naqs687l94ww5dbi7-mell-1.0.0.tar.gz #:system x86_64-linux #:build x86_64-unknown-linux-gnu #:outputs ((out . /gnu/store/5fgwxb1gq4gc9nmhigdllpy77xn2hxw2-emacs-mell-1.0.0)) #:inputs ((source . /gnu/store/db0094xgx1z63i7naqs687l94ww5dbi7-mell-1.0.0.tar.gz) (tar . /gnu/store/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34) (gzip . /gnu/store/iixwcv3k49ks1rf34pjgfzmzyhhgwng3-gzip-1.10) (bzip2 . /gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8) (xz . /gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5) (file . /gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39) (diffutils . /gnu/store/ahmmvw21p11ik80lg1f953y7fd8bqkjm-diffutils-3.8) (patch . /gnu/store/z39hnrwds1dgcbpfgj8dnv2cngjb2xbl-patch-2.7.6) (findutils . /gnu/store/39rsx3nl4c31952jybbjb8d6idr5hx7r-findutils-4.8.0) (gawk . /gnu/store/690qz3fg334dpwn3pn6k59n4wc943p2b-gawk-5.1.0) (sed . /gnu/store/wxgv6i8g0p24q5gcyzd0yr07s8kn9680-sed-4.8) (grep . /gnu/store/xjwp2hsd9256icjjybfrmznppjicywf6-grep-3.6) (coreutils . /gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32) (make . /gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-4.3) (bash . /gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8) (ld-wrapper . /gnu/store/s2pg5k98fl2g2szg9dykxyd9zl3xihv9-ld-wrapper-0) (binutils . /gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37) (gcc . /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0) (libc . /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33) (libc:static . /gnu/store/4jdghmc65q7i7ib89zmvq66l0ghf7jc4-glibc-2.33-static) (locales . /gnu/store/fnr1z6xsan0437r0yg48d0y8k32kqxby-glibc-utf8-locales-2.33) (kernel-headers . /gnu/store/6mjww4iz4xdan74d5bbjfh7il8rngfkk-linux-libre-headers-5.10.35)) #:search-paths ((BASH_LOADABLES_PATH (lib/bash) : directory #f) (C_INCLUDE_PATH (include) : directory #f) (CPLUS_INCLUDE_PATH (include/c++ include) : directory #f) (LIBRARY_PATH (lib lib64) : directory #f) (GUIX_LOCPATH (lib/locale) : directory #f)) #:phases ((set-SOURCE-DATE-EPOCH . #) (set-paths . #) (install-locale . #) (unpack . #) (bootstrap . #) (patch-usr-bin-file . #) (patch-source-shebangs . #) (configure . #) (patch-generated-file-shebangs . #) (build . #) (check . #) (install . #) (patch-shebangs . #) (strip . #) (validate-runpath . #) (validate-documentation-location . #) (delete-info-dir-file . #) (patch-dot-desktop-files . #) (make-dynamic-linker-cache . #) (install-license-files . #) (reset-gzip-timestamps . #) (compress-documentation . #)) #:locale en_US.utf8 #:bootstrap-scripts (bootstrap bootstrap.sh autogen.sh) #:configure-flags () #:make-flags () #:out-of-source? #f #:tests? #t #:test-target check #:parallel-build? #t #:parallel-tests? #t #:patch-shebangs? #t #:license-file-regexp ^(COPYING.*|LICEN[CS]E.*|[Ll]icen[cs]e.*|Copy[Rr]ight(\.(txt|md))?)$ #:strip-binaries? #t #:validate-runpath? #t #:make-dynamic-linker-cache? #t #:license-file-regexp ^(COPYING.*|LICEN[CS]E.*|[Ll]icen[cs]e.*|Copy[Rr]ight(\.(txt|md))?)$ #:strip-flags (--strip-unneeded --enable-deterministic-archives) #:strip-directories (lib lib64 libexec bin sbin)) However seeing it how should I change the unpack now - to extract only via tar, however from the tar.gz file which isn't a gz really? -- Best regards / 宜しく御願い致します / S pozdravem / C уважением / Z poważaniem / Mit freundlichen Grüßen 白い熊 ShiroiKuma