Subject: [alpine-aports] [PATCH] Move SBCL from Unmaintained to Testing

From: Will Sinatra <[email-masked]>
Date: Fri, 28 Jun 2019 11:12:07 -0500

After compiling libsigsegv and clisp I was able to get SBCL to compile on version 1.5.0 by adding a CFLAG argument before the make is run, and adding a chmod argument to set proper permissions to /usr/lib/sbcl which allowed it to compile and package properly. Clisp and libsigsegv need to be added before SBCL can be re-added, as they're dependencies of SBCL.
---
 {unmaintained => testing}/sbcl/APKBUILD                | 10 +++++++---
 .../sbcl/fix-generate-version.patch                    |  0
 {unmaintained => testing}/sbcl/musl-fix-threads.patch  |  0
 {unmaintained => testing}/sbcl/musl-fixes.patch        |  0
 .../sbcl/pax-genesis-stage-two.patch                   |  0
 {unmaintained => testing}/sbcl/sbcl_prefix.patch       |  0
 6 files changed, 7 insertions(+), 3 deletions(-)
 rename {unmaintained => testing}/sbcl/APKBUILD (87%)
 rename {unmaintained => testing}/sbcl/fix-generate-version.patch (100%)
 rename {unmaintained => testing}/sbcl/musl-fix-threads.patch (100%)
 rename {unmaintained => testing}/sbcl/musl-fixes.patch (100%)
 rename {unmaintained => testing}/sbcl/pax-genesis-stage-two.patch (100%)
 rename {unmaintained => testing}/sbcl/sbcl_prefix.patch (100%)

diff --git a/unmaintained/sbcl/APKBUILD b/testing/sbcl/APKBUILD
similarity index 87%
rename from unmaintained/sbcl/APKBUILD
rename to testing/sbcl/APKBUILD
index 9a699c908f..eb8abb919c 100644
--- a/unmaintained/sbcl/APKBUILD
+++ b/testing/sbcl/APKBUILD
@@ -1,7 +1,7 @@
 # Contributor: Sören Tempel <[email-masked]>
-# Maintainer:
+# Maintainer: Will Sinatra <[email-masked]>
 pkgname=sbcl
-pkgver=1.4.9
+pkgver=1.5.0
 pkgrel=0
 pkgdesc="Steel Bank Common Lisp"
 url="http://www.sbcl.org/"
@@ -29,6 +29,8 @@ prepare() {
 build() {
 	cd "$builddir"
 
+	export CFLAGS=-DSBCL_HOME=/usr/lib/sbcl/
+
 	GNUMAKE=make ./make.sh clisp \
 		--prefix=/usr \
 		--with-sb-thread \
@@ -51,6 +53,8 @@ package() {
 		DOC_DIR="$pkgdir/usr/share/doc/$pkgname" \
 		sh install.sh
 
+	chmod -R 755 /usr/lib/sbcl/
+
 	paxmark -rm "$pkgdir"/usr/bin/sbcl
 
 	install -Dm644 COPYING \
@@ -60,7 +64,7 @@ package() {
 		"$pkgdir"/usr/share/info 2>/dev/null || true
 }
 
-sha512sums="e0248f460f9737d47653dd520732062d2637813b550df356ecc90aa6d21fbdd74f03182d1e890c09c1da742f7d57b4fbd04a4e6dc36999aca51bb6c2952ac236  sbcl-1.4.9.tar.bz2
+sha512sums="c09fb26ec7abdb5275165806c61000bc258281d9e745eafe67ac5a6542fcca2741395de5f39aebaf140d2ec9a58327e883fee8a6c4f320f4cbbd204806b7b5c7  sbcl-1.5.0.tar.bz2
 cda5c7268b314145a1bdb8293c7970e077aebf3cce5dace12542bf18beb7b124bf97f4754906f2f681428869ca3060300b88cab80055a3d5881dfcdcfbe51d6d  pax-genesis-stage-two.patch
 19bb9dac5997366c9778e349b707970832c5020ac55f0099dd652a8cc8c43336d34a33db2e4f7f190ab8212b064718f6999b832c249a4de7d24eae2186d6acea  musl-fixes.patch
 86b8a51d518d71a3c4d3069f80bc00cccd4b97edc6c96ff12875a0727cc2b96208f35c3a11044d98881b5e6c2e607fc65506020b7ff990b257edae55eb6a1c59  musl-fix-threads.patch
diff --git a/unmaintained/sbcl/fix-generate-version.patch b/testing/sbcl/fix-generate-version.patch
similarity index 100%
rename from unmaintained/sbcl/fix-generate-version.patch
rename to testing/sbcl/fix-generate-version.patch
diff --git a/unmaintained/sbcl/musl-fix-threads.patch b/testing/sbcl/musl-fix-threads.patch
similarity index 100%
rename from unmaintained/sbcl/musl-fix-threads.patch
rename to testing/sbcl/musl-fix-threads.patch
diff --git a/unmaintained/sbcl/musl-fixes.patch b/testing/sbcl/musl-fixes.patch
similarity index 100%
rename from unmaintained/sbcl/musl-fixes.patch
rename to testing/sbcl/musl-fixes.patch
diff --git a/unmaintained/sbcl/pax-genesis-stage-two.patch b/testing/sbcl/pax-genesis-stage-two.patch
similarity index 100%
rename from unmaintained/sbcl/pax-genesis-stage-two.patch
rename to testing/sbcl/pax-genesis-stage-two.patch
diff --git a/unmaintained/sbcl/sbcl_prefix.patch b/testing/sbcl/sbcl_prefix.patch
similarity index 100%
rename from unmaintained/sbcl/sbcl_prefix.patch
rename to testing/sbcl/sbcl_prefix.patch
-- 
2.22.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---