Received: from mx1.mailbun.net (mx1.mailbun.net [170.39.20.100]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id A79F8782BEE for <~alpine/apk-tools@lists.alpinelinux.org>; Wed, 29 Sep 2021 20:19:05 +0000 (UTC) Received: from [2607:fb90:d881:2e4e:4d31:7421:273b:fe96] (unknown [172.58.109.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ariadne@dereferenced.org) by mx1.mailbun.net (Postfix) with ESMTPSA id B42611168B9; Wed, 29 Sep 2021 20:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dereferenced.org; s=mailbun; t=1632946743; bh=fYVhh1rDt36N7O3afSMDfeu0Or8v4PrflhaaW/eu8H0=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=Gq+8htZPZYEQEGb8TYVUdMewNm4WiqdAmRwaqMUEP052ptx8nERRXaE8LvSM9xgey /+QJrxU0L7CI/R7BAw6YDV9HL3Z88U8AVCIA9jNIyHkoRZPhWejtSMMOVtpL9tgoRJ aOSHEh4YcesyWjo6Q217dUkJhVZGNG2EE42JBOQEgnvTM/5w4dinKiUvdtfoj4JNRM BAfeHh2UETGh8BTM/1w3Yr87kFtN0YfpHKvUdQ4+nWig6lnXmJBRSJX5gJEbUTcmwL bfqVeetqhaor+FDmwFWQpsNlmML9AT/3mxvYQBKv2Out0YnZgI3NFHr2zqF4QM4YdP TB4rtpl/gnmIQ== Date: Wed, 29 Sep 2021 15:18:54 -0500 (CDT) From: Ariadne Conill To: Jeron Lau cc: ~alpine/apk-tools@lists.alpinelinux.org Subject: Re: Alpine Repository In-Reply-To: Message-ID: <3e75434f-4521-84dc-c867-5146ccfaad8@dereferenced.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Hi, Please don't top-post your replies on Alpine lists. On Wed, 29 Sep 2021, Jeron Lau wrote: > OK, I believe that the issue is due to platform mismatch (I'm building > the package on x86_64 for armhf), so I think I have to use > > aports scripts/bootstrap.sh armhf > > but I'm not sure what I need to do after that in order to build for > the other architecture. Any tips appreciated. No! Do not use bootstrap.sh. It does not do what you want. You actually want to do the following: 1. Install qemu-arm and qemu-openrc packages. 2. Start the qemu-binfmt service. 3. Invoke abuild as `CBUILD=armhf abuild rootbld` in the directory with your APKBUILD to build the package. Ariadne