Received: from welho-filter2.welho.com (welho-filter2.welho.com [83.102.41.24]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id DD552782B99 for <~alpine/devel@lists.alpinelinux.org>; Fri, 29 May 2020 13:37:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by welho-filter2.welho.com (Postfix) with ESMTP id 020CD22B80; Fri, 29 May 2020 16:37:57 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter2.welho.com [::ffff:83.102.41.24]) (amavisd-new, port 10024) with ESMTP id ZoxrUB-_c7yp; Fri, 29 May 2020 16:37:56 +0300 (EEST) Received: from kanala.intra.lvi-keskinen.fi (178-75-143-27.bb.dnainternet.fi [178.75.143.27]) by welho-smtp1.welho.com (Postfix) with ESMTP id EB09C7A; Fri, 29 May 2020 16:37:53 +0300 (EEST) Received: from kanala.intra.lvi-keskinen.fi (kanala.kunkku.net [127.0.0.1]) by kanala.intra.lvi-keskinen.fi (8.15.2/8.15.2) with ESMTP id 04TDbng9815257; Fri, 29 May 2020 16:37:50 +0300 Received: from localhost (kaarle@localhost) by kanala.intra.lvi-keskinen.fi (8.15.2/8.15.2/Submit) with ESMTP id 04TDbllZ815253; Fri, 29 May 2020 16:37:48 +0300 X-Authentication-Warning: kanala.intra.lvi-keskinen.fi: kaarle owned process doing -bs Date: Fri, 29 May 2020 16:37:47 +0300 (EEST) From: Kaarle Ritvanen X-X-Sender: kaarle@kanala.kunkku.net To: Jakub Jirutka cc: ~alpine/devel@lists.alpinelinux.org Subject: Lua module package dependencies Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Hi Jakub, A few weeks ago there was a discussion on packaging Lua modules on #alpine-devel, which was triggered by commit 59e37c7f6d3da19f5a14aa07e02f06e23f29f40e. Before making any further changes, we decided to ask your opinion because you are the maintainer of a significant number of such packages. We identified three issues in the current way of packaging: 1. Most of the packages (or Lua version-specific subpackages) depend on lua. This has the effect of pulling the command line interpreter in as a dependency, which is not always necessary. 2. The conditional install rule (install_if) of version-specific subpackages is tied to lua instead of lua-libs. Hence, subpackage installation is not triggered when the interpreter library is installed without the command line tool. For example, running "apk add lua-posix uwsgi-lua" will not result in installation of lua5.3-posix, even though uwsgi-lua uses the Lua 5.3 interpreter. 3. Installing a package that a) contains only pure Lua modules, b) does not have version-specific subpackages by itself, and c) depends on module packages that have version-specific subpackages sometimes results in installation of unnecessary subpackages. We thought the issues could be solved as follows: 1. Either remove the dependencies to lua or switch them to lua-libs. 2. Use lua-libs instead of lua in the install_if definitions. 3. For packages containing only pure Lua modules, create empty version-specific subpackages which depend on a) the main package and b) version-specific subpackages containing the required modules. The main package would contain the module files but have no dependencies. Please let us know what you think of this, and feel free to suggest alternative solutions. BR, Kaarle