X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) by lists.alpinelinux.org (Postfix) with ESMTP id 43D79F816A4 for ; Thu, 21 Feb 2019 09:15:58 +0000 (UTC) Received: by mail-vk1-f180.google.com with SMTP id e131so6186425vkf.10 for ; Thu, 21 Feb 2019 01:15:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4raSTzNiGSVoqzFFFoYX1ZzvzLp8RMRwJjHE1QFqxOE=; b=Kl5Nr10z5DV8Laas1acOxOe1NYPO9JNfljRJ5ujC3f1xZoLrgAmeYeW0uFt0QK2rfY P47IR00o0A8Mov0AfV7XdFvpS3HQyYBQ5u9t5zU7KI22fTw3oInZURTSsH37lPo0v9+c MJGJuO6tf0rXJ2aySHgYSDwVbgP0LTY74d5vO9MAAzhvSs34SJ6vpi0RgBI/SCmAiYhV 0PZGGJ46TyxpmInDWSPC/j6HewVCp1VvSgml3KCfDvk3eOgHwSCH8WHUDQr1nkiJqbTJ NK6dzz89S3zbJdqRcKM8bOd+5k/5AKV8HZxgFht5A6U/mBZlrfKjefJcuA4WucwgjdWh mOgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4raSTzNiGSVoqzFFFoYX1ZzvzLp8RMRwJjHE1QFqxOE=; b=ZfiQx+4athI7nLgAmPU2JcZBSn59LCYl7uo8sx0/XU74qfVymF+m5hNSaVyuu5ZUYd tDu+C8q9eTaDQObWetiFeJQiJpCxilUs3m6lcMGJvofJynrX0LOxfXsvzfH3iTCU71NU S2++CnumuZjWQnFKCPOKRvS7nKlYTmQvWO6FYSAHBe4svpjrz0zbSOM7j8pVSL/W23DA IN1nhP3McPoQ2dL1mEnjthVw7dogT58Q4hDYvNkNyC37PgoO/T4qQumQ28o6w+tY3mUK rYQGhibImm182O6ai3rR9oHb71L1cfkQvZnrvvXIiG4ygACwrRAizrv/sWI3fVF3ZgPt Kw8Q== X-Gm-Message-State: AHQUAuYxp1FTF4vGwrUMqAuKOv298OtGpU7c//U1vVUxOY/AlYiDv2nr KWQcyCfJx5OsWNWE+hmt/of3bFF4gBi4/9OMUwE= X-Google-Smtp-Source: AHgI3IYSL1/LnFdrst7Tox53RYDycoYkS73M8h6XkUeAOVKlmwfz4auJQYBVFuoG4ulhAflHGlaOTnUonkzhuO4lUnQ= X-Received: by 2002:a1f:8191:: with SMTP id c139mr13392144vkd.24.1550740556775; Thu, 21 Feb 2019 01:15:56 -0800 (PST) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 References: <20190220153621.GD1587@homura.localdomain> In-Reply-To: <20190220153621.GD1587@homura.localdomain> From: Magicloud Magiclouds Date: Thu, 21 Feb 2019 17:14:31 +0800 Message-ID: Subject: Re: [alpine-devel] How to cross build APK? To: Drew DeVault Cc: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, So I got bootstrap.sh worked, it built some tools like `build-base-aarch64-0.5-r1.apk`. And continued building some other tools. Then I modified the script, replaced the last part of building a bunch of packages, with `CHOST=3D$TARGET_ARCH BOOTSTRAP=3Dbootimage APKBUILD=3D"$(apkbuildname "${2}")" abuild -vr`. And found that it cannot build non-main repos. ``` abuild-apk add --quiet --simulate --wait 30 --repository /home/me/packages//community --virtual .makedepends-my_pkg build-base-aarch64 ERROR: unsatisfiable constraints: build-base-aarch64 (missing): required by: .makedepends-my_pkg-0[build-base-aarch64] ``` If I put my_pkg in community repos in aports, I got above error. I think the failure is because of build-base-aarch64 is in main, but abuild-apk did not use it. On Wed, Feb 20, 2019 at 11:36 PM Drew DeVault wrote: > > Have a read through scripts/bootstrap.sh, which can set up a > cross-compiler and sysroot for another arch to build APKs with. --=20 =E7=AB=B9=E5=AF=86=E5=B2=82=E5=A6=A8=E6=B5=81=E6=B0=B4=E8=BF=87 =E5=B1=B1=E9=AB=98=E5=93=AA=E9=98=BB=E9=87=8E=E4=BA=91=E9=A3=9E And for G+, please use magiclouds#gmail.com. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---