X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by lists.alpinelinux.org (Postfix) with ESMTP id 843995C498E for ; Tue, 31 Jan 2017 11:40:12 +0000 (GMT) Received: by mail-vk0-f54.google.com with SMTP id x75so234927051vke.2 for ; Tue, 31 Jan 2017 03:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=moIv9TzV4guqKU9S+xaopdBJNQ2IWeN3mQqLxwobLZs=; b=I2ZJ2gsMNs1jiUpzsjrJIHK46nfJqd/blAekPN1cbh92J1y8qn/yA/IH8Y0FK1jHEi UMVfE7MU3l0J7W/ZxFQqSUBG50JDNZxxT32GIGO1DejAtYnmTanczGZV+n4tEba28HX4 u4dkvtWUQDFneEETTijyXHE12hhgEEKnOk2D5LttSKUgMJopRrUuKGJ4z9qvhYZAJS5X IsnZZCKZfFI0cNbZIBG6xKncAy95u3c7GULtcQX2pyrCUq1kEqvetjUY8Ktqh6/lVN9z O6aKkbmIjMLk5UzGcdGpO7NSYJ0r8OsXTCoKtsX43hbGvH4cKcktYqlQCTM5S6RyZFLu ZpRg== 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; bh=moIv9TzV4guqKU9S+xaopdBJNQ2IWeN3mQqLxwobLZs=; b=ZKJUlbbUCxr4u9s0vPikzE3ninzjPKSeBFC0UVkuIA8Vofti5uzZxtuWLnfhvjoG4a zKJwnDdByKSAq1oQfgXTpu8FSH53wwD2mSP1mytkVZ8gFj7D7kUOFLDbE52J68u99o5u V4bqLC0CtK6/pCX9pa2faeh8AdyVPmksODumyv4RbNHLzxuSvPWnr33fpJpQJJiy316b gnBCWc94bWq0EshNcTbKm/AOIw/qgPDe+IFbScBegpI2aDHN8esohm2wdXkMmPo1XYSu lEebVcbUpXY16Km549+8lsmLc2mVOAyPHUe7AtEVNKUXriVnEALwJNhDFzOO/lygayzv Kw+g== X-Gm-Message-State: AIkVDXIBvXflcvw3KGFvXkuohCnqcqSH4mEVmfnRnOh6yfLGYYIrpbqSPOz/7SEw5GPVgUhsLHGN0nr5tfSV9Q== X-Received: by 10.31.61.87 with SMTP id k84mr10181786vka.162.1485862811694; Tue, 31 Jan 2017 03:40:11 -0800 (PST) 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.103.95.194 with HTTP; Tue, 31 Jan 2017 03:40:11 -0800 (PST) In-Reply-To: References: From: Alba Pompeo Date: Tue, 31 Jan 2017 09:40:11 -0200 Message-ID: Subject: Re: [alpine-devel] Re: Meta package for pulling in all dev packages To: alpine-dev Content-Type: text/plain; charset=UTF-8 Thanks for all answers - very good. On Tue, Jan 31, 2017 at 5:11 AM, William Pitcock wrote: > Hello, > > On Mon, Jan 30, 2017 at 6:56 AM, Alba Pompeo wrote: >> What if we added ` install_if="devs $pkgname=$pkgver-r$pkgrel" ` to >> http://git.alpinelinux.org/cgit/abuild/tree/abuild.in#n1505 and >> created an APKBUILD `devs` just like `docs` ? Would it work? > > Yes. It would work. We are still debating the merit of implementing > that change as we intend to cut abuild 2.30 release soon. > If accepted, it would be done in abuild 2.30 and the end result > available at the next mass rebuild or in the 3.6 branch rebuild. > >> BTW, I was reading abuild.in. >> In default_doc I found a possible resource waste. >> http://git.alpinelinux.org/cgit/abuild/tree/abuild.in#n1421 >> If I understand it, the ` install_if ` is reading checking *all* >> packages to see if the name is ` docs `. >> Isn't that dumb? > > This is just setting the install_if contents to "docs > $pkgname=$pkgver-r$pkgrel" by default, allowing overrides in APKBUILD > to change the rule if appropriate. apk can handle these rules > intelligently in it's dependency resolver, so it is not very wasteful. > >> Wouldn't be a better idea to put that line into the docs package itself? >> http://git.alpinelinux.org/cgit/aports/tree/main/docs/APKBUILD >> doc() { >> default_doc >> install_if="docs $pkgname=$pkgver-r$pkgrel" >> } >> >> What you think? > > This proposed change has no effect given the above, as the default > doc() function just serves as a thunk to default_doc(). Any APKBUILD > which overrides doc() would still lose the $install_if definition. > > William --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---