Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id E4CC2781A9D for <~alpine/devel@lists.alpinelinux.org>; Mon, 2 Dec 2019 21:46:44 +0000 (UTC) Date: Mon, 02 Dec 2019 21:46:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogitri.dev; s=protonmail; t=1575323203; bh=MkSncGeFzi3pIwlrrHcHM0R8CdLh51p925pDeDpU5mY=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:Feedback-ID: From; b=JyaIO8Itau/AOE66eQL8UwQv6UA5v8Hj6aUvav0Vhe2g7XT6r2/OeBTR69t7bm+2K IrdiIgOxR3flMExAtFU/ochLDQUtRHlnggCjC9/22GYD9OsN617Tp0/QkT+h+TGLP7 B4/fXSQG3CzDPQrvB32AKC3h6PVfxVFq7jWKFv/w= To: Drew DeVault , ~alpine/devel@lists.alpinelinux.org From: Rasmus Thomsen Reply-To: Rasmus Thomsen Subject: Re: [RFC] Package variants (options) in apk Message-ID: <0004500f43c853f7da1362578575150b5fe39c97.camel@cogitri.dev> In-Reply-To: References: Feedback-ID: LZW2MXNaH7NSG88i8lGpebeqB0wmcl0-3TbzkSuzsmAwEQspn4GI-WRe8j3PhRL4SBmua4rQWq6fadPcLS5uxQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch On Mon, 2019-12-02 at 16:03 -0500, Drew DeVault wrote: > I don't mean to be a debbie-downer here, but I feel like if this is > desirable to you then what you're looking for is Gentoo. I'm NACK on > this feature for Alpine/apk. The objective of the RFC isn't to turn Alpine into something like Gentoo or Exherbo though - I don't want to propose adding variants to every other package, but for the few ones where it really does matter because we can't split functionality out, like with FF and Polkit and then only for one/two variants. I don't doubt that having this would lead to having more packages with variants (e.g. I'd like to have NetworkManager with elogind support, but I'm sure lots want it without elogind support). > I think maybe a compromise could be APKBUILDs which have build-time > configurability, kind of like what we already have for packages which > can be bootstrapped (e.g. gcc). Yes, the problem is that once we have build-time configurability we'd either need apk to interface with abuild (to automatically rebuild the package in your configuration on updates instead of downloading the version from the binary repos, which IMHO is much more gentoo-y.), or just have apk install the upstream version (which might break things if you rely on a certain feature set) or pin the version (which might cause you to be on an unsupported release). > But I don't think that would find its > way into the binary repos or ever be a mainstream feature, Yes, having buildtime configurability seems a bit clunky and usually isn't really used (see Void Linux' "vopts"). > and I'm > generally against it becoming a widespread habit in aports. Yup, we shouldn't overuse it, but some configurability in the packages would certainly easen accomendating for a broader range of systems.