X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id AEE50DC00CD for ; Tue, 30 Oct 2012 06:07:44 +0000 (UTC) Received: by mail-ea0-f182.google.com with SMTP id c10so2503041eaa.13 for ; Mon, 29 Oct 2012 23:07:42 -0700 (PDT) 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 :x-mailer:mime-version:content-type:content-transfer-encoding; bh=WDf3al37skdm5p0XDy289oLNoBPQYStUv4r6oEQzRgI=; b=qS1pCRQDDSpOBtEOZMxpnviQlSfMdu4eDNljnzbIwkTL07C9J2LMojGXOCzv/Tlwhy 1cxgohBlvIwpB0GwFBcMDl2UIoDxqrmvL2YrkDzxBrwE4y2Qbccbn3z1xydBO/1gtiBh U7F9ZzS0DXCrPhHZ6gEvNN1aRxznAkMKauX/Ls9+C4z5bZmQOiZc8mjnYYIwTHu60Ae+ uOp2OV+k234L/+BdwrapJ4UNG2SS3ut99uUUB1BtLtcEYR1x1HH/kP0IBX0DU/ScBkxL sb0Ml93PkrLcVvdczdE8A6QwDA0sdTbYI8s9facJcZb4FtTD2lqNz/bm0bb/yjboX7ks eiog== Received: by 10.14.194.71 with SMTP id l47mr69273605een.6.1351577262645; Mon, 29 Oct 2012 23:07:42 -0700 (PDT) Received: from vostro ([2001:1bc8:101:f402:21c:23ff:fefc:bf0b]) by mx.google.com with ESMTPS id f3sm27234373eeo.13.2012.10.29.23.07.41 (version=SSLv3 cipher=OTHER); Mon, 29 Oct 2012 23:07:42 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Tue, 30 Oct 2012 08:06:26 +0200 From: Timo Teras To: Dubiousjim Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Questions about apk CMD -U Message-ID: <20121030080626.778185d0@vostro> In-Reply-To: <20121029225747.GD16841@vaio.jimpryor.net> References: <20121029181737.GB16841@vaio.jimpryor.net> <20121029204343.501bef56@vostro> <20121029191524.GC16841@vaio.jimpryor.net> <1351540938.8606.2.camel@Nokia-N900> <20121029225747.GD16841@vaio.jimpryor.net> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; 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 On Mon, 29 Oct 2012 18:57:47 -0400 Dubiousjim wrote: > If one does have multiple repositories listed in one's > /etc/apk/repositories or /etc/apk/repository.d/*.list files, and > several of those repos contain foo-1.23-r0.apk, but the package > binaries differ, is there any system to which repository will be used? Yes - but it is not trivial and depends on the action executed. If everything looks identical - package version, dependencies, etc. Then in practice apk prefers the repository listed first. In case of *.list files, it is currently the physical order in which those files are read. And that can be hard to predict. > Here's why I ask. I'm still in the process of shifting myself into > Alpine. From past experiences with Arch and FreeBSD, I've noticed the > following pattern. I tend to accumulate a bunch of packages which are > in the official repositories, but for which I want to customize the > build. The way I've settled into doing this is to have a personal git > branch in my aports repo. Then when the official APKBUILDs get > updated, I'll see the changes when I try to merge the master branch > with my personal branch. > > But what version should I give my custom packages? Ideally, I'd want > to be able to insert any number of my own revisions in between the > official foo-1.23-r0 and foo-1.23-r1. I'd also want to be able to > insert any number of my own revisions before the official > foo-1.23-r0, if I end up building that before it appears in the > official repositories. If there's some way to insert my packages into > gaps in the existing versioning space, terrific. > > If not, then I'm guessing the best thing to do is to name my custom > package foo-1.23-r0 also. It will be a different binary than the > official foo-1.23-r0. But if I arranged for my local package > repositories to be searched first, then I'd be sure to always get my > home-built packages, unless the official binary gets ahead of me > version-wise. This is why I'm asking which repos in one's > /etc/apk/repo** files have priority over the others. > > I'm sure others have come up with schemes to deal with this. I'd > welcome any feedback about what tends to work best. If you want to make sure you use always your custom package - add your own repository with @ownrepo tag, and use "apk add mypackage@ownrepo" to add them. The repository pinning overrides even version matching and upgrades - if necessari it will downgrade packages to make it work. Alternatively you should modify the version. If the -rN level does not matter. Then you could add _p1 suffix before it - e.g. foo-1.2.3_p1-r0. Though, there are few packages that use the _pN suffix on their main versions (you can still suffix with second _pN too). Perhaps we should fix the -rN field to allow decimal point for "customized" builds or similar, like '-r1.1'. Any opinions on this? Or any other ideas? - Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---