Chez Scheme for Debian
----------------------

Upstream's corporate logo was removed due to non-DFSG conditions.
Additionally the file examples/rsa.ss was removed since there was no
explicit license.

Building the first time is not straightforward due to semi-circular
dependencies. Build in this order:

* Build and install nanopass-framework-scheme with
  DEB_BUILD_OPTIONS=nocheck DEB_BUILD_PROFILES=nocheck.

* Build chezscheme with DEB_BUILD_OPTIONS=nodoc
  DEB_BUILD_PROFILES=nodoc and install the built packages.

* Build and install stex.

* Build chezscheme again to build everything, including documentation.

When stex and nanopass are in the archive it is possible to build as
usual.

Upstream provides an extensive test suite that can be used after
patching source code in c/ or s/. The tests take many hours to run and
are overkill for regular builds. They are enabled with
DEB_BUILD_OPTIONS="fullcheck".

Upstream does not distribute the arm32le boot files and therefore we
need to build them ourselves:

  ./configure --workarea=crossbuilder
  make -C crossbuilder
  ./workarea arm32le
  make -C arm32le/s -f Mf-cross m=a6le xm=arm32le base=$PWD/crossbuilder

Another possibility is to crosscompile the Debian initial armhf
upload, but this has turned out to not be practical:

  dpkg --add-architecture armhf
  apt update
  apt-get install crossbuild-essential-armhf
  apt-get build-dep -aarmhf chezscheme
  DEB_BUILD_PROFILES=cross CONFIG_SITE=/etc/dpkg-cross/cross-config.armhf \
    dpkg-buildpackage -aarmhf -B

 -- Göran Weinholt <weinholt@debian.org>, Sat,  5 Sep 2020 15:41:10 +0200
