X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id EBC3FDC00AE for ; Fri, 3 Jan 2014 11:20:53 +0000 (UTC) Received: by mail-pd0-f176.google.com with SMTP id w10so15292299pde.35 for ; Fri, 03 Jan 2014 03:20:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=A2z5ti50Ir2K1sqKE7pnYWSi9BfzqqpVmwOEDmos30M=; b=rKb1y/kME+D+4x5+Pcts0E9Zg0ywM/A9j+3rTUaDsPoHT9WmWLG8Blhmcex5Sr3rtH /DzBX+HPwDpEszWa7kqcN2S+HmV3A4aqzy6HVZmbAD9WiVmayxJXGgASN/YlslOrHzGD kdCjftUM+Nr7nA9zrPeXDj6ejo1EMvDOGnXWt0LmjkUGRYwYLwrrSIlOpaTknC37PwFY IA9t2wCDDYX60mtv8VwIH37/0TtBQ1qXD2dN0L6lyAShwjHynsSvVH2Dj0LxMw7E4sqn TUZ8nJBI2E91bnsY72uUmlXiYFI6hbAbwC0p49eel/INuPXbVnPaSrmeqliGNMKeHSXw o4Hw== X-Received: by 10.66.182.199 with SMTP id eg7mr94730017pac.135.1388748050466; Fri, 03 Jan 2014 03:20:50 -0800 (PST) Received: from microknoppix.localnet ([117.232.220.85]) by mx.google.com with ESMTPSA id m2sm108194728pbn.19.2014.01.03.03.20.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Jan 2014 03:20:49 -0800 (PST) From: "V.Krishn" Reply-To: vkrishn4@gmail.com To: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Avoiding bloat for Lua 5.1/5.2 modules Date: Fri, 3 Jan 2014 16:31:36 +0530 User-Agent: KMail/1.13.7 (Linux/3.9.6-64; KDE/4.8.4; x86_64; ; ) References: <20131231120758.50b5d559@ncopa-desktop.alpinelinux.org> <201401030119.26938.vkrishn4@gmail.com> <20140103084550.0f4a2210@ncopa-desktop.alpinelinux.org> In-Reply-To: <20140103084550.0f4a2210@ncopa-desktop.alpinelinux.org> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201401031631.36158.vkrishn4@gmail.com> On Friday, January 03, 2014 01:15:50 PM Natanael Copa wrote: > On Fri, 3 Jan 2014 01:19:26 +0530 > > "V.Krishn" wrote: > > On Tuesday, December 31, 2013 04:37:58 PM Natanael Copa wrote: > > > Hi, > > > > > > I am a bit in doubt how to handle the Lua modules and 5.1 and 5.2 > > > compat. > > > > > > I originally wanted to have lua5.1- and lua5.2- > > > packages because that would allow us to avoid bloat. You could have a > > > pure lua5.2 system. > > > > > > I am not so sure anymore. > > > > > > What I wanted: > > > * separate arch specific modules (compiled C code) for 5.1 and 5.2 so > > > > > > we don't get both installed unless wanted. Example: lua-filesystem. > > > > > > * join arch agnostic lua modules (pure lua modules) and use symlinks > > > > > > for 5.1/5.2 compat. Since they normally support both 5.1 and 5.2 the > > > code itself is identical. Rather than install 2 copies of same lua > > > code, we want use symlinks. Example: lua-penlight. > > > > > > * the lua- (without lua version) should pull in both > > > > > > lua5.1-module and lua5.2-module. (or pull in the "current" lua > > > version of the module) > > > > > > Now, this becomes a bit compilcated when dealing with dependencies. > > > Lets take the example with lua-penlight and lua-filesystem. > > > > > > Since lua-penlight is a pure lua module and supports both 5.1 and 5.2 > > > we want use symlinks. So lua5.1-penlight is just a symlink to > > > lua5.2-penlight. However, if lua5.1-penlight depends on lua5.2-penlight > > > it will also pull in the lua5.2-penlight dependency lua5.2-filesystem - > > > which we don't want for lua5.1-penlight. > > > > I am little confused if, > > lua5.1-penlight ===============. > > > > | depends on || > > > > V depends on V > > > > lua5.2-penlight --------------> lua5.2-filesystem > > > > does this not mean lua5.2-filesystem is required by > > lua5.1-penlight to run ? > > You are right. This is how it is right now. lua5.2-filesystem is pulled > in as a dependency for lua5.1-penlight, but it is lua5.1-filesystem > that is required for the penlight runtime to actually run, not > lua5.2-filessytem (which is "unused", bloat). And since > lua5.1-filesystem is currently not pulled in, it is actually broken. > > That's why I raised this question. Its currently broken, how do we fix > it properly? > > > 1. Is it possible to estimate the % usage of users still wanting v5.1 ? > > I don't think anybody actually wants 5.1, but there might be some that > depends on modules that is not yet ported. Oh, the lighttpd developers > don't want add support for lua 5.2 for the current stable branch. > > > What I was initially thinking if AL v2.7 was marked as transitional > > version then 2.8, 2.9 to 3.0 could be made to be a clean-up phase. > > (my initial thouht was of lots of other pkgs newer additions) > > Well, the idea is more or less, alpine edge is a rolling release. Every > 6 months we take what we have and ship a vX.Y release that we support > for 2 years. > > > In all, any higher and better version should have least overhead/bloat > > and clean installation , meaning for users in AL v2.8 installing lua 5.1 > > would come with some minor-over head, and for AL v3.0 lua 5.1 may/maynot > > be available. If available the over-head may be even larger and likely > > having both versions may not work. > > In reason with available developer resources, I think such scenario may > > be acceptable. > > So if you pick Lua 5.2 (or Lua 'current') you'll don't get the compat > bloat. If you use lua5.1 (or Lua 'previous') you might get some unused > compat packages. > > I suppose that would be a better option than do the full separation. Full separation has more benefits: 1. no efforts require to test/check common pkgs compat. 2. more visible what packages that are available for each lua version. 3. overall less efforts to pkgs both version. 4. would be easier to pkgs even newer v5.3 or above. 5. easer to set backward compat with other application. 6. ensures both work properly (important). 7. cleaner install/uninstall. If need for 5.1 is less, why bother put efforts in creating common pkgs. Anyone wanting older version may understand and take the bloat of installing both or just the older one. But than, the best way to weigh this would be against efforts and resources we have / required to achive this. > > Ok... > > Then the options are: > > 1) lua5.2- -> no bloat > lua5.1- -> might give some bloat for compatibility (might or > might not pull in some unused lua packages) > > 2) don't have version number in lua- packages. The module will > always include the lua variant til its no longer needed. > > Option 1 will make it more visible what packages that are available for > each lua version. (apk search lua5.2-*) > > I think I am slightly in favor for option #2 though. > > > 2. Is it not easy to just add older repo and install lua 5.1 ? > > Problem are if some package that we need/want (acf, prosody, awesome) > depends on lua 5.1. We cannot depend on packages in other repositories. We need to ensure 5,6,7 above. -- Regards. V.Krishn --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---