X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by lists.alpinelinux.org (Postfix) with ESMTP id 7A37D5C4ED7 for ; Thu, 22 Jun 2017 06:35:34 +0000 (GMT) Received: by mail-lf0-f67.google.com with SMTP id f28so795937lfi.3 for ; Wed, 21 Jun 2017 23:35:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wxbkz0kASL+jlePxZbiBz0nlb5aYaQJf6Tik9AVUzXk=; b=Ei7eGg9oM4HF0YtB+bqj/w3gLywh8uAvGfhZagJiVrSFkNTet1UsxB0Kw09w8PAZpw D2GkrCuVtM92YKAcKZ1xFV8Ars0RbGv68Ct+nDlm5/DrNASO2UvCZm457XhfgkIAXbvZ q3Wgkx0hKuVGoLapqz+CydskhQhswX3G8rgO1KYGOHtN9XESM+Ak4V02/Fhw2T2r7AK+ FazjXNEbTqC11FJ+kJ9MoRDkdzDL7J8cTgagqxe/q3KZiw161QR113lJzOt52svNzgZ4 vfuBjdyd7z7cek6pdhlpjFvNdFrireKvoh2QDcCG1MXInMV1yuQLTW8v4nPzUwpcrOr1 3Z2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=wxbkz0kASL+jlePxZbiBz0nlb5aYaQJf6Tik9AVUzXk=; b=MgzlaVfWD2uRLoDzvhrgCn3TN3aueR8wdWDkoB6tJY6v1CA24m9ctNbMhnRDpGJ58n GRFkjfN12eUAsK+4NxMnoFPYP7llVo28Qe2NJ3tFEQXe6rIF1brSm1k3qCFaSrruEtzG AFnys0MUlqIjDiB57uaDAidjlex3LZOwkpa9mD9RC/fEXfMloB4TYULHKzCI+qLLuWZ7 vUPlU/KIk3V+F/tiZ2In7onOR0AFMIXFQ4OS1wWMXH5niI19LnIIe8yMFGbVHRC53fAf /OHg6uQX+GVCxWeJClds0V6ZrO7k8Epy7U8SlLkKjHYJ8tYqZ1fbWLwsFP/nMCTvGMGK rTRg== X-Gm-Message-State: AKS2vOy1abUJS1vKQGfmNWGBMmQebv8tyE9EY0ksX+/FhpTOw1A63HP6 AkMf2/4wLNbwpQ== X-Received: by 10.25.202.26 with SMTP id a26mr344334lfg.137.1498113333548; Wed, 21 Jun 2017 23:35:33 -0700 (PDT) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id n132sm213266lfn.61.2017.06.21.23.35.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Jun 2017 23:35:22 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Thu, 22 Jun 2017 09:35:17 +0300 From: Timo Teras To: William Pitcock Cc: Tmp File , alpine-dev Subject: Re: [alpine-devel] Suggestion to accept only whitelisted archs on APKBUILD arch= field Message-ID: <20170622093517.5cc772b1@vostro.util.wtbts.net> In-Reply-To: References: X-Mailer: Claws Mail 3.15.0-dirty (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 On Wed, 21 Jun 2017 20:30:01 -0500 William Pitcock wrote: > Hello, > > On Wed, Jun 21, 2017 at 8:03 PM, Tmp File wrote: > > Alpiners, > > > > I suggest abuild stops to accept anything as an architecture. > > Instead it should only accept a few whitelisted strings (x86 x86_64 > > armhf aarch64 ppc64le s390x noarch). > > NAK. We want to allow third parties to use abuild for architectures > we may not necessarily support upstream. > > > This will prevent errors like setting unsupported archs. > > https://github.com/alpinelinux/aports/blob/master/main/yaboot/APKBUILD#L8 > > powerpc arch is supported by abuild, we are just not presently > building it, as the hardware I had for it failed. > Although we may use ppc32 instead to be more in line with the ppc64le > nomenclature. > > > And also help with typos. > > https://github.com/alpinelinux/aports/commit/58a2da0b213c969c00c1014552992c415f7a6610 I think abuild should complain with warning about architectures that it does not know about to catch these typoes. But it should not be hard failure. Some of those are intentional :) Feel free to send abuild patch that makes it a warning. But make sure it's not custom whitelist, it should instead be using arch_to_hostspec() from functions.sh. And additionally whitelist noarch and all. Thanks, Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---