X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by lists.alpinelinux.org (Postfix) with ESMTP id 941D55C4220 for ; Tue, 31 Jan 2017 07:11:37 +0000 (GMT) Received: by mail-qk0-f171.google.com with SMTP id u25so154472431qki.2 for ; Mon, 30 Jan 2017 23:11:37 -0800 (PST) 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=5d5DnwUP5EQwccKXkYEjDJbgubqaLjGSrb6JZ0bxfLU=; b=TT5xlrIKcsnv8C54m1s4Uw9LvhhsM7uzJTWYLvvHzJ9zyW4F4DdsUGDeQokBstwyBw k2vqXvcziJU82d94WAt22qUDrR3MBJ0C/+LlSpogoxPpA+8FsFxDcUzaUwosC16/9wra ofiknIKizxGw50sloXxky7GNwvGF2DabLuFxKgwYcDScXi9pXtOxfsHbLz1BMYWwXm8q u6r3eerg3Xw7zj26TfKCRdxzICaembqJI8YPyeyfmHLrn5arK4JohzPbYvmV9v/GHlcM sDUXgPcB+gtc4c1O6S7mcmwvpSzixmvSMbvTyiRqonR8a9znRgTTS1HFKztq5ivQSroe Djqg== 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=5d5DnwUP5EQwccKXkYEjDJbgubqaLjGSrb6JZ0bxfLU=; b=O9jUEWOYn6uuAoL4yr0mR8/iG15a1W1l9PTvx5PL1vNIO7ZHKj2lFl48d/hXC119+a sCZEXLItjSszqvvHKXk+FXyMJVZFnjDnyrQRTVVgzX24JbM7VtXPhiq644jSyubPFhPZ OfEFQQtQDKC0KPK2vHQHqfW5ETLHec2nvLpPU/oIgXEmC/WGRLC9cxsG5pa5jFuXdD7d D2nUCe5AFfpMBxjjYEDs+3ap6hSWYjmNu51EkIer1H8gq69ra5jsKwgz0F557e6MomCP 5q5GnggmXVUZinoxBU57PMV/J7LHm60moFyfx0EGGa5c/ApJqGaQFkp/ZUT9Bpnb0y2J 0cFg== X-Gm-Message-State: AIkVDXLqrwOtTThytfnVVHR9dvQSnR5y8N5cuQDA0Rlc32r0f7hASUh3SLL6Cdbul6QgIsSxHzkPE7ElGTQqxw== X-Received: by 10.55.190.199 with SMTP id o190mr25004751qkf.292.1485846696978; Mon, 30 Jan 2017 23:11:36 -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.200.1.17 with HTTP; Mon, 30 Jan 2017 23:11:36 -0800 (PST) In-Reply-To: References: From: William Pitcock Date: Tue, 31 Jan 2017 01:11:36 -0600 Message-ID: Subject: Re: [alpine-devel] Re: Meta package for pulling in all dev packages To: Alba Pompeo Cc: alpine-dev Content-Type: text/plain; charset=UTF-8 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 ---