Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 29E29782B06 for <~alpine/devel@lists.alpinelinux.org>; Fri, 21 Feb 2020 16:48:31 +0000 (UTC) Date: Fri, 21 Feb 2020 16:48:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogitri.dev; s=protonmail; t=1582303710; bh=rkx7NN19PWVoWuzxeYz9QvWOLgyytsdcnl8s5IK32G8=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=ldGD3xNg1krOJNl31sis7elw430J4rsQ7NaIDwFxUp8ucaxIW64piNEgrugr2spK+ y8G0RbTgXizOiBEz9qXqm3jXDUcaR85oZizPWiGs1Y5vbtfMhARyrk3mUwM94k84tt CFfJSABVoSHw63C4d5Y1xE1gB87dgiD6T4dTvXXg= To: Kevin Daudt From: Rasmus Thomsen Cc: ~alpine/devel@lists.alpinelinux.org Reply-To: Rasmus Thomsen Subject: Re: Using buildtypes that respect our C{,PP,XX}FLAGS in CMake and Meson Message-ID: In-Reply-To: <20200220174426.GA1247035@alpha> References: <2896c13070c508a49cbaa72c8fb7f34ea947358b.camel@cogitri.dev> <20200220174426.GA1247035@alpha> 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 shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch On Thu, 2020-02-20 at 18:44 +0100, Kevin Daudt wrote: > On Thu, Feb 20, 2020 at 05:20:45PM +0000, Rasmus Thomsen wrote: > > Hello list, > >=20 > > [..] > >=20 > > As such I'd suggest multiple steps to be taken: > >=20 > > 1) Change existing aports over to the None/plain buildtype to make > > sure > > this doesn't break anything (we'll probably use some performance > > but > > get smaller packages due to our CFLAGS, but that's the goal here, I > > suppose) > >=20 > > 2) Change Alpine policy to only use the None/plain buildtype. > > Additionally, the buildtype _must be_ mentioned, since at least > > Meson > > defaults to 'debug' if no buildtype is specified. > >=20 > > 3) Change newapkbuild so that new aports use the correct buildtype > > ( > > https://gitlab.alpinelinux.org/alpine/abuild/merge_requests/29) > >=20 > > Thanks, > >=20 > > Rasmus Thomsen > >=20 >=20 > If feasible, we could add a linting check to verify that the proper > buildtype is used as well. That sounds like a good idea, I guess we could check if cmake is mentioned in an APKBUILD and if so, if the right CMAKE_BUILD_TYPE is used (and the same for meson with buildtype).