From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EJTeE2pEn2HHJwAAgWs5BA (envelope-from ) for ; Thu, 25 Nov 2021 09:08:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4N1uD2pEn2FUGQAAbx9fmQ (envelope-from ) for ; Thu, 25 Nov 2021 08:08:10 +0000 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 2A10A36B24 for ; Thu, 25 Nov 2021 09:08:09 +0100 (CET) Received: from localhost ([::1]:38200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mq9nc-0002PL-25 for larch@yhetil.org; Thu, 25 Nov 2021 03:08:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq9dq-0005DX-7D for bug-guix@gnu.org; Thu, 25 Nov 2021 02:58:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mq9dp-000720-VO for bug-guix@gnu.org; Thu, 25 Nov 2021 02:58:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mq9dp-000342-Sm for bug-guix@gnu.org; Thu, 25 Nov 2021 02:58:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52093: Incorrect argument handling in "guix shell" Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 25 Nov 2021 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52093 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52093@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163782706311749 (code B ref -1); Thu, 25 Nov 2021 07:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2021 07:57:43 +0000 Received: from localhost ([127.0.0.1]:55653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq9dW-00033R-OU for submit@debbugs.gnu.org; Thu, 25 Nov 2021 02:57:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:47454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq9dR-00033F-JP for submit@debbugs.gnu.org; Thu, 25 Nov 2021 02:57:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq9dO-0004ck-NZ for bug-guix@gnu.org; Thu, 25 Nov 2021 02:57:37 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:51397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq9dK-0006vu-LX for bug-guix@gnu.org; Thu, 25 Nov 2021 02:57:33 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CDC8C3200F3F; Thu, 25 Nov 2021 02:57:23 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 25 Nov 2021 02:57:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=kHRzwszqZgFr4+RlkrP/2zFvwdPZLB9BSgwBVWSgulw=; b=YL5N1iyw 45vo6b+d/YG9L8G9nJvHRVDCS1bplEZsXXOxlgWT2o3mL8S6iEEw5sOUm8/zIMq8 UunXW8pl1aFPDkJC56dd3oiclxIvUExIImBwO5qVV9FWgEqPA1/RG/0edcWCo9iO it1HY20NmqGmNAymGpsI1Wae8v3G5WjmH5tEwzADZCddYlBHrYpKKmg62namkK1v 8uPeXjSgXE9Z+3K7WvFqVU+9dGQ/k9xC/PXL2GVsKKqU6UgQUOgXo0YQti03Dzuz 4QwECKxKldsgwQrf/8RfAMcCpUIoWh0nTjsE63jUUsOggDQffptCCgkozU2UNIYD i4lScZm4omqgtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=kHRzwszqZgFr4+RlkrP/2zFvwdPZL B9BSgwBVWSgulw=; b=jHOk5tuXJ02xmhcNqtP5Yy7CDZn34jUgogjCJxpick4BP PB0MJ+2d/3OGfDoCNh91/lRTLkPt8uKSu/pSb07kwSNJrYb1xsNzoQJ/C3U8jDvz shs8ekf42CTVkFzD47R5Y/KvKOXlaRjeZ6KRYju6tk7Aje7UCQEbDBMTyBKJCWkm kp94CwFL6sP24603SyKCSIxZ/9iY3gpE5PrjDzt0lXc6VCS/YUU69pANnAItyd30 tys8U7fcfToljyvuFDXyinZKiA8khUFFXktT1PHRokR7nM4uzyF680L66Uwj6Olk Vf8OjhPruzcfnmBss2MCchnWbjyo6ek0T9qREvW7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeelgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehmtderredttd dtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgv nhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeetudetleekffeije evkeduudffieeukeeiffehveevffettdehjeefgeeivdfgueenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnse hfrghsthhmrghilhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Nov 2021 02:57:22 -0500 (EST) From: Konrad Hinsen Date: Thu, 25 Nov 2021 08:57:20 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=64.147.123.20; envelope-from=konrad.hinsen@fastmail.net; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637827689; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=kHRzwszqZgFr4+RlkrP/2zFvwdPZLB9BSgwBVWSgulw=; b=Pm5kIqx1t7IE1C6UWtbb0kchp0/Gv2a7pZFwcgQloUDxs4XyH145qjRdso7+fjaFUv2JzF 9JYL3AWIzLPT51Kg4XDbBE/lybMQh7Ewo6k+RTeY9wv+lB0j0OcUARmcaVCDr2RuThHgFo 4VbJOeJtpV2H1rrvc1fzHlH8O3op85qx9Fb23DJn55B5FffiO5Dwp82p5xoWkRcZKd9XHw Tol0UpcAbu0YsHf1jdx/xfQ8XHPeJO1+PYjPOMYTp4PoYSI1e7nR7Mw6qYbJuD2Og7DVUQ qHoBTFBMneKiXqE3ZfAlGGmB0oDo5JI1OHGQsr9n2/+PD/tgQAzHb6cacqTrTw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637827689; a=rsa-sha256; cv=none; b=lQluzdHh0Pjd2ZUJb0STZU5ib7ewiZVpx0XP0Isqm4vkB6QTyYQGTtyfJsQTThPgQAQ/XQ 2sTsHaVuQ/lvf5fYfR3g5Lu5sJaJOpXsseSuOawPpjYiMm+FSP4DPqi+RHYT54pS1zB72a dGvt0QR3FydvZY8K83gBEoz7tdAb7gKnvnRCDck4iuCc5gn7GeqRqvoIdieDq7zXvRCzwc 4qa5OOCI4ZzCVtCsZx/USJH9qcyxnX5W6smNGQ6Ga6gwOaz6XS0VQEXBIdMWvdfZJ7oGDT RR/4a/j+6rdocB2Mjg5/mR+2kVUDaMfVkgeDVhD7vKDm22Ya1iWLHAIMV56GCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm2 header.b=YL5N1iyw; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=jHOk5tuX; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm2 header.b=YL5N1iyw; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=jHOk5tuX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 2A10A36B24 X-Spam-Score: -2.09 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2Ax6AUSUrzop --=-=-= Content-Type: text/plain The following session illustrates that the -D option to "guix shell" is erroneously applied to *two* package arguments rather than just one if the first package argument takes the form of a file. The file "empty-package.scm" is attached, it defines an empty package with no inputs. The environment defined by the command below should thus contain only "hello" and "bash", plus the run-time dependencies of "bash". Instead, it contains the build dependencies of "hello". $ guix shell --container -D -f empty-package.scm hello [env]$ cat $GUIX_ENVIRONMENT/manifest ;; This file was automatically generated and is for internal use only. ;; It cannot be passed to the '--manifest' option. ;; Run 'guix package --export-manifest' if you want to export a file ;; suitable for '--manifest'. (manifest (version 3) (packages (("tar" "1.32" "out" "/gnu/store/v6f44zccwh9z5zk3pjlywjybbi8n2hjh-tar-1.32" (propagated-inputs ()) (search-paths ()) (properties)) ("gzip" "1.10" "out" "/gnu/store/ncydgq2znms5n1d2k5yqshhf58nsixwv-gzip-1.10" (propagated-inputs ()) (search-paths ()) (properties)) ("bzip2" "1.0.8" "out" "/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8" (propagated-inputs ()) (search-paths ()) (properties)) ("xz" "5.2.4" "out" "/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4" (propagated-inputs ()) (search-paths ()) (properties)) ("file" "5.38" "out" "/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38" (propagated-inputs ()) (search-paths ()) (properties)) ("diffutils" "3.7" "out" "/gnu/store/n4n560pfvvw50a9369axw5vj5rrqfj1n-diffutils-3.7" (propagated-inputs ()) (search-paths ()) (properties)) ("patch" "2.7.6" "out" "/gnu/store/cd5qf3kcnlq35p9k392pjdpdzpsnds70-patch-2.7.6" (propagated-inputs ()) (search-paths ()) (properties)) ("findutils" "4.7.0" "out" "/gnu/store/hic7snhayfl7m6cpfqqr73nmm19bpqkg-findutils-4.7.0" (propagated-inputs ()) (search-paths ()) (properties)) ("gawk" "5.0.1" "out" "/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1" (propagated-inputs ()) (search-paths ()) (properties)) ("sed" "4.8" "out" "/gnu/store/ishk7fswcs4gkwcp8mh788z4mvvl9bxh-sed-4.8" (propagated-inputs ()) (search-paths ()) (properties)) ("grep" "3.4" "out" "/gnu/store/bhs4rj58v8j1narb2454raan2ps38xd8-grep-3.4" (propagated-inputs ()) (search-paths ()) (properties)) ("coreutils" "8.32" "out" "/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32" (propagated-inputs ()) (search-paths ()) (properties)) ("make" "4.3" "out" "/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3" (propagated-inputs ()) (search-paths ()) (properties)) ("bash-minimal" "5.0.16" "out" "/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16" (propagated-inputs ()) (search-paths (("BASH_LOADABLES_PATH" ("lib/bash") ":" directory #f))) (properties)) ("ld-wrapper" "0" "out" "/gnu/store/mpa04aq8lblbcviyxywxcsb1zbi0mf39-ld-wrapper-0" (propagated-inputs ()) (search-paths ()) (properties)) ("binutils" "2.34" "out" "/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34" (propagated-inputs ()) (search-paths ()) (properties)) ("gcc" "7.5.0" "out" "/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0" (propagated-inputs ()) (search-paths (("C_INCLUDE_PATH" ("include") ":" directory #f) ("CPLUS_INCLUDE_PATH" ("include/c++" "include") ":" directory #f) ("LIBRARY_PATH" ("lib" "lib64") ":" directory #f))) (properties)) ("glibc" "2.31" "out" "/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31" (propagated-inputs (("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties)))) (search-paths (("GUIX_LOCPATH" ("lib/locale") ":" directory #f))) (properties)) ("glibc" "2.31" "static" "/gnu/store/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static" (propagated-inputs (("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties)))) (search-paths (("GUIX_LOCPATH" ("lib/locale") ":" directory #f))) (properties)) ("glibc-utf8-locales" "2.31" "out" "/gnu/store/hwcky7446s952w0mwchhmm211ll07zrq-glibc-utf8-locales-2.31" (propagated-inputs ()) (search-paths ()) (properties)) ("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties))))) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=empty-package.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChndWl4KQogICAgICAgICAgICAgKGd1aXggcGFja2FnZXMpCiAgICAgICAg ICAgICAoZ251IHBhY2thZ2VzIGJhc2UpCiAgICAgICAgICAgICAoZ3VpeCBidWlsZC1zeXN0ZW0g dHJpdmlhbCkKICAgICAgICAgICAgICgoZ3VpeCBsaWNlbnNlcykgIzpwcmVmaXggbGljZW5zZTop KQoKKHBhY2thZ2UKICAobmFtZSAiZW1wdHktcGFja2FnZSIpCiAgKHZlcnNpb24gIjAiKQogIChz b3VyY2UgI2YpCiAgKGJ1aWxkLXN5c3RlbSB0cml2aWFsLWJ1aWxkLXN5c3RlbSkKICAoYXJndW1l bnRzCiAgICcoIzpidWlsZGVyCiAgICAgKGJlZ2luCiAgICAgICAodXNlLW1vZHVsZXMgKGd1aXgg YnVpbGQgdXRpbHMpKQogICAgICAgKG1rZGlyLXAgKGFzc29jLXJlZiAlb3V0cHV0cyAib3V0Iikp CiAgICAgICAjdCkKICAgICAjOm1vZHVsZXMgKChndWl4IGJ1aWxkIHV0aWxzKSkpKQogIChob21l LXBhZ2UgIiIpCiAgKHN5bm9wc2lzICIiKQogIChkZXNjcmlwdGlvbiAiIikKICAobGljZW5zZSBs aWNlbnNlOmdwbDMrKSkK --=-=-=--