From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MHziKozjpGHKPwAAgWs5BA (envelope-from ) for ; Mon, 29 Nov 2021 15:28:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GJTNJozjpGF8XQAA1q6Kng (envelope-from ) for ; Mon, 29 Nov 2021 14:28:28 +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 2C2C6212FC for ; Mon, 29 Nov 2021 15:28:28 +0100 (CET) Received: from localhost ([::1]:55098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrhdr-0006Ih-CJ for larch@yhetil.org; Mon, 29 Nov 2021 09:28:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrhdS-0005id-Rv for guix-patches@gnu.org; Mon, 29 Nov 2021 09:28:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrhdS-0001UH-I1 for guix-patches@gnu.org; Mon, 29 Nov 2021 09:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrhdS-0006K0-5P for guix-patches@gnu.org; Mon, 29 Nov 2021 09:28:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52117] [core-updates-frozen] [PATCH 0/6] Fix Julia packages. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Nov 2021 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52117 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 52117@debbugs.gnu.org Received: via spool by 52117-submit@debbugs.gnu.org id=B52117.163819606424268 (code B ref 52117); Mon, 29 Nov 2021 14:28:02 +0000 Received: (at 52117) by debbugs.gnu.org; 29 Nov 2021 14:27:44 +0000 Received: from localhost ([127.0.0.1]:37552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrhdA-0006JL-4Q for submit@debbugs.gnu.org; Mon, 29 Nov 2021 09:27:44 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:42981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrhd7-0006J5-Ut for 52117@debbugs.gnu.org; Mon, 29 Nov 2021 09:27:43 -0500 Received: by mail-wr1-f50.google.com with SMTP id c4so37185821wrd.9 for <52117@debbugs.gnu.org>; Mon, 29 Nov 2021 06:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=7EBv1fNE/qdLiylzrxq8Ndl5PO73ZEkXXft56FlxBek=; b=MsKhNLMb2N4lIJYSjdhpF5uwstBzLk2+b1Cbr5IZGRVC7N3eMXrA2nSqo/IRt4167/ wd85uu9QKllGkCnSfHB95Ii9qjuwR+Tw17rFSzcQG0+lPeoNOjkY9esojFFM1xpux/0l V3d/6vuRLyUUBoLL5pUD7CcSButRoRkJ2F5+CzuFX6KhmO5fAHkmmFqlqKh4mp+A/BTW eWFZsuhkhOFQICwDH8N65iR8LtIwOnrB9/N60854Tx//NJXpWlVbIgzMzOwZxW5iacYx goDJkFV3CjQ+BJgqpNBh8EEvmQEkh23yX7j+sLKVc8S2Fo3VQTxZu7jxAuYrgF6RFbyg 1W+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=7EBv1fNE/qdLiylzrxq8Ndl5PO73ZEkXXft56FlxBek=; b=IBSw3LteN8/xXqePRUsiOuYbZDkLXKY8XyDCDbEYylRUwY7J89VZ7BHw8Wq3uNVim1 6fuM+0MDqnzepBPrZn9nyOSnwkgV69oHGVwqD/Qn5nGHJ5RG94ZEbzSE5wsHiyVtnvhZ N0usse2w+yKaIoAXrHCg+eY60Cr+6duuphx9EwO+IvNF+NyO+bDTlkZkhZfT+SqosH9S YsKMc0Jl2n/4JOMykhuJAHmmYj7jhdqY4DNIbtphgdPLNfHNmACNSsmv2tADnskl+gbW ejJfRCHCso6GQkJICsXX+cjOOLu4a3a+XZ07x5fQX0BWX1pYuy9QxOsgL9nVyhBJW+tH /f3Q== X-Gm-Message-State: AOAM5327bYLExP8qGGbGmS0xeb2OTJbWQLgc6Pt1IPwV5wT3NgZCp8Xj mQTPKaI8DulT7sRow32CnRqdQUsodT4= X-Google-Smtp-Source: ABdhPJw1/cfKGK+Xoy25LcvgYZPtekdGnyMsxE49l3coO2KBepoUpq+bc9y9W9YsNgg4CrmjojXBBw== X-Received: by 2002:a5d:4312:: with SMTP id h18mr35011306wrq.626.1638196056167; Mon, 29 Nov 2021 06:27:36 -0800 (PST) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id e3sm14089544wrp.8.2021.11.29.06.27.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 06:27:35 -0800 (PST) From: zimoun References: <20211125233559.34575-1-zimon.toutoune@gmail.com> <20211125233559.34575-2-zimon.toutoune@gmail.com> <87fsri8ez5.fsf_-_@gmail.com> <861r31kc2m.fsf@gmail.com> <87tufx6l74.fsf@gmail.com> Date: Mon, 29 Nov 2021 15:10:01 +0100 In-Reply-To: <87tufx6l74.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 27 Nov 2021 21:57:51 -0500") Message-ID: <87tufvqchy.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638196108; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7EBv1fNE/qdLiylzrxq8Ndl5PO73ZEkXXft56FlxBek=; b=sxrBlsifUOCAEfkXO/J4n4bhQjEJHIhLwPOIlYYivINb3fHF2uEqkRQVQZVBZvxV+aNxcb vkDpjTv4sJmxz3zGAstS0i43HfrIVIrbL7h+DhJXQwVN3z/JlZ7awLMJ3ncLQeZR+r+ulU mPrIzHS649ILu8Jcv4yOENkS03lqNDSN7vr1B0A9+BsaTE0T8Ll97EExcCqJlG2I2oIoO5 WSZSmUAUT0Pry8dLyVtYunuPDvQtvrj9EqtmR1PZnjOWS57EfD3EZWaZCvXDGQqC5W0+7J qCsk9pZZhmjI1QnK7yGrE1rxWhW+4NDtQtRvKG1FnXDaq+Bj5UJeAPqtx8bVZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638196108; a=rsa-sha256; cv=none; b=NkIEVKDMOSx72VeEm3+p/9y79Ik34vb00BgnrdM6o9IJ0hRvwMfj/1eOdQZmhzfGJiSao4 IANFSv5e2ivXZXNGAzVyaWt/V77U2oq/ChfhtPf2JNf7Yt92QmxSRRxCdK0kklA2xTzpWJ cBxA+R50pyRK4/9AmMiiUlLDVcMYsyEz64l6tjC1gtM2MXZRv9dg5j1WOM9nWHxziwNrEI 50bRwiskTkWqTUIJhv7+O5i3k9BprT5y93+uQs7JZI0r1GAEpCFTJB6LLT8LuDUTiS+zSb q23h7ZRB557OqHn/4WGpGvKOX7hOnCR0l2WHjwnqnj74cYlqXs7+/MFBbhHKIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MsKhNLMb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MsKhNLMb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2C2C6212FC X-Spam-Score: -1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: YtNmrOAQWGoB Hi Maxim, On Sat, 27 Nov 2021 at 21:57, Maxim Cournoyer w= rote: > No, it would invoke julia with the following argv list: "julia" > "-depwarn=3Dyes" "" [...]; > > My point is that invoke is equivalent to doing an execlp system call; > and the arguments get passed as a list (including that empty string > argument when parallel-tests? is #f). Whether this works or not is up > to the application, so I'd suggest not relying on it. Consider for > example: > > (execlp "python" "python" "" "-c" "print('hello')") > /gnu/store/cwqv4z5bvb5x6i0zvqgc1j1dnr6w9vp8-profile/bin/python: can't > find '__main__' module in > '/home/maxim/src/guix-core-updates-next/gnu/packages/' Thanks for the explanations. > It fails because it interprets the empty string argument as the current > directory, apparently. If that works with the above Julia invocation, > that's great, but it doesn't make it cleaner in my opinion :-). Indeed, and it is expected to fail because: --8<---------------cut here---------------start------------->8--- def _get_main_module_details(error=3DImportError): # Helper that gives a nicer error message when attempting to # execute a zipfile or directory by invoking __main__.py main_name =3D "__main__" try: return _get_module_details(main_name) except ImportError as exc: if main_name in str(exc): raise error("can't find %r module in %r" % (main_name, sys.path[0])) raise --8<---------------cut here---------------end--------------->8--- It allows to do: $ mkdir /tmp/foo $ echo print(42) > /tmp/foo/__main__.py $ python /tmp/foo Therefore, this $ python '' -c '0' just fails. Contrary to, $ cd /tmp/foo $ python '' -c '0' which just passes. To me, it is an oddity of the Python command-line which silently accepts a path; it is not documented by =E2=80=9Cpython -h= =E2=80=9D. Anyway, I agree that the behaviour when passing "" is up to the application, therefore it should be avoided. Cheers, simon