X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by lists.alpinelinux.org (Postfix) with ESMTP id 35A4B5C5419 for ; Mon, 1 May 2017 23:48:33 +0000 (GMT) Received: by mail-qk0-f173.google.com with SMTP id u68so20174548qkd.0 for ; Mon, 01 May 2017 16:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dereferenced-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bjgEfK8ksuhm8E7mxfs55aifiBGVvAXpkwaFEtVHcr8=; b=xzjIc/tl63Sy7+WYI0cBSgfI5eMZGFdmzdUr00IGM11NEEU00VTH22kcKVxx0ifRAR c59uDnURFkzBpOlzmdB91EvuUPTT8Zetbr4yH1bHCYdV40g1SpTyvQpWTWlpz0V3Z/Bz qAPGsa2GkyHJ/Tzwqo/zY8gPcIXLQhCUdp9PgxpY3J8I+EuEwLQLFpNjiEvELP+D/i38 eEYYZHjPrTEVjxig3fprh6pAX8VEU73ApFi2rJJ4Naz1uURRYC3FBR5EvJm7JJg08dS7 wAoaF/Yy8BJq/kWKh+ZPAzIXYP2aTd1rqQgpsBvt7oDQ7cjBupWq9JUjTDu5hFuHY3Nv 0Okw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bjgEfK8ksuhm8E7mxfs55aifiBGVvAXpkwaFEtVHcr8=; b=NIz2XlGhVIW1abKozJaSGvjAdT7p3hY4h0Ml8IkaHALF69b3XjDp4ZaS+WQEh0u+HM UFQGg3g02cbgcfuwhEs4xAc4FAY7GrxvE1yREIraBprytKlQ9kkk65r/dYKb7B6TMQHD 7wSN1oBWUF1wODl7+GLfwUHviqSHYPg4N+xad+W0bwmsao4uL6dlEgVBsRWqkNEh1L6x Td3e+HIcz+Zzbu4aL6szu74D+Ubnpbbgu9PQCVqxfQ5OvqsQxNBJ9AFPPXQcpIFKoChx 69kNoMVwf+eH76wraKnSdMKlfZ14I/Bjzs2wVA08LO1vXpbX38eIlumhPXQminmX8SCo GOYQ== X-Gm-Message-State: AN3rC/7RYfVfuCdrbzcr91OaMhxBoPG/Xxyk+plvIH3tiphJ3mu8Q9ep MuT5/tFodqF2Z5j2hnZH5YcT4Xs3yg== X-Received: by 10.55.217.155 with SMTP id q27mr25784756qkl.217.1493682512529; Mon, 01 May 2017 16:48:32 -0700 (PDT) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.200.3.209 with HTTP; Mon, 1 May 2017 16:48:32 -0700 (PDT) In-Reply-To: <20170501150510.36d36590@ncopa-macbook.copa.dup.pw> References: <20170429142041.74314721@ncopa-macbook.copa.dup.pw> <20170501150510.36d36590@ncopa-macbook.copa.dup.pw> From: William Pitcock Date: Mon, 1 May 2017 18:48:32 -0500 Message-ID: Subject: Re: [alpine-devel] checkdepends and bootstrapping new releases To: Natanael Copa Cc: alpine-dev Content-Type: text/plain; charset=UTF-8 Hello, On Mon, May 1, 2017 at 8:05 AM, Natanael Copa wrote: > Hi, > > On Sat, 29 Apr 2017 16:51:52 -0500 > William Pitcock wrote: > >> Hi, >> >> On Sat, Apr 29, 2017 at 7:20 AM, Natanael Copa wrote: >> > Hi, >> > >> > I think we have an issue with checkdepends in APKBUILDs. The problem is >> > that lua-aports does not pull in the the checkdepends as build time >> > dependency while calculating the build order. >> > >> > We have 2 alternatives: >> > >> > - always pull in the checkdepends. >> > >> > This will make sure that the checkdepends are always built before the >> > package needing it. But this also means that we need to make sure >> > that we don't introduce any circular dependencies via checkdepends. >> > >> > - bootstrap new releases without running tests. By building the repo >> > without any tests on the first run will allow us to have circular >> > dependencies, but then we will not run any tests for our stable >> > release (only updates will get the testing), or do we want rebuild all >> > the package which checkdepends? >> > >> > Opinions? >> >> I think we should prefer bootstrapping without tests. >> The reason why is that the tests may fail *anyway* under bootstrapping >> conditions (due to cross compiling, etc). >> So tests should probably just be run when we're not bootstrapping. > > I'm not talking about the initial boostrap of toolchain and abuild. I > am talking about the next step, when we have a working abuild and > aports-build and will build the rest of the repositories. If we disable > checks, it means that the releases are built without checks. > > This is actually not only affect when we build new releases from > scratch, but also affects edge. > > What happens if you push 2 commits, one with new aport for a new > language (lets call it newlang). The checkdepends needs a new library > implemented in newlang. The second commit has this library (lets callit > newlib). > > --- > pkgname=newlang > checkdepends=newlib > --- > pkgname=newlib > depends=newlang > > Now the question is, how should the build resolver handle this? > > The correct thing to do would be to build a temporary newlang with > tests disabled, use this to build newlib and finally re-build newlang > with tests enabled. But this is not implemented on lua-aports and is > sort of complicated since it needs to be auto detected. > > In other words, its the classic bootstrap problem. Same as we had when > pkg-config who depended on glib and glib depended on pkg-config. > > Also, what if an upgrade needs a newer version of the checkdepends? > then we need to build the checkdepends before the package needing it, > which means that we need to pull in the checkdepends in the dependency > tree to figure out the build order. This means that the build-order > resolver needs to figure out a good way to handle circular dependencies > anyway. > > One option is that we could make the 'check' opportunistic, that we > only run check after verified that checkdepends is not circular (for > example when there are no checkdepends at all), but i dont like that > either because then it becomes unpredicatble if checks are run or not. > > I think the check is something we really want, Jirutka's detect of the > libressl issue clearly shows that. > > But I don't know how. Might be we need disable the checks for 3.6 > release and solve those issues properly after the release. I think we make aports rebuild scripts calculate checkdepends as part of the dependency, unless it is doing an initial build of the distribution. If it is an initial build, then we do not run check like I said before. What may be interesting is to build the distribution and then use that distribution to rebuild itself with checks enabled. In short, it should be a policy option instead of opportunistic. William --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---