Package: gauche-c-wrapper
Version: 0.5.2-5.1
Severity: normal

example session:
$ gosh
gosh> (use c-wrapper)
#<undef>
gosh> (c-load '("alsa/asoundlib.h") :libs-cmd "echo '-lasound'")
/bin/sh: ldconfig: command not found
#t
gosh> 

The cause:
/usr/share/gauche/site/lib/c-wrapper/config.scm:34
  (let ((ldconfig-cmd "ldconfig -p | sed -n '/^ /s/^.*=> //p'"))

(note: ldconfig is at "/sbin/ldconfig" and "/sbin" is not in the "$PATH"
of normal users)

"config.scm" is created on build time from "config.scm.in"

config.scm.in:34:
  (let ((ldconfig-cmd "@LDCONFIG_CMD@"))

The value of @LDCONFIG_CMD@ depends on the build system/environment.
Example: If you build as normal user ldconfig will not be found on a
debian system because it is at "/sbin/ldconfig" and "/sbin" is normally
not in the "$PATH" of normal users.  If you build as root it will be
found and set to the above value.  (Unfortunately this does not include
the complete path)

Maybe the simplest solution for debian would be to hardcode it to
/sbin/ldconfig. But a better solution probably would be to change the
configure.ac:
maybe change line 51:
from:
AC_CHECK_PROGS(LDCONFIG, ldconfig)
to:
AC_PATH_PROG([LDCONFIG], [ldconfig], [], [$PATH:/sbin:/usr/sbin])

After this change (and a autoreconf - shudder ;-)
I get in the config.log:
LDCONFIG='/sbin/ldconfig'
LDCONFIG_CMD='/sbin/ldconfig -p | sed -n '\''/^ /s/^.*=> //p'\'''

dpkg-buildpackage ... dpkg -i ...:
/usr/share/gauche/site/lib/c-wrapper/config.scm:34
  (let ((ldconfig-cmd "/sbin/ldconfig -p | sed -n '/^   /s/^.*=> //p'"))

Okay, six characters successfully inserted :-)

Maybe this applies to some of the other checks, too?

As a final note:
I did not find a better alternative to using "ldconfig -p"

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gauche-c-wrapper depends on:
ii  gauche                        0.8.13-1   A Scheme implementation designed f
ii  libc6                         2.7-10     GNU C Library: Shared libraries

gauche-c-wrapper recommends no packages.

-- no debconf information



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

Reply via email to