X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail.wtbts.no (mail.wtbts.no [213.234.126.131]) by lists.alpinelinux.org (Postfix) with ESMTP id BA4441EBFF2 for ; Tue, 4 Jan 2011 08:40:02 +0000 (UTC) Received: from localhost (bsna.nor.wtbts.net [127.0.0.1]) by mail.wtbts.no (Postfix) with ESMTP id E10A9AE4002 for ; Tue, 4 Jan 2011 08:40:01 +0000 (UTC) X-Virus-Scanned: Yes Received: from mail.wtbts.no ([127.0.0.1]) by localhost (bsna.nor.wtbts.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id obJUdT8h9nBZ for ; Tue, 4 Jan 2011 08:40:00 +0000 (UTC) Received: from mail.ytre.org (extmail.nor.wtbts.net [10.65.72.14]) by mail.wtbts.no (Postfix) with ESMTP id B68C9AE4001 for ; Tue, 4 Jan 2011 08:40:00 +0000 (UTC) Received: from mail.ytre.org (localhost [127.0.0.1]) by mail.ytre.org (Postfix) with ESMTP id 72DD560A89E56 for ; Tue, 4 Jan 2011 08:40:00 +0000 (UTC) Received: from ncopa-desktop.nor.wtbts.net (unknown [10.65.65.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@ytre.org) by mail.ytre.org (Postfix) with ESMTPSA id 5303E60A89E52 for ; Tue, 4 Jan 2011 08:39:59 +0000 (UTC) Date: Tue, 4 Jan 2011 09:41:33 +0100 From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] The install_if feature in apk-tools Message-ID: <20110104094133.1b4895c5@ncopa-desktop.nor.wtbts.net> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; x86_64-unknown-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Hi, We are implementing a feature that we call "install_if" which will make it possible to do proper language subpackages. If we take squid as example, you have squid main application and a subpackage with error messages. In the subpackage squid-lang-se you have: install_if="squid=$pkgver lang-se" this means if you have squid installed (or pulled in as dependency) and have added the 'lang-se' virtual package, you will automatically get squid-lang-se pulled in. In other words, you can do: 'apk add lang-se' and all packages that has support for swedish language/locale will be pulled in. This is alos useful for kernel flavours and 3rd party drivers. Forexample, dahadi-linux-grsec could have: install_if="linux-grsec=$_kernelver dahdi" so if you install dahdi and have linux-grsec installed, then will the dahdi-linux-grsec package be pulled in too. If you replace the linux-grsec with linux-vserver then will also the kernel driver be replaced with the proper driver package for that kernel. Now I have a couple of questions: * 1 language packs. Some packages has pretty many different locales. For example gtk+ has 107 different. I wonder if we should group them some how to keep number of packages down. Ideas on how to group the sanely? Or we accept that we suddenly get 1 zillion language packages? * Do we want use-flags like features for things like mysql, radius etc? For example, if you install a virtual 'mysql-support' package, then will all packages that has a mysql plug automatically pull those in? For example, i you install php you'll get php-mysql pulled in. If you install asterisk and postfix will also asterisk-mysql and postfix-mysql be pulled in. If you uninstall the virtual 'mysql-support' then will php-mysql, asterisk-mysql and postfix-mysql go with it. I am not sure how useful such 'mysql-support' feature will be. Thoughts? --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---