From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id CDE7F386103F for ; Wed, 24 Feb 2021 11:03:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CDE7F386103F Received: by mail-pl1-x62f.google.com with SMTP id u11so962901plg.13 for ; Wed, 24 Feb 2021 03:03:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=2qVsVMqAM+sTjQ0Q277+29+3rZVzjPU4sI7tLksCsBw=; b=dI5hjUhm/Z+fkHe2mvF2EMPAa7OTuTRa1TzdFl38jWaaSOmJMMvX0bib7zjmsg16XT SM+GzOX48c07bsFG5WpyWO4dq4k18GpxvbxdRg75V02g5lqWkCOCcNN1KE583rX4dztD xQ/vAtVPCiRZo7H8/0HkrNbwUPjdOYix/eYtWT5EVgcLOXkgF9Dc0TCMEf+EAJTCePFO GXYGgC7K8n+sMq7DTIOifBrmp4C92aPWTgHhyJ/8uTqc0snyXFStblUJKX276tk25ZSb uhQCusOfjqsvniohPbHYyLKUPExdjffJ/uVVfqlX7Te/kmMx9UFrY1OCvwrbQL1rU/B8 PiPg== X-Gm-Message-State: AOAM530YPXIlUJV5i3Nqe2vGHW9ikBWwi4kyxNWVoGUOpVPI/ICS+cw5 bwBN5ZQ2jcdfcj0vRowaBUnqNziWkYY= X-Google-Smtp-Source: ABdhPJyDNB3DIz7kz4BFi9yWd7GbsV+pdrhYjQIbHJ8RSLEf75gE/9Iqs35tc8kDDE7WiXY36bp7iQ== X-Received: by 2002:a17:903:2306:b029:de:18e9:f439 with SMTP id d6-20020a1709032306b02900de18e9f439mr7292488plh.38.1614164604156; Wed, 24 Feb 2021 03:03:24 -0800 (PST) Received: from [192.168.3.4] ([2400:2411:aa20:4300:dd69:85d8:eb03:2035]) by smtp.gmail.com with ESMTPSA id k11sm2271227pfc.22.2021.02.24.03.03.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Feb 2021 03:03:23 -0800 (PST) Date: Wed, 24 Feb 2021 20:03:23 +0900 From: Lemures Lemniscati To: cygwin-apps@cygwin.com Subject: Re: Multiple version of Lua with alternatives In-Reply-To: <23c166d6-1668-f422-4b02-0c217d9224e5@SystematicSw.ab.ca> References: <23c166d6-1668-f422-4b02-0c217d9224e5@SystematicSw.ab.ca> Message-Id: <20210224200321.589E.50F79699@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.75.02 [ja] X-Antivirus: Avast (VPS 210223-0, 2021/02/23), Outbound message X-Antivirus-Status: Clean X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2021 11:03:27 -0000 On Tue, 23 Feb 2021 23:53:08 -0700, Brian Inglis > On 2021-02-23 22:20, Marco Atzeri via Cygwin-apps wrote: > > On 24.02.2021 05:18, Lemures Lemniscati via Cygwin-apps wrote: > >> On Sat, 20 Feb 2021 19:15:38 +0900, Lemures Lemniscati > >>> On Sat, 20 Feb 2021 08:40:33 +0100, Achim Gratz > >>>> Lemures Lemniscati via Cygwin-apps writes: > >>>>> * A new source luarocks provides lua53- and lua54-luarocks. > >>>>>    They install rocks into an alternative tree /var/lib/lua-site/. > > >>>> That looks wrong to me, I'd have expected > >>>> /usr/share/lua/luarocks > >>>> or maybe /usr/local as a prefix depending on how much emphasis you want > >>>> to put on the user-installable part.  The /var/lib tree is for local > >>>> state information per FHS, not installed components. > > >>> Thank you for review. > >>> I've fixed it, so that luarocks should install rocks into > >>> /usr/share/lua/luarocks, and updated packages [1]. ^^^^^^^^^ (Sorry I accidentally replaced it by '/usr/local' in the original mail: it is still /usr/share/lua/luarocks ) > >> I'm wondering again it would be better for luarock to install into /usr/local > >> tree. > > > usually installation with a similar subtree are installed > > under usr/lib > > $ find /usr/lib -name bin > > there are few cases under usr/share > > but usually are sub-sub trees > > $ find /usr/share -name bin > > > we have nothing "current" installed under usr/local > > at all. No package should be installed there > > Indeed - that's where I stash all my personal Cygwin scripts and exes. > > Another good spot is /usr/libexec/ which is well populated by the likes of git plumbing and other packages. I prefer the packages that populate subdirectories rather than littering the top level like geoclue and gvfsd. > Thank you for advices! I've understood that we should avoid /usr/local. And, choices for a tree-prefix where luarocks will install rocks are: 1) luarocks_tree=/usr/share/lua/luarocks 2) luarocks_tree=/usr/lib/lua/luarocks 3) luarocks_tree=/usr/libexec/lua/luarocks And rocks will go: ${luarocks_tree}/bin ${luarocks_tree}/lib/lua/5.3 ${luarocks_tree}/lib/lua/5.4 ${luarocks_tree}/lib/luarocks/rocks-5.3/ ${luarocks_tree}/lib/luarocks/rocks-5.4/ ${luarocks_tree}/share/lua/5.3 ${luarocks_tree}/share/lua/5.4 I don't know which is the best. Current choice is still /usr/share/lua/luarocks [1]. [1]: https://cygwin-lem.github.io/lua-cygwin-packages/ Regards, Lem