[Slackbuilds-users] xmlsec1-1.2.23 fails to build on Slackware64 14.2 with seamonkey-2.46-x86_64-1_slack14.2

Konrad J Hambrick kjhambrick at gmail.com
Sat Jan 7 10:24:15 UTC 2017


Willy --

The latest xmlsec SlackBuild fails with the latest Seamonkey Package for
Slackware64 14.2.

Pat's latest seamonkey2.46 was released with an empty ~/nspr/obsolete/
directory and there are indirect references to obsolete/protypes.h in the
xmlsec source via nspr/pratom.h.

OTOH, mozilla-nspr DOES include the obsolete/*.h files and xmlsec includes
a configure option:  --with-mozilla-ver=

This config overrides the default seamonkey-nspr/ files.

There may be ( probably is ) a better way to do this ( maybe via the
Seamonkey Spec File ??? ) but attached a patch that works ( :) at least for
the time being :) )

Thanks for today's updates !

( and thanks a zillion for cleaning up and including my f3.SlackBuild -- I
wasn't aware that gnu make would override the hard-coded PREFIX =
/usr/local in the Makefile with an exported PREFIX= variable  -- VERY handy
to know )

-- kjh

This is the make error using the original xmlsec.SlackBuild:

make[3]: Entering directory '/tmp/SBo/xmlsec1-1.2.23/src/nss'
  CC       libxmlsec1_nss_la-app.lo
In file included from /usr/include/seamonkey-2.46/nspr/pratom.h:14:0,
                 from /usr/include/seamonkey-2.46/nspr/nspr.h:9,
                 from app.c:14:
/usr/include/seamonkey-2.46/nspr/prtypes.h:574:31: fatal error:
obsolete/protypes.h: No such file or directory
compilation terminated.
Makefile:612: recipe for target 'libxmlsec1_nss_la-app.lo' failed
make[3]: *** [libxmlsec1_nss_la-app.lo] Error 1
make[3]: Leaving directory '/tmp/SBo/xmlsec1-1.2.23/src/nss'
Makefile:694: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/SBo/xmlsec1-1.2.23/src'
Makefile:725: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/xmlsec1-1.2.23'
Makefile:543: recipe for target 'all' failed
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170107/7e064c9d/attachment.html>
-------------- next part --------------
--- xmlsec.SlackBuild.orig	2016-12-31 08:43:23.154400759 -0600
+++ xmlsec.SlackBuild	2017-01-07 04:03:31.950836383 -0600
@@ -69,7 +69,23 @@
   -o -perm 511 \) -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
+#
+# seamonkey-2.46-x86_64-1_slack14.2 was released with an empty
+# usr/include/seamonkey-2.46/nspr/obsolete/ directory and xmlsec
+# won't build without nspr/obsolete/protypes.h
+#
+# All is not lost !  
+#
+# mozilla-nss-3.23-x86_64-1 does populate usr/include/nspr/obsolete/
+# and xmlsec builds OK with that one instead.
+#
+# rather than hard-code the mozilla-version in xmlsec.SlackBuild,
+# grep it from /var/log/packages like so:
+#
+SLKMOZVER="$(basename $(ls -1 /var/log/packages/mozilla-nss-*-${ARCH}* 2>/dev/null) 2>/dev/null)"
+#
+[ "$SLKMOZVER" = "" ] && echo "could not resolve mozilla-nss version" >&2 && exit 1
+#
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
@@ -80,6 +96,7 @@
   --mandir=/usr/man \
   --docdir=/usr/doc/$PRGNAM-$VERSION \
   --disable-static \
+  --with-mozilla-ver=$SLKMOZVER \
   --build=$ARCH-slackware-linux
 
 make


More information about the SlackBuilds-users mailing list