X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.wtbts.no (mail.wtbts.no [213.234.126.131]) by mail.alpinelinux.org (Postfix) with ESMTP id 114531311CFC for ; Mon, 27 Jun 2011 18:22:31 +0000 (UTC) Received: from localhost (bsna.nor.wtbts.net [127.0.0.1]) by mail.wtbts.no (Postfix) with ESMTP id 5F512AE4002 for ; Mon, 27 Jun 2011 18:22:30 +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 H5PvevGNvM5J for ; Mon, 27 Jun 2011 18:22:28 +0000 (UTC) Received: from mail.ytre.org (extmail.nor.wtbts.net [10.65.72.14]) by mail.wtbts.no (Postfix) with ESMTP id 08944AE4001 for ; Mon, 27 Jun 2011 18:22:28 +0000 (UTC) Received: from mail.ytre.org (localhost [127.0.0.1]) by mail.ytre.org (Postfix) with ESMTP id BDB5B60A804CB for ; Mon, 27 Jun 2011 18:22:27 +0000 (UTC) Received: from localhost (unknown [10.65.96.20]) (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 9CBD860AA1CFD for ; Mon, 27 Jun 2011 18:22:27 +0000 (UTC) Date: Mon, 27 Jun 2011 20:22:20 +0200 From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] install scripts, triggers and subpackages Message-ID: <20110627202220.1f31aad4@alpinelinux.org> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.5; i686-pc-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, There is a need to predict all the files in an APKBUILD, including install scripts and trigger scripts for subpackages. Currently, you can set install="somescript" inside the subpackages split function. This means that is is impossible to know that subpackages have install or trigger script without running the split function itself. I am proposing the following change for install scripts: Install script variable holds a list of all scripts for main package and subpackage in the format: $name.$suffix $name-sub1.$suffix ... Where $name is the name of the package or subpackage and suffix is one of pre-install, post-install, pre-update, post-update, pre-deinstall and post-deinstall. The only change this is from what we do now with install, is that you need to add subpackages' install scripts there too instead of setting the script in split function. It seems like no subpackage has install script so no APKBUILD is affected by this change. Example: package foo with subpackage foo-libs where both have a post-install script: pkgname="foo" subpackages="foo-libs" install="foo.post-install foo-libs.post-install" ... I also suggest the followin change for triggers variable: Triggers variable holds a list of scripts and dirs that triggers the scripts in the following format: $name.trigger=path1:path2:pathN $name-sub1.trigger=path1:pathN This will break all apkbuilds that currently has a trigger. (busybox, dbus, desktop-file-utils, fontconfig, gdk-pixbuf, glib, gtk+2.0, gtk+3.0, gvfs, java-common, libc0.9.32, mkfontdir, mkfontscale, mkinitfs, shared-mime-info, syslinux and vlc) Example trigger for package foo with foo-libs subpackage where both have a trigger for /bin and /usr/bin will look like: triggers="foo.trigger=/bin:/usr/bin foo-libs.trigger=/bin:/usr/bin" Objections? Comments? Other ideas? -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---