From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kBuTL7SBdWU9IwEA9RJhRA:P1 (envelope-from ) for ; Sun, 10 Dec 2023 10:15:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kBuTL7SBdWU9IwEA9RJhRA (envelope-from ) for ; Sun, 10 Dec 2023 10:15:32 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CIZXH7Pf; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702199732; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BJXRTiADuxVkeAIf+KkPJ72DFxs2Iwt8BDZU1bddrOA=; b=ZXeRngQkw07L7B4suZYMZkJDnLSOPRPwjrV5juKbLEyxzChT5WYIwVhuKJrXgAPaWK1yon ytTWBoReOsonuXDXN0HusAkWYjT0HXjOwonsNg2bqB8RyuSlnDcAqItsefUkqJIlrkwDW1 pO+KqItmCDv1vK5V2qzDd7xbs3iQlQGwG8PJv0D/gvdljF8xG89bMDipu/g0o8Ke3kTqF+ A0Q7gUMeLI0keXG6QScuIO1bDQ/uwefVVQe3aEVftowaQLHkQpute69OzGqHZcWQSzIEcS 41kM6kOHJnxP5FQQxJFI4wNSgEehjSbDqJYVFn33UDJKlDRgEGRIpUcTj3ocew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702199732; a=rsa-sha256; cv=none; b=kGiqBE10baD5eF+e8smBtZR78n30ajN+E1SDEhmssCEk4HbgnAXp7P0irdYUHyFnoR/49y WD1PwS+MT4Hg7j137AmjTYUJQP0yM7PIxfE92OEmqA7OKmmcFyueeQ4gPN2bajTlKu/ObR SdmvEzPpxqQl0T8J5IchxlenIrvlW6M7N8jQGh6dUds+3OZmaE7CVkis5hd68Brl2/s1M/ vQYDMKekINPTBmpOuY41CJbmTSENfRnNaQs4I/PzzSkYam+rLVlUUzjFzIzFjCTT7Nkov9 eHNkNrthCfCL3T+rzp5yd7oNDOL6jj5xYzS8Ho87cVdy8Z45FiVoHrTkgZD2yA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CIZXH7Pf; 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"; dmarc=pass (policy=none) header.from=posteo.net 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 39F273835B for ; Sun, 10 Dec 2023 10:15:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCFtr-0008A1-JL; Sun, 10 Dec 2023 04:14:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCFtq-00089k-Ls for help-guix@gnu.org; Sun, 10 Dec 2023 04:14:58 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCFtn-0001p7-N2 for help-guix@gnu.org; Sun, 10 Dec 2023 04:14:58 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D01BF240103 for ; Sun, 10 Dec 2023 10:14:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702199691; bh=MceoLv+zF508j1d4989YyY66ulxRGy8ZuzxDqoKnLyA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=CIZXH7Pfws2lMlJXrVI9LNUFhNeuvkiXB1G51TPWZl7+TXQXK7GePiw8gQ3AtyVFJ AjpgsISiPGVgGC049P9kh9FdGJVJ8W+LvYf8jg0gOxsiDGWOS5JdVMcA5ITiq23Qn4 CLOc0TAwwrJ42ldpR9lBp5LgVWr4qjO2wzClxfZBAenVd6lyM6o5SkpdmnWR7Q7KI1 qQJLfphTgNcgJ/SUnhIkKwywZheHFCj11NhSl889/YKFLzhR8dPbD9WPK6nCyf/I7J 5rXnVPujaa9lL0ouVVqPGikFgqsgcl4lxY+mHyVI+VeqY2ygBKF4QpFsegt/YDXXzC laPCqY5ANKu7A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SnzjN6x8Wz6tvh; Sun, 10 Dec 2023 10:14:48 +0100 (CET) References: From: Guillaume Le Vaillant To: Pan Xie Cc: guix-devel@gnu.org, help-guix@gnu.org Subject: Re: Why bash-minimal is part of sbcl package Date: Sun, 10 Dec 2023 08:58:29 +0000 In-reply-to: Message-ID: <87lea2h11c.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.41 X-Spam-Score: -4.41 X-Migadu-Queue-Id: 39F273835B X-Migadu-Scanner: mx11.migadu.com X-TUID: VQWtCfngUqpR --=-=-= Content-Type: text/plain Pan Xie skribis: > Hello > > I find this interesting thing but I don't have an explanation. When query the > "references" of my Gnu Store item "sbcl", it shows that sbcl references > bash-mininal, as the following output shows: > > # guix gc --references /gnu/store/sbbp9nvslqcf3bmcnz5wgxf2qpsi757 > /gnu/store/6ncav55lbk5kqvwwflrzcr41hp5jbq0c-gcc-11.3.0-lib > /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35 > /gnu/store/mzx7j93w5szyzrgnql8dqhqdgjh6si02-mpfr-4.2.0 > /gnu/store/nl194qnq5lhjxpfwcs15xqihnfqif335-zstd-1.5.2-lib > /gnu/store/sbbp9nvslqcf3bmcnz5wgxf2qpsi757i-sbcl-2.3.7 > /gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16 > /gnu/store/ybadavwz1z9kmxanqy3siw38lnkwnkrp-gmp-6.2.1 > > However when I look into sbcl's package definition, there is no bash-minimal as > its input. I can use guix graph find a path from sbcl to bash-minimal: > > # guix graph --path sbcl bash-minimal > sbcl@2.3.7 > texlive-updmap.cfg@66594 > texlive-scheme-basic@66594 > texlive-collection-basic@66594 > texlive-bin@20230313 > cairo@1.16.0 > bash-minimal@5.1.16 > > bash-minimal is indeed one of cairo's package input. However cairo also has > inputs like ghostscript and libspectre, which sbcl does not reference. > > "guix size sbcl" also reports bash-minimal is part of sbcl package, and "guix > pack sbcl" will include bash-minimal in its final tarball. > > So the question is, which part of sbcl's package definition tells Guix it need > to add bash-minimal as part of sbcl? Is there a practical method to figure that > out? Hi. It looks like there are some contrib libraries of sbcl that need a shell, which is why the bash-minimal available in the build environment is referenced by some files in the sbcl package. I guess we should list bash-minimal explicitly in the inputs... --8<---------------cut here---------------start------------->8--- $ grep -R bash-minimal $(guix build sbcl) grep: /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/lib/sbcl/contrib/sb-executable.fasl: binary file matches grep: /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/lib/sbcl/contrib/asdf.fasl: binary file matches grep: /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/lib/sbcl/contrib/sb-aclrepl.fasl: binary file matches grep: /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/lib/sbcl/contrib/uiop.fasl: binary file matches /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/share/sbcl/contrib/asdf/pull-asdf.sh:#!/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/sh -e /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/share/sbcl/contrib/asdf/asdf.lisp: #+os-unix (string `("/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/sh" "-c" ,command)) /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/share/sbcl/contrib/asdf/asdf.lisp: #+os-unix ,@'(ext:run-program "/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/sh" :arguments `("-c" ,%command)) /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/share/sbcl/contrib/asdf/uiop.lisp: #+os-unix (string `("/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/sh" "-c" ,command)) /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/share/sbcl/contrib/asdf/uiop.lisp: #+os-unix ,@'(ext:run-program "/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/sh" :arguments `("-c" ,%command)) /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/share/sbcl/contrib/sb-aclrepl/repl.lisp: (sb-ext:run-program "/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/sh" (list "-c" string-arg) /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/share/sbcl/contrib/sb-executable/sb-executable.lisp: "#!/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/sh -- /gnu/store/yqqjrhap1jp0aqs5p7xs5j13z0nza1zj-sbcl-2.3.7/share/sbcl/contrib/sb-posix/posix-tests.lisp: (stat-2 (sb-posix:stat "/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/sh" --8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCZXWBfw8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j+J1AD8DugLBxIJtuTrfxfGKNo6i8naOXsNkjCG0Om9 kCMAd5AA/jEbjihL7Itu6U9UCa0dJ9TL2HYQ0rDeEHheNzp4iecr =t7g7 -----END PGP SIGNATURE----- --=-=-=--