Bug#954031: sbcl: Please allow building with clisp on currently unsupported architectures

2020-03-15 Thread John Paul Adrian Glaubitz
Source: sbcl
Severity: normal
Tags: patch

Hi!

In order to provide some basic level of continuous integration for
sbcl upstream, it would be great if the sbcl package could be tried
to build on any of the currently unsupported architectures using
clisp.

sbcl has partial support for alpha, hppa, mips*, ppc64 and riscv64
and if we try to build sbcl on any architecture using clisp, we will
be able to provide upstream with a build log of sbcl on any architecture
that might be supported in the future (like ppc64 and riscv64) or
was previously supported and is currently broken (like alpha and hppa).

The attached patch enables building with clisp on all unsupported
architectures.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
diff -Nru old/sbcl-2.0.2/debian/control new/sbcl-2.0.2/debian/control
--- old/sbcl-2.0.2/debian/control   2020-03-07 09:45:04.0 +0100
+++ new/sbcl-2.0.2/debian/control   2020-03-16 01:08:41.739735423 +0100
@@ -7,7 +7,8 @@
 Priority: optional
 Build-Depends: debhelper-compat (= 12),
debhelper (>= 12.8~),
-   sbcl,
+   clisp [!amd64 !arm64 !armhf !i386 !powerpc !ppc64el],
+   sbcl [amd64 arm64 armhf i386 powerpc ppc64el],
sbcl-source,
texinfo,
zlib1g-dev,
diff -Nru old/sbcl-2.0.2/debian/rules new/sbcl-2.0.2/debian/rules
--- old/sbcl-2.0.2/debian/rules 2020-03-07 10:05:22.0 +0100
+++ new/sbcl-2.0.2/debian/rules 2020-03-16 00:52:53.830038807 +0100
@@ -4,6 +4,10 @@
 
 export DH_VERBOSE=1
 
+ifeq (,$(filter amd64 arm64 armhf i386 powerpc ppc64el, $(DEB_HOST_ARCH)))
+   BOOTSTRAPLISP := clisp
+endif
+
 ifeq (,$(BOOTSTRAPLISP))
BOOTSTRAPLISP := /usr/bin/sbcl --disable-debugger --no-sysinit 
--no-userinit
 endif


Re: [Sbcl-devel] Alpha, HPPA support at risk

2020-03-15 Thread John Paul Adrian Glaubitz
On 3/12/20 10:23 PM, John Paul Adrian Glaubitz wrote:
>> Moreover, just because we have tried to keep the backends compiling
>> gives no guarantee that they actually run; I'd be slightly surprised if
>> they don't crash pretty quickly in cold-init.
> 
> I sent in some fixes, but so far I haven't been able to get SBCL to run
> on Alpha or HPPA, both crash in cold-init. But that's also the case
> for MIPS when I tested.
> 
> Generally, I try to help whereever I can but I'm by no means a Lisp
> expert. There are Alpha and HPPA porters around in Debian and Gentoo
> which might be interested to help.
I'm working on getting SBCL buildable on Debian using CLISP. Then we get
a CI for all architectures for free which does not depend on a working
SBCL compiler being available on the FTP servers.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913