Package Details: chez-scheme-git 9.5.r65.gd8c2704-4

Git Clone URL: https://aur.archlinux.org/chez-scheme-git.git (read-only, click to copy)
Package Base: chez-scheme-git
Description: Chez Scheme is an implementation of the Revised6 Report on Scheme (R6RS) with numerous language and programming environment extensions. (threaded build)
Upstream URL: https://github.com/cisco/ChezScheme
Licenses: Apache
Conflicts: petite-chez-scheme
Provides: chez-scheme
Replaces: petite-chez-scheme
Submitter: ecraven
Maintainer: ecraven
Last Packager: ecraven
Votes: 15
Popularity: 0.000000
First Submitted: 2016-04-26 16:18 (UTC)
Last Updated: 2020-02-19 17:19 (UTC)

Latest Comments

jonathon commented on 2022-01-31 15:05 (UTC)

With the new makepkg defaults including LTO this will fail to compile. The PKGBUILD needs e.g. either:

@@ -14,6 +14,7 @@ makedepends=('git' 'libx11' 'xorgproto')
 provides=(chez-scheme)
 conflicts=(petite-chez-scheme)
 replaces=(petite-chez-scheme)
+options=(!lto)
 source=('git+https://github.com/cisco/ChezScheme.git'
         'git+https://github.com/nanopass/nanopass-framework-scheme.git'
         'git+https://github.com/dybvig/stex.git'

to disable LTO, or:

@@ -39,7 +40,7 @@ prepare() {
 build() {
   cd "$_pkgname"
   ./configure --installprefix=/usr --temproot="$pkgdir" --threads
-  make
+  make CFLAGS+=" -ffat-lto-objects"
 }

 package() {

to make sure compilation succeeds with LTO intact.

gekoke commented on 2022-01-26 19:29 (UTC) (edited on 2022-01-26 19:33 (UTC) by gekoke)

This symlink would need to be added in order to work with the idris2 package:

--- PKGBUILD
+++ PKGBUILD_PATCHED
@@ -47,6 +47,7 @@
   # Replace duplicated files with symlinks
   cd "$pkgdir"/usr/lib/csv*/ta6le
   rm chez-scheme.boot scheme-script.boot
+  ln -s scheme.boot chez.boot
   ln -s scheme.boot chez-scheme.boot
   ln -s scheme.boot scheme-script.boot
 }

haawda commented on 2021-06-26 19:05 (UTC)

You need to add 'git+https://github.com/lz4/lz4.git' to the ource array and handle it analogously to stex and zlib subrepos

haawda commented on 2020-07-01 21:16 (UTC)

I needed to run makepkg this way to build chez-scheme-git:

LANG=C makepkg

ecraven commented on 2020-02-19 17:20 (UTC)

Thanks jonathon, just pushed a new pkgrel.

jonathon commented on 2020-02-14 17:15 (UTC)

xproto isn't in the repos any more but xorgproto should work fine:

diff --git a/.SRCINFO b/.SRCINFO
index 98f5c2d..00fe5ea 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
 pkgbase = chez-scheme-git
        pkgdesc = Chez Scheme is an implementation of the Revised6 Report on Scheme (R6RS) with numerous language and programming environment extensions. (threaded build)
        pkgver = 9.5.r65.gd8c2704
-       pkgrel = 3
+       pkgrel = 4
        url = https://github.com/cisco/ChezScheme
        arch = i686
        arch = x86_64
        license = Apache
        makedepends = git
        makedepends = libx11
-       makedepends = xproto
+       makedepends = xorgproto
        depends = ncurses
        provides = chez-scheme
        conflicts = petite-chez-scheme
diff --git a/PKGBUILD b/PKGBUILD
index 919f0fb..86c0939 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
 # Maintainer: Peter <craven@gmx.net>
-# Contributor: Jonathon Fernyhough <>
+# Contributor: Jonathon Fernyhough <jonathon"manjaro+org>

 pkgname=chez-scheme-git
 _pkgname=ChezScheme
 pkgver=9.5.r65.gd8c2704
-pkgrel=3
+pkgrel=4
 pkgdesc="Chez Scheme is an implementation of the Revised6 Report on Scheme (R6RS) with numerous language and programming environment extensions. (threaded build)"
 arch=(i686 x86_64)
 url="https://github.com/cisco/ChezScheme"
 license=('Apache')
 depends=('ncurses')
-makedepends=('git' 'libx11' 'xproto')
+makedepends=('git' 'libx11' 'xorgproto')
 provides=(chez-scheme)
 conflicts=(petite-chez-scheme)
 replaces=(petite-chez-scheme)

dalmahal90 commented on 2019-03-25 00:03 (UTC)

I get the following build error when I try to build this package with yay:

install: cannot create regular file '/home/docker/.cache/yay/chez-scheme-git/pkg/chez-scheme-git/usr/lib/csv9.5.1/ta6le/kernel.o': No such file or directory.

jonathon commented on 2019-03-21 23:21 (UTC)

Upstream have tagged 9.5.2 and opened 9.5.3 for development. It also looks like the make install step puts kernel.o and scheme.h in place now, so here's a diff:

diff --git a/PKGBUILD b/PKGBUILD
index eb78e6b..f49883a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -44,11 +44,12 @@ build() {

 package() {
   make -C "$_pkgname" DESTDIR="$pkgdir"/ install InstallSchemeName=chez-scheme
-  install "$_pkgname/ta6le/boot/ta6le/kernel.o" "$pkgdir/usr/lib/csv9.5.1/ta6le/kernel.o"
-  install "$_pkgname/ta6le/boot/ta6le/scheme.h" "$pkgdir/usr/lib/csv9.5.1/ta6le/scheme.h"
-  # symlink includes pkgdir, redo
-  rm "$pkgdir/usr/lib/csv9.5.1/ta6le/scheme-script.boot"
-  ln -s "/usr/lib/csv9.5.1/ta6le/scheme.boot" "$pkgdir/usr/lib/csv9.5.1/ta6le/scheme-script.boot"
+
+  # Replace duplicated files with symlinks
+  cd "$pkgdir"/usr/lib/csv*/ta6le
+  rm chez-scheme.boot scheme-script.boot
+  ln -s scheme.boot chez-scheme.boot
+  ln -s scheme.boot scheme-script.boot
 }

 # vim:set ts=2 sw=2 et:

haawda commented on 2019-01-19 09:37 (UTC)

Newer builds work for me, too, so the issue was upstream or on my side. Anyway, thanks for testing.

ecraven commented on 2019-01-18 10:06 (UTC)

I just built it, seems to build fine.

haawda commented on 2019-01-17 18:13 (UTC) (edited on 2019-01-17 20:31 (UTC) by haawda)

Upstreams last commit 68e20f7 seems to be a bad one. Can someone confirm?

make all
echo '(reset-handler abort)'\
             '(base-exception-handler (lambda (c) (fresh-line) (display-condition c) (newline) (reset)))'\
             '(keyboard-interrupt-handler (lambda () (display "interrupted---aborting\n") (reset)))'\
             '(optimize-level 3)'\
             '(debug-level 0)'\
             '(commonization-level (commonization-level))'\
             '(generate-inspector-information #f)'\
             '(subset-mode (quote system))'\
             '(compile-file "cmacros.ss" "cmacros.so")'\
             | ../bin/ta6le/scheme -q
Error in foreign-procedure: no entry for ~s
("(cs)find_pcode")
make[4]: *** [Mf-base:340: cmacros.so] error 1
make[3]: *** [Mf-base:164: allx] error 2
make[2]: *** [Mf-base:181: bootstrap] error 2
make[1]: *** [Makefile:21: build] error 2

Up to yesterday I had no problem building this.

jonathon commented on 2017-10-15 20:08 (UTC)

Ah, this is building nicely for me now. :) The initial full clone is expected, don't worry about --depth=1. I suspect anyone using a -git package should be accepting of the 900MB on-disk overhead compared to downloading ~25MB each build (or they'd just use the non-git package). Also, https://bugs.archlinux.org/task/34677 .

haawda commented on 2017-10-15 14:18 (UTC)

In a clean chroot it worked for me without -fPIC. Strange, a simple makepkg in a empty builddir needs -fPIC. But namcap in the clean chroot is not satisfied. chez-scheme-git E: APL is not a common license (it's not in /usr/share/licenses/common/) chez-scheme-git E: Symlink (usr/lib/csv9.5.1/ta6le/scheme-script.boot) points to non-existing /build/chez-scheme-git/pkg/chez-scheme-git/usr/lib/csv9.5.1/ta6le/scheme.boot chez-scheme-git E: Dependency ncurses detected and not included (libraries ['usr/lib/libncursesw.so.6'] needed in files ['usr/bin/petite'])

ecraven commented on 2017-10-14 05:38 (UTC)

jonathon, thanks for the PKGBUILD, updated based on it. I've removed the xlocale.h thing, as https://github.com/cisco/ChezScheme/commit/b04e9123a427034a39fc9084ba2a8b04608bbb3b should have fixed this. The PKGBUILD still clones the entire repo once, should I modify it to only clone --depth=1? haawda, I just built it, but didn't need -fPIC, did you do a clean rebuild with up-to-date arch?

haawda commented on 2017-10-14 04:53 (UTC)

I had also to add CFLAGS+=" -fPIC" to make.

haawda commented on 2017-10-14 04:05 (UTC)

Jonathon, it is not only you.

jonathon commented on 2017-10-13 22:01 (UTC) (edited on 2017-10-13 22:15 (UTC) by jonathon)

You don't need to bump the pkgver for a -git package; the idea is that it should be generated from the upstream repo. This is also how e.g. AUR helpers know there is an update. Currently, with a set pkgver, helpers won't rebuild the package even if there are updates in the git repo. Please do consider the changes in my pasted PKGBUILD. Not only does this generate the pkgver as per https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver.28.29_function, but it avoids the need to download the entire 900MB+ git repo every time a build is initiated. Finally, I still have issues building 9.5 due to a "missing" xlocale.h - or is it only me who's affected?

jonathon commented on 2017-09-20 15:26 (UTC) (edited on 2017-09-20 20:27 (UTC) by jonathon)

Fails to build due to glib=2.26 dropping xlocale.h. Also, this is a pretty suboptimal PKGBUILD as it's cloning the entire 900MB repo every. time. it. builds. Let me see if I can improve it a little... Here we go: https://bpaste.net/show/ef416594780c

wysaard commented on 2016-05-14 11:31 (UTC)

Thanks for this, works perfectly!

ecraven commented on 2016-04-26 17:59 (UTC)

Thanks, added ncurses, libx11 and xproto to the build dependencies.

skrat commented on 2016-04-26 17:14 (UTC)

Doesn't the BUILDING file say it depends on ncurses and X11?