X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by lists.alpinelinux.org (Postfix) with ESMTP id 4B5E75C41B7 for ; Fri, 15 Jul 2016 02:53:51 +0000 (GMT) Received: by mail-io0-f172.google.com with SMTP id q83so93392075iod.1 for ; Thu, 14 Jul 2016 19:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=VjV7yx5NMZkX43A25u5pweW9bX62QUCAje+Vpz3zQ04=; b=0+lLpV3mPYmMAZ4uN4cCEHA+69BVKZGpPKgSHJxKBaBW4066+/lalSZpuhR9b7NE+c /Q+E3GAvtXUmhZInuVsosXC2zSoS62T44TgaQ3pZEpkg9dKylcJ/KciaEFECGZx8TN45 p6ybD8knvjsuA98BNF9Xy+uHNPHxvYC52FlW8gpV6WQLRsvKkMvHdtiv4Ced6q10qpu/ PgsO/Qoq7EfvvnaYzjDfZ6NvSJzU8DkypdlRZVHVy3DAfxtK4pnoNsZhCfeXndJDd3XH QZXRvrnWCkaaqxH+V/FHxUSxi9As/7x8gfttm6a4S2604c+wNb+OIe6y596rQUjVHRxw goew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VjV7yx5NMZkX43A25u5pweW9bX62QUCAje+Vpz3zQ04=; b=k4fWT4nis7KM/V6QWkje0+GmB3X5skyJAG0hAhASnUbWbd3PG4scyObXLvvm7/f+DB 32DudRizaZjySMFFKV8+tYqR60OdMPfF77fb1IuzzmvKNS0iVV6mPTY67xt3cbaUYLGg eipQu7l+aMLuqLF4VOPMscTJaLKHch2gT91LmUlt4LgrkwCiONmQiQtHLs8MxAY76XUm hOyBcW+/ZWDkBw9yT1GajppAIPtBikkKPJrA6JEOYLE7iIO7xMQOcPerUl/9sYYUVVBS 2mu1rezrAh1X8+A3v2rZs5I7K9FiKtgisA+k1FQMcUVbg41sgjy9hO2GvGloKYoiKZqt tJ/w== X-Gm-Message-State: ALyK8tJflUhI4z4LUlUKxEArx+U7p6zxuw+dvAIBEMiv01MOwT7bXA3wvv/hXyQ8ItZj1w== X-Received: by 10.107.51.204 with SMTP id z195mr6133842ioz.176.1468551230557; Thu, 14 Jul 2016 19:53:50 -0700 (PDT) Received: from mb.lan (c-73-24-18-171.hsd1.mn.comcast.net. [73.24.18.171]) by smtp.gmail.com with ESMTPSA id y42sm675748ita.9.2016.07.14.19.53.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jul 2016 19:53:50 -0700 (PDT) From: Mitch Tishmack To: alpine-aports@lists.alpinelinux.org Cc: Mitch Tishmack Subject: [alpine-aports] [PATCH 0/5] new ghc aport patch series Date: Thu, 14 Jul 2016 21:53:18 -0500 Message-Id: <1468551203-21570-1-git-send-email-mitch.tishmack@gmail.com> X-Mailer: git-send-email 2.8.0 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: This patch series supercedes any prior patch series for ghc from myself. I've updated the series to include a port of llvm 3.7.1 as discussed on irc. This adds a new port, llvm3.7, that lets one install llvm 3.7.1 alongside the system llvm. It works well enough to build ghc, but might be able to build/be built against by julia. Note however I haven't tested this. It should also provide an llvm that other tools that are sensitive to llvm versions could use. All binaries are suffixed with -3.7 and all other libraries/include directories are similarly suffixed. The dockerfiles for the bootstrap both now check sha1 sums of the tools they download to build the bootstrap compilers. To use this port however ghc needs to be bootstrapped through two docker images that install a debian 8.0 container and build bootstrap compilers for armhf and x86_64 via existing tools. Note this can take a long time and only needs to be done successfully once per ghc release. The scp command in the snapshot function is and should be considered suspect. I took some liberty with where I imagined the bootstrap compilers should go, the patch applier should adjust that as necessary. Once both bootstrap compilers are built ghc-bootstrap's APKBUILD file will need to have its source variable updated and the checksums recalculated. The bootstrap compiler tarballs that are produced aren't deterministic/repeatable. But once bootstrap tarballs are built and uploaded and llvm3.7 is built the rest of this series should work fine. The order is important however as all of the ports depend on one another as follows: llvm3.7 -> ghc-bootstrap -> ghc -> cabal -> stack This attempts to mimic the go apk as much as possible in style. Included in this series as well is the cabal build tool, as well as the alternative stack build tool. Both are similar to pip/gem/cargo/cpan. With all this in place it should be possible to start porting other ghc programs or libraries. Mitch Tishmack (5): testing/llvm3.7 new aport testing/ghc-bootstrap: new aport testing/ghc: new aport testing/cabal: new aport testing/stack: new aport testing/cabal/APKBUILD | 53 +++++++ testing/cabal/cabal-0001-force-ld.gold.patch | 10 ++ testing/ghc-bootstrap/APKBUILD | 50 ++++++ testing/ghc-bootstrap/bootstrap/armhf/Dockerfile | 154 ++++++++++++++++++ .../ghc-bootstrap/bootstrap/armhf/bootstrap.patch | 112 ++++++++++++++ testing/ghc-bootstrap/bootstrap/armhf/settings | 32 ++++ testing/ghc-bootstrap/bootstrap/gmpurl.patch | 22 +++ testing/ghc-bootstrap/bootstrap/llvm-3.7.1.sh | 88 +++++++++++ testing/ghc-bootstrap/bootstrap/x86_64/Dockerfile | 143 +++++++++++++++++ .../ghc-bootstrap/bootstrap/x86_64/bootstrap.patch | 112 ++++++++++++++ testing/ghc-bootstrap/bootstrap/x86_64/settings | 32 ++++ testing/ghc/APKBUILD | 105 +++++++++++++ testing/llvm3.7/APKBUILD | 172 +++++++++++++++++++++ ...Add-Musl-MuslEABI-and-Musl-EABIHF-triples.patch | 112 ++++++++++++++ .../llvm-0002-Fix-build-with-musl-libc.patch | 35 +++++ testing/llvm3.7/llvm-0002-musl-triple.patch | 90 +++++++++++ ...ix-DynamicLibrary-to-build-with-musl-libc.patch | 33 ++++ testing/llvm3.7/llvm-0003-musl-hacks.patch | 114 ++++++++++++++ testing/llvm3.7/llvm-nm-workaround.patch | 27 ++++ testing/stack/APKBUILD | 39 +++++ 20 files changed, 1535 insertions(+) create mode 100644 testing/cabal/APKBUILD create mode 100644 testing/cabal/cabal-0001-force-ld.gold.patch create mode 100755 testing/ghc-bootstrap/APKBUILD create mode 100644 testing/ghc-bootstrap/bootstrap/armhf/Dockerfile create mode 100644 testing/ghc-bootstrap/bootstrap/armhf/bootstrap.patch create mode 100644 testing/ghc-bootstrap/bootstrap/armhf/settings create mode 100644 testing/ghc-bootstrap/bootstrap/gmpurl.patch create mode 100755 testing/ghc-bootstrap/bootstrap/llvm-3.7.1.sh create mode 100644 testing/ghc-bootstrap/bootstrap/x86_64/Dockerfile create mode 100644 testing/ghc-bootstrap/bootstrap/x86_64/bootstrap.patch create mode 100644 testing/ghc-bootstrap/bootstrap/x86_64/settings create mode 100755 testing/ghc/APKBUILD create mode 100755 testing/llvm3.7/APKBUILD create mode 100644 testing/llvm3.7/llvm-0001-Add-Musl-MuslEABI-and-Musl-EABIHF-triples.patch create mode 100644 testing/llvm3.7/llvm-0002-Fix-build-with-musl-libc.patch create mode 100644 testing/llvm3.7/llvm-0002-musl-triple.patch create mode 100644 testing/llvm3.7/llvm-0003-Fix-DynamicLibrary-to-build-with-musl-libc.patch create mode 100644 testing/llvm3.7/llvm-0003-musl-hacks.patch create mode 100644 testing/llvm3.7/llvm-nm-workaround.patch create mode 100755 testing/stack/APKBUILD -- 2.8.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---