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 0823C1EBFEF for ; Mon, 13 Dec 2010 15:23:02 +0000 (UTC) Received: from localhost (bsna.nor.wtbts.net [127.0.0.1]) by mail.wtbts.no (Postfix) with ESMTP id B9BACAE4002 for ; Mon, 13 Dec 2010 15:23: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 Bb2airh8DeMf for ; Mon, 13 Dec 2010 15:23:00 +0000 (UTC) Received: from mail.ytre.org (extmail.nor.wtbts.net [10.65.72.14]) by mail.wtbts.no (Postfix) with ESMTP id B4785AE4001 for ; Mon, 13 Dec 2010 15:23:00 +0000 (UTC) Received: from mail.ytre.org (localhost [127.0.0.1]) by mail.ytre.org (Postfix) with ESMTP id 85A8A60EE14A6 for ; Mon, 13 Dec 2010 15:23: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 6C48760EE14A4 for ; Mon, 13 Dec 2010 15:22:59 +0000 (UTC) Date: Mon, 13 Dec 2010 16:22:56 +0100 From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] new aport utility: ap Message-ID: <20101213162256.056c0e23@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, I am working on a lua module called 'aports' and a utility to parse the aports tree. It is supposed to answer questions like: * what aport provides package libfoo? * what in what order should the following packages be built? * what APKBUILDs depends on given package? Note that apk packages and aports are 2 different things. For example, the aport 'openssl' provides the following packages: openssl, openssl-dev, openssl-doc, libcrypto1.0 and libssl1.0. Some examples of current implemented functionallity: usage: ap -d SUBCOMMAND [options] Subcommands are: builddirs recursdeps list revdep Some examples: To list all packages built in ~/aports/main: ap -d ~/aports/main list ... List the build dirs in build order for libpq and openssl: $ ap -d ~/aports/main builddirs libpq openssl Will give: /home/ncopa/aports/main/openssl /home/ncopa/aports/main/postgresql List all packages that needs recompile when python is upgraded to new ABI: ap -d ~/aports/main revdep python-dev python List all aports in build order that needs recompile when python is upgraded to new ABI: ap -d ~/aports/main revdep python-dev python \ | xargs ap -d ~/aports/main builddirs List all aports in build order: ap -d ~/aports/main list | xargs ap -d ~/aports/main builddirs We need a config file (/etc/ap.conf?) where you can list your aports dirs. I am interested in feedback: Is 'ap' a good name for this command? Do we want 'ap ' or ap-subcommand as a symlink? or separate file? Are the 'builddirs' 'revdeps' and 'recursdeps' good names for subcommands? Maybe 'builddirs' should be renamed to 'where-is'? Maybe 'revdeps' should be renamed to 'who-needs'? Maybe 'recursdeps should be renamed to 'all-deps'? The tool is in abuild.git if someone wants to try it. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---