Bug#400556: gauche: ..*** ERROR: unbound variable: slib:features

2006-12-04 Thread NIIBE Yutaka
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.0 +0900
 Gauche-0.8.8/lib/slib.scm.in   2006-12-04 14:09:18.0 +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]



Bug#400556: gauche: ..*** ERROR: unbound variable: slib:features

2006-12-04 Thread YAEGASHI Takeshi

NIIBE Yutaka wrote:

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.


Thanks for your concise information.



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.


Agreed.  I've been wondering about the current slib handling in 
postinst and what it should be.




Following is my proposed change.  It works for me.


I'll test and upload it with the newer package later.

Regards,
--
YAEGASHI Takeshi [EMAIL PROTECTED] [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#400556: gauche: ..*** ERROR: unbound variable: slib:features

2006-11-26 Thread Arnt Karlsen
Package: gauche
Version: 0.8.8-1
Severity: normal


...aptitude upgrade snippet:
Setting up gauche (0.8.8-1) ...
*** ERROR: unbound variable: slib:features
Stack Trace:
___
dpkg: error processing gauche (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 gauche
Press return to continue.



-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-486
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)

Versions of packages gauche depends on:
ii  libc62.3.6.ds1-8 GNU C Library: Shared libraries

Versions of packages gauche recommends:
ii  slib  3a4-4  Portable Scheme library

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]