Package: guile-2.2-libs
Version: 2.2.7+1-5.4
Severity: minor
Tags: patch

Dear Maintainer,

SLIB 3b6-3 in now supports Guile 2.2 (and 3.0 with a local patch in
Debian). Could you re-enable the code in postinst that generates the
catalog file? I've tested the following with guile-2.2:

Index: guile-2.2-2.2.7+1/debian/guile-libs.postinst
===================================================================
--- guile-2.2-2.2.7+1.orig/debian/guile-libs.postinst
+++ guile-2.2-2.2.7+1/debian/guile-libs.postinst
@@ -14,11 +14,9 @@ case "$1" in
         # Configure slib support.
         if test -d /usr/share/slib
         then
-          # Uncomment the code below whenever SLIB supports Guile 2.2.
-          echo "SLIB does not support Guile 2.2 yet.  Ignoring."
-          #(cd /usr/share/guile/@DEB_SRC_EFF_VER@ && ln -sf ../../slib .)
-          #/usr/lib/guile-@DEB_SRC_EFF_VER@/bin/guile -c \
-          #  "(use-modules (ice-9 slib)) (require 'new-catalog)"
+          (cd /usr/share/guile/@DEB_SRC_EFF_VER@ && ln -sf ../../slib .)
+          /usr/bin/guile-@DEB_SRC_EFF_VER@ -c \
+            "(use-modules (ice-9 slib)) (require 'new-catalog)"
         else
         # slib isn't installed -- clean up symlink.
           rm -f /usr/share/guile/@DEB_SRC_EFF_VER@/slib


An alternative is to have the slib package install a pre-generated
slibcat file for Guile under /var/lib/slib/. I've done this for a few
other Schemes in Debian that never supported slib before (MIT, Chez,
...). In that case the slib support code can be removed from Guile's
postinst.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-3-amd64 (SMP w/12 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages guile-2.2-libs depends on:
ii  libc6          2.31-5
ii  libcrypt1      1:4.4.17-1
ii  libffi7        3.3-5
ii  libgc1         1:8.0.4-3
ii  libgmp10       2:6.2.1+dfsg-1
ii  libltdl7       2.4.6-14
ii  libreadline8   8.1-1
ii  libunistring2  0.9.10-4

guile-2.2-libs recommends no packages.

guile-2.2-libs suggests no packages.

-- no debconf information

Reply via email to