X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 22856DCDF98 for ; Wed, 4 Feb 2015 10:01:41 +0000 (UTC) Received: by mail-lb0-f180.google.com with SMTP id b6so567420lbj.11 for ; Wed, 04 Feb 2015 02:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=zxtg+TZP5bajdVGYtc99euKrOlgEIQdWEd9H4IBQFRU=; b=cyfAxJno0tUyMojuD/Tx80uqoaQl5Pv/rmeXYqwB42sAaTz6BT5dbH1MLW456vz0EJ l8p66sJVXOY+5JDq1R6dOb9IMfdYjax8zlQ/dj8onhkBKTf4vON/EPGj9ftJcGJE/AOK RWdP4y+K85KaIK8JK6MGbFX6rUX7Sl//jlqvvqOhhKytxkLKwrz+yL2N3/lEHVQg9flv HJA8hzS9AgAosJH2T/y3t8PbFaNQMq0TwvtzYZKchrV7zOmZa1VvK9A6h2N+AeB2ZDRN HsIayGGsKrRx9VwFvVxg1DsBGAX588aCabnkFlXXzNNRtSezFH/zHmrhhEzYdXQ2w82p zNJA== X-Received: by 10.112.98.202 with SMTP id ek10mr29475130lbb.30.1423044099306; Wed, 04 Feb 2015 02:01:39 -0800 (PST) Received: from vostro ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by mx.google.com with ESMTPSA id r7sm250709lbs.37.2015.02.04.02.01.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 02:01:39 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Wed, 4 Feb 2015 12:01:12 +0200 From: Timo Teras To: Orion Cc: "alpine-devel@lists.alpinelinux.org" Subject: [alpine-devel] Re: apk-tools - In need of a minimal spec Message-ID: <20150204120112.7a159181@vostro> In-Reply-To: <20150204014231.091729cf@twinpeaks.my.domain> References: <20150202003218.6209a4a2@twinpeaks.my.domain> <20150202111718.66140f1d@vostro> <20150204014231.091729cf@twinpeaks.my.domain> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) 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 On Wed, 4 Feb 2015 01:42:31 -0800 Orion wrote: > I've began to try define the syntax/keywords used inside > the /lib/apk/db/installed . Let me know if I'm on the right track. > http://wiki.alpinelinux.org/wiki/Apk_spec Yes, mostly. I could probably fix / update some details too. It might be an idea to explain that the same file format is used for both: installed database, and the package index file. The index file contains a subset, and installed database has some additional fields. Please remove the 'blob' term there. Blobs are internal implementation detail. apk_blob is basically a pointer + length structure. On the index/database file it is just a specifically formatted text string. Also, there's a convention that capital letter fields are mandatory. Apk refuses to install the package if it recognize it. Lower case letters are optional support, and apk will give warning but accept to install it. Maybe it'd be good as a table with columns: - Field letter - Description - Field data format - Allowed in installed-db / package-index For APKBUILD we already have some other wiki pages, and it's not read by apk-tools so that can be left out. Over all, for the fileformats. It'd need also a section for index file and it's structure, the installed db file structure, and the package file structure. I do have some notes on these. But it's not in any formatted way. I should take time to write it to the wiki page. Thanks for the effort so far :) /Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---