X-Original-To: alpine-devel@lists.alpinelinux.org Received: from newmail.tetrasec.net (unknown [172.21.74.12]) by lists.alpinelinux.org (Postfix) with ESMTP id C85255C4995 for ; Mon, 1 May 2017 13:05:21 +0000 (GMT) Received: from ncopa-macbook.copa.dup.pw (201-9-112-69.user.veloxzone.com.br [201.9.112.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by newmail.tetrasec.net (Postfix) with ESMTPSA id 3BBFC5A12E0; Mon, 1 May 2017 13:05:20 +0000 (GMT) Date: Mon, 1 May 2017 15:05:10 +0200 From: Natanael Copa To: William Pitcock Cc: alpine-dev Subject: Re: [alpine-devel] checkdepends and bootstrapping new releases Message-ID: <20170501150510.36d36590@ncopa-macbook.copa.dup.pw> In-Reply-To: References: <20170429142041.74314721@ncopa-macbook.copa.dup.pw> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; 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 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. -nc > William > > > --- > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org > Help: alpine-devel+help@lists.alpinelinux.org > --- > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---