From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UIEWEyh9ol9ATgAA0tVLHw (envelope-from ) for ; Wed, 04 Nov 2020 10:06:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UFT3Dih9ol82AwAA1q6Kng (envelope-from ) for ; Wed, 04 Nov 2020 10:06:32 +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 EC70F9402A2 for ; Wed, 4 Nov 2020 10:06:31 +0000 (UTC) Received: from localhost ([::1]:33560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaFgU-0003xD-P4 for larch@yhetil.org; Wed, 04 Nov 2020 05:06:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaFgL-0003we-Lo for guix-devel@gnu.org; Wed, 04 Nov 2020 05:06:21 -0500 Received: from mail-m971.mail.163.com ([123.126.97.1]:40676) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaFgD-0000HC-DK for guix-devel@gnu.org; Wed, 04 Nov 2020 05:06:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Message-ID:Date:MIME-Version; bh=oKcOn 10E4JMhZ4lNgiEZf95Z+2bI1MrvLNDlTOl89hg=; b=UZ/iADF/M6MyFQ12jcdE7 2vNN0Kwc9TnHFR2Lr/c/f4uOqcHpKJPl6cjujq0Asy+lpBZDuKdXrlY2NQ0jpuxZ SpvKlgkbIIbN9dnyXJkMJw/GRdQI3kvDqqO8hIJfJi4emBAlmGTs2+l3KpR1f9Oy KnOVIJFRa44QCj9v8YPxic= Received: from asus-laptop (unknown [27.39.89.237]) by smtp1 (Coremail) with SMTP id GdxpCgB3dmvqfKJfZ5kGAA--.75S2; Wed, 04 Nov 2020 18:05:48 +0800 (CST) References: <33db285c56516bac910112344b7c9766221bdaf3.camel@student.tugraz.at> User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao To: Leo Prikler Subject: Re: A public Lisp programming interface provide feature like `guix environment --container` In-reply-to: <33db285c56516bac910112344b7c9766221bdaf3.camel@student.tugraz.at> Message-ID: <864km55teh.fsf@163.com> Date: Wed, 04 Nov 2020 18:05:26 +0800 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-CM-TRANSID: GdxpCgB3dmvqfKJfZ5kGAA--.75S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrury3GF1kJF4xKFW7Wr45KFg_yoWDZFb_ZF n8trsrAr4vyFy2grs7Gw1IvFZrt3y8Xry0qw4Ik3ya9a45CF4fuFZ7A3Wav3W3Can8Krn8 ArnYq392v3yUujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU1njjJUUUUU== X-Originating-IP: [27.39.89.237] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbClg3Sr1zmRFWe+wAAso Received-SPF: pass client-ip=123.126.97.1; envelope-from=all_but_last@163.com; helo=mail-m971.mail.163.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/04 05:05:50 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=UZ/iADF/; dmarc=pass (policy=none) header.from=163.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 0.19 X-TUID: 4xfELVA9lO8v --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Leo Prikler writes: > launch-environment/container still assumes the command to be a shell > script, which I think is not quite what you want. You probably want to > take a look at call-with-container from (guix build linux-container) or > child-hurds. I just read the source code of call-with-container. IMO, it just run code in container, without any settings. It's quite inconvenient for my usage. For example: I have to setup mount binding of my package closure man= ually.=20 > I currently don't know of any procedure, that "directly" invokes Scheme > code through Guix environments, so you'd have to build that on your > own. However, given that your stated goal is to port container entry > scripts [I read this as "the script called by the container at entry"] > to Guile, would it not make sense to have > > (guix-environment [ENVIRONMENT OPTIONS] "--" "guile" "entry.scm") > > WDYT? > > Regards, Leo Hmmm, maybe this is the solution, tho it's not very very elegant. =2D-=20 Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp Zihao --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEE7NCVzXX6efyusptG1SOVn+xGFqYFAl+ifOYVHGFsbF9idXRf bGFzdEAxNjMuY29tAAoJENUjlZ/sRham80IIAKrYsY047ePqe2DejYyscmErYGAa gJ3lFVb+TlngCFN4rUmqJ3O+v0sbbwk51CEYmZTrIUhcPRpmcIPotViJuLQRdnmK 7sYzyOP3fVnNk17Mu5YvG9STnnz38Q5ZdxmUvri4T8VxqwGEJ/KQCOZWIL8yT08E wBhym82BwiL1CZY7Kl7u9aiuNvYb1hXCN6Ss4WNyWwknWKLHi5I8Y1survTtbFjD qLsIPJfJewB6nPC+soN+NQCT9kJvlqgC9ShtlHMT5Ysn7rcoTuSUERg9QAsqagxd fuj+wtV2PQnjkejOA1PGCJFfY6Cezeghj8R0DLbXfg2GOSeX4ofgn3YZoWw= =6g/B -----END PGP SIGNATURE----- --=-=-=--