Arnt Karlsen wrote: > Setting up gauche (0.8.8-1) ... > *** ERROR: unbound variable: slib:features
With newer slib, it uses slib:features. It used to be *features*. We need to change Gauche-0.8.8/lib/slib.scm.in. Besides, I think that the fix of Bug#388474 is wrong. Instead, we should require slib at build-time and produce slibcat at build-time (Not at installation time). There is a case where slib is not yet installed when gauche is installed. In this case, slibcat is not produced at all. Following is my proposed change. It works for me. * debian/patches/04_slib_fix.patch: New file. * debian/control (Build-Conflicts): slib removed. (Build-Depends): slib. * debian/rules: Don't make install, but make install-pkg, install-doc, and slibcat-in-place. * debian/gauche.prerm, debian/gauche.postinst: Don't touch slibcat. -- NIIBE Yutaka <[EMAIL PROTECTED]> Tue, 5 Dec 2006 12:00:54 +0900 diff -u gauche-0.8.8/debian/control gauche-0.8.8/debian/control --- gauche-0.8.8/debian/control +++ gauche-0.8.8/debian/control @@ -3,8 +3,7 @@ Priority: optional Maintainer: Hatta Shuzo <[EMAIL PROTECTED]> Uploaders: YAEGASHI Takeshi <[EMAIL PROTECTED]> -Build-Depends: debhelper (>> 4.0.0), texinfo, libgdbm-dev, autoconf -Build-Conflicts: slib +Build-Depends: debhelper (>> 4.0.0), texinfo, libgdbm-dev, autoconf, slib Standards-Version: 3.7.2.2 Package: gauche diff -u gauche-0.8.8/debian/rules gauche-0.8.8/debian/rules --- gauche-0.8.8/debian/rules +++ gauche-0.8.8/debian/rules @@ -61,7 +61,8 @@ dh_testroot dh_clean -k dh_installdirs - $(MAKE) -C build-tree install DESTDIR=$(CURDIR)/debian/tmp + $(MAKE) -C build-tree DESTDIR=$(CURDIR)/debian/tmp \ + slibcat-in-place install-pkg install-doc dh_install --sourcedir=debian/tmp cat debian/gauche-dev.install debian/gauche-gdbm.install | \ while read i; do rm -rf debian/gauche$$i; done diff -u gauche-0.8.8/debian/gauche.prerm gauche-0.8.8/debian/gauche.prerm --- gauche-0.8.8/debian/gauche.prerm +++ gauche-0.8.8/debian/gauche.prerm @@ -20,10 +20,6 @@ case "$1" in remove|upgrade|deconfigure) # install-info --quiet --remove /usr/info/gauche.info.gz - SLIBCAT=`gauche-config --syslibdir`/slibcat - if [ -e $SLIBCAT ] ; then - rm -f $SLIBCAT - fi ;; failed-upgrade) ;; diff -u gauche-0.8.8/debian/gauche.postinst gauche-0.8.8/debian/gauche.postinst --- gauche-0.8.8/debian/gauche.postinst +++ gauche-0.8.8/debian/gauche.postinst @@ -25,9 +25,6 @@ case "$1" in configure) - if [ -e /usr/share/slib/require.scm ]; then - /usr/bin/gosh -uslib -e "(load (in-vicinity (library-vicinity) \"mklibcat\"))" -e "(exit 0)" - fi ;; only in patch2: unchanged: --- gauche-0.8.8.orig/debian/patches/04_slib_fix.patch +++ gauche-0.8.8/debian/patches/04_slib_fix.patch @@ -0,0 +1,11 @@ +--- Gauche-0.8.8.orig/lib/slib.scm.in 2005-07-12 10:01:07.000000000 +0900 ++++ Gauche-0.8.8/lib/slib.scm.in 2006-12-04 14:09:18.000000000 +0900 +@@ -115,7 +115,7 @@ + ;;; *FEATURES* should be set to a list of symbols describing features + ;;; of this implementation. Suggestions for features are: + +-(define *features* ++(define slib:features + '( + source ;can load scheme source files + ;(slib:load-source "filename") -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]