Didier Spaier
2018-11-09 16:49:56 UTC
Hello,
Instead of dropping the doc it's often possible to replace the
converter expected by the Makefile by another one easier to
get installed. Too tired to check for this specific case now,
but will do that later unless someone is faster.
Best, Didier
Instead of dropping the doc it's often possible to replace the
converter expected by the Makefile by another one easier to
get installed. Too tired to check for this specific case now,
but will do that later unless someone is faster.
Best, Didier
Hello,
I tried to build owncloud-client recently and ran into problems. In
summary, it seems that when "make doc" is executed, an error is shown
pointing to a lacking "latexmk" utility that would be used to build
something.
Some googlings after and I found that this utility possibly belongs to
one of the "texlive" SBo packages (texlive, texlive-doc or
texlive-extra). The first is easy to build and install (considering
also that it collides with a base Slackware package), but the last two
requires downloading ~1Gb each, and so I didn't feel comfortable in
building and installing them all.
By the other hand, one possibility is that the documentation could be
regarded as an optional thing in the whole owncloud-client package.
So I tried to build owncloud-client commenting out the "make doc" step,
and it worked.
I took an additional step and changed the SlackBuild to allow building
the package without "make doc" when latexmk is not available. Here is a
--
diff --git a/network/owncloud-client/owncloud-client.SlackBuild b/network/owncloud-client/owncloud-client.SlackBuild
index 0ee0dd35aa12ebbbbe3e4c756a6d4264719f68ce..5903474f96496aee2b695df0630ffeb75350267b 100644
--- a/network/owncloud-client/owncloud-client.SlackBuild
+++ b/network/owncloud-client/owncloud-client.SlackBuild
@@ -22,6 +22,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# latexmk is not present
+
PRGNAM=owncloud-client
VERSION=${VERSION:-2.4.2}
BUILD=${BUILD:-1}
@@ -71,6 +74,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+HAVE_LATEXMK=$(latexmk -v 2>/dev/null | head -1 || true)
+test -z "${HAVE_LATEXMK}" && echo "latexmk not found: will not build docs"
+
mkdir -p build
cd build
cmake \
@@ -84,7 +90,7 @@ cd build
-DBUILD_WITH_QT4=${BUILD_WITH_QT4:-"No"} \
..
make VERBOSE=1
- make doc
+ test -n "${HAVE_LATEXMK}" && make doc
make install DESTDIR=$PKG
cd ..
I tried to build owncloud-client recently and ran into problems. In
summary, it seems that when "make doc" is executed, an error is shown
pointing to a lacking "latexmk" utility that would be used to build
something.
Some googlings after and I found that this utility possibly belongs to
one of the "texlive" SBo packages (texlive, texlive-doc or
texlive-extra). The first is easy to build and install (considering
also that it collides with a base Slackware package), but the last two
requires downloading ~1Gb each, and so I didn't feel comfortable in
building and installing them all.
By the other hand, one possibility is that the documentation could be
regarded as an optional thing in the whole owncloud-client package.
So I tried to build owncloud-client commenting out the "make doc" step,
and it worked.
I took an additional step and changed the SlackBuild to allow building
the package without "make doc" when latexmk is not available. Here is a
--
diff --git a/network/owncloud-client/owncloud-client.SlackBuild b/network/owncloud-client/owncloud-client.SlackBuild
index 0ee0dd35aa12ebbbbe3e4c756a6d4264719f68ce..5903474f96496aee2b695df0630ffeb75350267b 100644
--- a/network/owncloud-client/owncloud-client.SlackBuild
+++ b/network/owncloud-client/owncloud-client.SlackBuild
@@ -22,6 +22,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# latexmk is not present
+
PRGNAM=owncloud-client
VERSION=${VERSION:-2.4.2}
BUILD=${BUILD:-1}
@@ -71,6 +74,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+HAVE_LATEXMK=$(latexmk -v 2>/dev/null | head -1 || true)
+test -z "${HAVE_LATEXMK}" && echo "latexmk not found: will not build docs"
+
mkdir -p build
cd build
cmake \
@@ -84,7 +90,7 @@ cd build
-DBUILD_WITH_QT4=${BUILD_WITH_QT4:-"No"} \
..
make VERBOSE=1
- make doc
+ test -n "${HAVE_LATEXMK}" && make doc
make install DESTDIR=$PKG
cd ..