Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#65356 - [mit-scheme] Documentation, X11 plugin and xscheme.el omitted from package
Attached to Project:
Community Packages
Opened by Lulu (erkin) - Sunday, 02 February 2020, 22:32 GMT
Last edited by freswa (frederik) - Saturday, 17 October 2020, 23:43 GMT
Opened by Lulu (erkin) - Sunday, 02 February 2020, 22:32 GMT
Last edited by freswa (frederik) - Saturday, 17 October 2020, 23:43 GMT
|
Details* Description
MIT/GNU Scheme tarball provides two subdirectories, `src' and `doc', each with its own makefile. The default PKGBUILD only builds `src', meaning the manpage and the info files don't make it into the package. In addition, even though the build is configured with `--with-x', the X11 plugin doesn't get built because it's missing the `--enable-x11' flag. A much more minor problem is that it neglects to install the `xscheme.el' file bundled in the tarball. * Additional info I consulted MIT/GNU Scheme maintainer Riastraidh on #scheme@freenode and he said the makefile in the basedir of the tarball shouldn't be used, and that `src' and `doc' should be built independently. I wrote up a patch (see below) that ignores said makefile and manually visits both directories to run `make'. * Steps to reproduce: In above order; ** In shell: % man mit-scheme No manual entry for mit-scheme % info mit-scheme-user info: No menu item 'mit-scheme-user' in node '(dir)Top' ** In the REPL: 1 ]=> (load-option 'x11) ;Unknown option name: x11 ** In Emacs: M-x load-library xscheme RET Cannot open load file: No such file or directory, xscheme * Fix: --- m 2020-02-03 01:14:39.050939461 +0300 +++ tmp/PKGBUILD 2020-02-03 01:22:39.763835741 +0300 @@ -9,7 +9,7 @@ url='https://www.gnu.org/software/mit-scheme/' arch=('x86_64') license=('GPL') -depends=('ncurses' 'zlib') +depends=('ncurses' 'zlib' 'libx11') optdepends=('openssl: support for openssl') source=("https://ftp.gnu.org/gnu/mit-scheme/stable.pkg/$pkgver/$pkgname-$pkgver-x86-64.tar.gz" "https://ftp.gnu.org/gnu/mit-scheme/stable.pkg/$pkgver/$pkgname-$pkgver-x86-64.tar.gz.sig") @@ -21,11 +21,21 @@ cd "$pkgname-$pkgver"/src ./configure --prefix=/usr \ --with-x \ + --enable-x11 \ --enable-native-code make + cd ../doc + ./configure --prefix=/usr \ + --disable-pdf \ + --disable-html + make } package() { - cd "$pkgname-$pkgver"/src + cd "$pkgname-$pkgver" + install -Dm644 "etc/xscheme.el" "$pkgdir/usr/share/emacs/site-lisp/xscheme.el" + cd src make DESTDIR="$pkgdir" install + cd ../doc + make DESTDIR="$pkgdir" install-info install-man } |
This task depends upon
Closed by freswa (frederik)
Saturday, 17 October 2020, 23:43 GMT
Reason for closing: Fixed
Additional comments about closing: mit-scheme-10.1.10-3
Saturday, 17 October 2020, 23:43 GMT
Reason for closing: Fixed
Additional comments about closing: mit-scheme-10.1.10-3