ports/137151: ports/slib-guile using latest 3b1 version of slib fails to install "(require 'new-catalog)" -> Error code 1
RandomUser
rannumgen at globaleyes.net
Sun Jul 26 12:40:02 UTC 2009
>Number: 137151
>Category: ports
>Synopsis: ports/slib-guile using latest 3b1 version of slib fails to install "(require 'new-catalog)" -> Error code 1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 26 12:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: RandomUser
>Release: FreeBSD 6.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD 6.4-STABLE #0: Sat Jul 4 18:28:39 CDT 2009
libgmp-4.3.1
guile-1.8.6_1
slib-3b1_1 (manual adjustment to slib install to get latest version: 3b1)
setenv GUILE_LOAD_PATH=/usr/local/share/slib/
>Description:
===> Installing for slib-guile-3b1_1
===> slib-guile-3b1_1 depends on file: /usr/local/share/slib/require.scm - found
===> slib-guile-3b1_1 depends on executable: guile - found
===> Generating temporary packing list
===> Checking if lang/slib-guile already installed
/bin/ln -shf /usr/local/share/slib /usr/local/share/guile/1.8/slib
cd /usr/local/share/guile/1.8/slib && /usr/local/bin/guile -q -l guile.init -c "(require 'new-catalog)"
*** Error code 1
Stop in /ad4/usrports/lang/slib-guile.
>How-To-Repeat:
Before setting GUILE_LOAD_PATH=/usr/local/share/slib/, the error message was:
/bin/ln -shf /usr/local/share/slib /usr/local/share/guile/1.8/slib
cd /usr/local/share/guile/1.8/slib && /usr/local/bin/guile -q -l guile.init -c "(require 'new-catalog)"
ERROR: Unbound variable: require
*** Error code 1
Stop in /ad4/usrports/lang/slib-guile.
>Fix:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
A) Modify "do-install" target in the Makefile
=== from
${LN} -shf ${PREFIX}/share/slib ${LOCALBASE}/share/guile/1.8/slib
cd ${PREFIX}/share/guile/1.8/slib && \
${LOCALBASE}/bin/guile -q -l guile.init -c \
"(require 'new-catalog)"
=== to
${LN} -shf ${PREFIX}/share/slib ${LOCALBASE}/share/guile/1.8/slib
cd ${PREFIX}/share/guile/1.8/slib && \
${LOCALBASE}/bin/guile -q -l guile.init -c \
"(use-modules (ice-9 slib));(require 'new-catalog)"
=========== PATCH ==============
9,10c9,10
< PORTVERSION= 3a4 # Keep this in sync with lang/slib
< PORTREVISION= 2
---
> PORTVERSION= 3b1 # Keep this in sync with lang/slib
> PORTREVISION= 1
29c29
< "(require 'new-catalog)"
---
> "(use-modules (ice-9 slib))(require 'new-catalog)"
=========== REFERENCE ================
http://sources.redhat.com/ml/guile/2000-04/msg00114.html
- - - - - - - - - - - - - - - - - - - - - - - - - -
B) mkdir /usr/local/share/guile/site
-- -- - - - - - - - - - - - - - - - - - - - - - - -
NOTE: when compiling GnuCASH which requires "/usr/local/share/guile/1.8/slibcat",
it was necessary to create a link from "../guile/site/slibcat". Don't know if this is the proper
way to handle this requirement for slibcat or not. Installing slib-3b1 has fixed GnuCASH's requrement
for slib-3b1 (as noted in the above REFERENCE).
COMMENTS: I am not really famiilar with guile or slib. Also, creating "$HOME/.guile" as recommended
didn't help. ktrace showed that it wasn't being used during "make install" - hence the change to the
Makefile.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list