Package: libtool
Version: 1.6-0+1.5a-4
Severity: normal

   Relinking fails when $libdir is detected as being empty. This is due
to the following code:

    # Determine the prefix the user has applied to our future dir.
    inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
    # [...]
    if test "$inst_prefix_dir" = "$destdir"; then
        $echo "$modename: error: cannot install \`$file' to a directory not 
ending in $libdir" 1>&2

   The correct way to check that "$destdir" ends with "$libdir" is
the following:

    if test "$inst_prefix_dir$libdir" != "$destdir"; then

   Simple patch attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (50, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.8
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libtool depends on:
ii  autotools-dev                20060702.1  Update infrastructure for config.{
ii  cpp                          4:4.1.1-6   The GNU C preprocessor (cpp)
ii  file                         4.17-3      Determines file type using "magic"
ii  gcc [c-compiler]             4:4.1.1-6   The GNU C compiler
ii  gcc-3.3 [c-compiler]         1:3.3.6-13  The GNU C compiler
ii  gcc-3.4 [c-compiler]         3.4.6-4     The GNU C compiler
ii  gcc-4.0 [c-compiler]         4.0.3-6     The GNU C compiler
ii  gcc-4.1 [c-compiler]         4.1.1-11    The GNU C compiler
ii  libc6-dev [libc-dev]         2.3.6.ds1-2 GNU C Library: Development Librari

Versions of packages libtool recommends:
pn  libltdl3-dev                  <none>     (no description available)

-- no debconf information
--- /usr/share/libtool/ltmain.sh        2006-03-11 19:49:04.000000000 +0100
+++ ltmain-fixed.sh     2006-08-23 15:37:19.000000000 +0200
@@ -5927,7 +5927,7 @@
          # At present, this check doesn't affect windows .dll's that
          # are installed into $libdir/../bin (currently, that works fine)
          # but it's something to keep an eye on.
-         if test "$inst_prefix_dir" = "$destdir"; then
+         if test "$inst_prefix_dir$libdir" != "$destdir"; then
            $echo "$modename: error: cannot install \`$file' to a directory not 
ending in $libdir" 1>&2
            exit $EXIT_FAILURE
          fi

Reply via email to