libssh Slackbuild Failing: Quick and Dirty Solution

I needed libssh this morning for some code I’m writing and unfortunately found out that the slackbuild for it fails to build on my 13.37 box.

It errors out post compile during the install phase with:

cp: cannot stat `build/doc/latex’: No such file or directory

As the latex docs aren’t of much importance to me and I needed it installed about 5 minutes before I started compiling it I simply removed that portion from libssh.Slackbuild.

-Lines 106 to 110-

Before:

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS BSD ChangeLog COPYING INSTALL README build/doc/html build/doc/latex \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

After:

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS BSD ChangeLog COPYING INSTALL README build/doc/html \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

As you can see I just removed build/doc/latex from the list of directories being copied. With that the SB was built correctly and installed fine. It’s a hack and it doesn’t actually solve the problem of the latex doc directory being missing but it works for now and I’ll attempt to actually fix the build file later this evening.