X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by lists.alpinelinux.org (Postfix) with ESMTP id 6EF405C4CAF for ; Thu, 29 Jun 2017 16:12:05 +0000 (GMT) Received: by mail-qk0-f177.google.com with SMTP id p21so80333952qke.3 for ; Thu, 29 Jun 2017 09:12:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dereferenced-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YDFKxwr8W2oESpX4SgLalAz3RpIckLZ5sZbH93dDneo=; b=AMrlqmQ1HjsWeVvSjG6a8czBqZFR1yHd6coS03UI6Td8uhI8pBQveipOVmfTDmJzzf eeGjH/Q0HsdJ8SXoNNHg5T9DNIBF08dL0jkcFUN5thlD54gDIyI3dC64tJzxq2Tqfv4u 3l+qZeeMeakdA/rTLSjLzF8sM7N4dScAz62lvSIbiJAbv3V4Mj1u1EP705nClBLNXlg2 N3Jz2Wh18FUSazvMybcH5gLAI9FtZfP0rPmWJYSZBqPHiI1MO5K3ro5ctNSCYhHzI4Xg mmTOrfqe5hx3aQ95wnY/sT4eJcLQaLX9QHUR8Nj0PTd0XdmuDrrg5dylkBSXDokATtOx Q8oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YDFKxwr8W2oESpX4SgLalAz3RpIckLZ5sZbH93dDneo=; b=HoZpnZhT1vYmnjALKIHBRuVREfXNXs8AOOuMq/qYy0eHGzzstsDFhG6nEhM8nmp/X6 7C+LHcfp8AjW4+HKRxcIz+2AIV32NmL0Mgy+YNmnvsfi5YgyPVMJh08h+7vKiqCuQnda gdGdXr9kR+JCPgLItE+vxI89HVkHSWhga3+CcXErxUvvXtljDGebnxjck6zekW4FBWtJ sa9HLpEF4BDFLg3fUuHTFdc82/4XGR4Y8TylI32s3dm1LcpwMOS8pBMOrrpDT4gRhiab S3tX7wCADBr7iRaoGeBcpPbzwiPgsrW65vbvzZ7bPDSpwCMPXpRjdP7q/vYNDcF/RdDX ubrQ== X-Gm-Message-State: AKS2vOxDqZalyATl6A7XIMWKInD5Pmc8fsrRulg9e+s0yQrkPMIhuKXU fcD5y3PhQFQbCu/4LewcAS9qmb5LDBRS X-Received: by 10.55.157.198 with SMTP id g189mr20841404qke.241.1498752724919; Thu, 29 Jun 2017 09:12:04 -0700 (PDT) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.237.47.65 with HTTP; Thu, 29 Jun 2017 09:12:04 -0700 (PDT) In-Reply-To: References: From: William Pitcock Date: Thu, 29 Jun 2017 11:12:04 -0500 Message-ID: Subject: Re: [alpine-devel] abuild vs. makepkg To: Dan Anderson Cc: alpine-dev Content-Type: text/plain; charset="UTF-8" Hi, On Mon, Jun 26, 2017 at 1:38 PM, Dan Anderson wrote: > Just got started using alpine; I've been having a good time. However, I'm > curious about the design of abuild: the APKBUILD format is (nearly) a direct > clone of Arch's MAKEPKG, but with small incompatibilities. Alpine's APKBUILD format is indeed derived from PKGBUILD. > What was the reason behind not just using makepkg as it was (missing > functionality?), makepkg generates packages for pacman, not apk, so we would still need to write our own tool. If you look at the format itself instead, the reason why is because makepkg depends on bash, while Alpine's /bin/sh is an Almquist shell, not bash. As such, it does not support some of the bash extensions that makepkg uses. Put differently, abuild is an adaptation of the PKGBUILD format used by makepkg that has been adapted to meet Alpine policy (in terms of our /bin/sh being different and different packaging objectives). > and would patches aimed at improving compatibility be > worth-while? The patches you propose would not be worth-while, because they would require us to depend on bash for using abuild. We don't wish to add additional dependencies to abuild, and would rather use the official Alpine /bin/sh. > Reducing the friction porting, say, AUR packages to alpine > seems useful to me. Largely this is going to be an area of friction that is not reduced by supporting makepkg syntax. The main areas of friction involve Alpine's non-use of glibc and systemd. William --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---