zimoun <zimon.toutoune@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 44662) by debbugs.gnu.org; 26 Mar 2021 20:36:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 26 16:36:20 2021 Received: from localhost ([127.0.0.1]:42607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lPtBs-0002B1-7K for submit <at> debbugs.gnu.org; Fri, 26 Mar 2021 16:36:20 -0400 Received: from mx1.riseup.net ([198.252.153.129]:60482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <raingloom@HIDDEN>) id 1lPtBq-0002Ak-3I for 44662 <at> debbugs.gnu.org; Fri, 26 Mar 2021 16:36:19 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4F6Yf43CpnzDxt4 for <44662 <at> debbugs.gnu.org>; Fri, 26 Mar 2021 13:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1616790972; bh=XUb17lBULlWbS1X2tnfQFWAFi2cFwgTyeGsbxbwiqbs=; h=Date:From:To:Subject:In-Reply-To:References:From; b=djOz0AqmBjayiIQcaH3C9KiW4E2fFTg4xuQhRYDYMpEkGBOPR6h7z9CcrzWLPH5SH AdHTVkxH8gQyjiwjR/Q23fkPI5Vh97s6JLb+4lXAuQlzQ6YYIDMC7tAskHUz9djRW7 V5Hfe+ewdoiLFZs+nLcA3qE9mrFl6AQQK8lx89N4= X-Riseup-User-ID: C2F22758997F9A0E7231F886C0E2643C94B6D7D545DA95E6E1BBFEA110028BFA Received: from localhost (bc9cea23.catv.pool.telekom.hu [188.156.234.35]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by fews1.riseup.net (Postfix) with ESMTPSA id 4F6Yf352vvz5vhN for <44662 <at> debbugs.gnu.org>; Fri, 26 Mar 2021 13:36:11 -0700 (PDT) Date: Fri, 26 Mar 2021 21:29:49 +0100 From: raingloom <raingloom@HIDDEN> To: 44662 <at> debbugs.gnu.org Subject: Re: bug#44662: Lua search paths Message-ID: <20210326212949.5d954e44@HIDDEN> In-Reply-To: <86lfaa9sd8.fsf@HIDDEN> References: <20201115192441.0af831a5@HIDDEN> <86lfaa9sd8.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44662 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) On Fri, 26 Mar 2021 10:28:03 +0100 zimoun <zimon.toutoune@HIDDEN> wrote: > Hi, > > On Sun, 15 Nov 2020 at 19:24, raingloom <raingloom@HIDDEN> wrote: > > I have a very WIP branch adding search paths to Lua. > > https://git.sr.ht/~raingloom/guix-source/tree/raingloom/lua > > > > The problem is that Lua uses a different path format compared to > > most packages. Instead of a list of directories, it is a list of > > path patterns, each potentially containing a question mark ('?'), > > which gets substituted for the module being searched. > > From my understanding, it is a duplicate to > <<http://issues.guix.gnu.org/issue/25425>. Does it make sense to > merge them? > > > All the best, > simon Yup, a merge seems to be in order.
bug-guix@HIDDEN
:bug#44662
; Package guix
.
Full text available.Received: (at 44662) by debbugs.gnu.org; 26 Mar 2021 09:29:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 26 05:29:04 2021 Received: from localhost ([127.0.0.1]:40445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lPim7-0008Nb-UN for submit <at> debbugs.gnu.org; Fri, 26 Mar 2021 05:29:04 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:44003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zimon.toutoune@HIDDEN>) id 1lPim6-0008N0-3O for 44662 <at> debbugs.gnu.org; Fri, 26 Mar 2021 05:29:02 -0400 Received: by mail-wr1-f47.google.com with SMTP id x7so4915140wrw.10 for <44662 <at> debbugs.gnu.org>; Fri, 26 Mar 2021 02:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Dvvkmqj4XtQvmM3G5pWl+fVYAx9FyrlghIcjzpw/ugY=; b=pynkZvAefwOKiFYQLBwJcjSdrktdfmnYNxedt7/HZnxflAG7Vq1CUwnHGlCiGHFlfP oYjk/q35KFB7DUdgKP+EkZqM3dehqz3U8shwy2dX+vivPjX54yE5hlF0ejUKzf4UBZ4h kx/NIxWJ+QL4b3m935W2D6u9NggaSLzgX/uijRuPCrNNlv5QuECd0gTkEEDi/mrgbpob OMf9bpx+zpqe5m8//IEDl0YNaoZWSmGTiToiJsM5/301qp8pqPDEy8M3+TiOVrOkSwGi U3r2iaBjH0tg2nZ0+3YdFTvRYgPCd57u3lez6p6YBnFnc6bvZHU6kTmL31v1aGZXFrur sZPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Dvvkmqj4XtQvmM3G5pWl+fVYAx9FyrlghIcjzpw/ugY=; b=ZIU8wMHQSH7y7xmEDNwiK7SeUVonzXGMUZaaslGzkxJJjm4oZ9FGgAWC0/HTJW/9U5 3vG14hbB/Q9mBmq5AGumVEAKmt6ZaWQ4hPo6wWHpzqjgMOeDw9rss+G8bVRMTgvPk7rm KkHI05S1mCU0VGk6dqU/jleAkNPe4iX8SQFCWhHdtHG3OpeLfXJjpsQKJQWgggPynWjG Mv5iKq+Lm2/15tHgXxb7W/spoDSj1mhUO8elaZxHuE1RstPW7RDZfz+u/6tPzl0mN+Z+ 1RHWKRRcL/t9BAf62Eo5dwJPu9Z8Me6Z3QLYS58a4/hm5QZYNFtw7TfzBNCG2C3Ko5zd 7xrA== X-Gm-Message-State: AOAM530YpSoGgq51ABkxTqTJ0CfIivBvTUlyvGLc+cEWeASZ28pxbx8u JCdy8A4QaDQja6ydcmaDzphMId/QObQ= X-Google-Smtp-Source: ABdhPJzvIWZdfaNHoeO89Oo5fsUZyG4y8YFmVtncNn3vVscXW/2AOPkL561rTviJ6TI2dxGlhM/2pQ== X-Received: by 2002:a5d:6d41:: with SMTP id k1mr14022744wri.66.1616750936679; Fri, 26 Mar 2021 02:28:56 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id g16sm11803212wrs.76.2021.03.26.02.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 02:28:56 -0700 (PDT) From: zimoun <zimon.toutoune@HIDDEN> To: raingloom <raingloom@HIDDEN> Subject: Re: bug#44662: Lua search paths References: <20201115192441.0af831a5@HIDDEN> Date: Fri, 26 Mar 2021 10:28:03 +0100 In-Reply-To: <20201115192441.0af831a5@HIDDEN> (raingloom@HIDDEN's message of "Sun, 15 Nov 2020 19:24:41 +0100") Message-ID: <86lfaa9sd8.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44662 Cc: 44662 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi, On Sun, 15 Nov 2020 at 19:24, raingloom <raingloom@HIDDEN> wrote: > I have a very WIP branch adding search paths to Lua. > https://git.sr.ht/~raingloom/guix-source/tree/raingloom/lua > > The problem is that Lua uses a different path format compared to most > packages. Instead of a list of directories, it is a list of path > patterns, each potentially containing a question mark ('?'), which gets > substituted for the module being searched. From my understanding, it is a duplicate to <<http://issues.guix.gnu.org/issue/25425>. Does it make sense to merge them? All the best, simon
bug-guix@HIDDEN
:bug#44662
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 Nov 2020 18:28:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 15 13:28:58 2020 Received: from localhost ([127.0.0.1]:54145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1keMlm-0001jY-7W for submit <at> debbugs.gnu.org; Sun, 15 Nov 2020 13:28:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:54424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <raingloom@HIDDEN>) id 1keMlh-0001jN-VZ for submit <at> debbugs.gnu.org; Sun, 15 Nov 2020 13:28:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>) id 1keMlh-00033K-Pn for bug-guix@HIDDEN; Sun, 15 Nov 2020 13:28:53 -0500 Received: from mx1.riseup.net ([198.252.153.129]:50906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>) id 1keMlf-0006FF-Fs for bug-guix@HIDDEN; Sun, 15 Nov 2020 13:28:53 -0500 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4CZ11R4gt6zFdLq for <bug-guix@HIDDEN>; Sun, 15 Nov 2020 10:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1605464923; bh=9/WT3W/T3et1SiHlf3wtF2jwClPljhIqyo5IUru/Iak=; h=Date:From:To:Subject:From; b=S3rHOlHiCRFuHPQRBvikOPbm9ctJf2JTfDB6/nXzTSRKiS/TRNZP0WCIhU80xawNe pH4V/tt96aVakKPdlIi2qTf/GWMpboihlXDXyvcF0D/4/6hZb8DEUF4KN8j9jQCw6f ZEj9pwkWE2AqCACZYFNQxPlpYNHdutHMWG19Fh0s= X-Riseup-User-ID: 789E0E0279DA6F68E23422F231FAEF6FB22A7D5A544FD981292EEB944FCF6168 Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 4CZ11Q6PRsz8stX for <bug-guix@HIDDEN>; Sun, 15 Nov 2020 10:28:32 -0800 (PST) Date: Sun, 15 Nov 2020 19:24:41 +0100 From: raingloom <raingloom@HIDDEN> To: Guix Bugs <bug-guix@HIDDEN> Subject: Lua search paths Message-ID: <20201115192441.0af831a5@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@HIDDEN; helo=mx1.riseup.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/15 13:28:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) I have a very WIP branch adding search paths to Lua. https://git.sr.ht/~raingloom/guix-source/tree/raingloom/lua The problem is that Lua uses a different path format compared to most packages. Instead of a list of directories, it is a list of path patterns, each potentially containing a question mark ('?'), which gets substituted for the module being searched. For pure Lua modules, this basically means /lib/lua/5.3/?.lua and /lib/lua/5.3/?/init.lua. I am not aware of any practical use of paths that do not contain a '?', so there is a relatively easy solution here: use the string.gsub function to expand every path component that does not contain a '?' into two components, the ?.lua and the ?/init.lua one. This means externally defined components are not expanded, only the ones defined by Guix. For C modules, it's a bit trickier, because there is a special component that looks into loadall.so, which I must admit I'm not familiar with. As far as I know, popular modules all define their own shared object file, never a loadall.so. Also, the path is separated by semicolons, not colons, but I think Guix can already handle that. The approaches I see: - patch loadlib.c in Lua to expand LUA_PATH and LUA_CPATH according to the above mentioned heuristics, or - patch Guix to support paths of this format - define something like GUIX_LUA_PATH that gets expanded on its own and only contains Lua modules defined in Guix, and then gets appended to package.path (and do the same for package.path) Solving this would open up access to the huge variety of Lua modules and make things like game development in L=C3=96VE much better integrated. Its users could even use `guix pack` to distribute their games.
raingloom <raingloom@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#44662
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.