opensolaris, pkgsrc, db4 and libtool

I’ve recently been tinkering with OpenSolaris 2008.11 and pkgsrc and have found what looks like a vi/vim typo in libtool-1.5.26 when trying to build the db4 database.

In case anyone else has been tripped up by this whilst using pkgsrc (complaints that .lai files can’t be found when it should be looking for a source lib ending in .la) you can fix this with the following diff:

--- /usr/pkg/bin/libtool.orig        2009-02-06 19:30:08.492465367 +0000
+++ /usr/pkg/bin/libtool     2009-02-06 19:30:15.072304479 +0000
@@ -6532,7 +6532,7 @@
        # Install the pseudo-library for information purposes.
        name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
-       instname="$dir/$name"i
+       instname="$dir/$name"
        $show "$install_prog $instname $destdir/$name"
        $run eval "$install_prog $instname $destdir/$name" || exit $?

Comments are Disabled