So, I was able to recreate the issue Matteo posted on
http://pastebin.com/6QcYEQVE using all optional dependencies and adding
DOCS and EXAMPLES as yes.  Fortunately, I was able to create a patch that
compiles qt5.

The short answer of why it fails on Slackware -current is that the newer
mozilla-nss package now defines CKM_NSS_CHACHA20_POLY1305
and CK_NSS_AEAD_PARAMS.  They were originally defined in ssl3con.c if
CKM_NSS_CHACHA20_POLY1305 wasn't defined.  Also the nonce and nonce length
for CK_NSS_AEAD_PARAMS, which were pIv and ulIvLen, are now renamed pNonce
and ulNonceLen, respectively, in /usr/include/nss/pkcs11n.h.
I'm still building qt5 but it is past the point where the error happens.
I'm providing a patch to account for the updated headers in mozilla-nss
package.

Note that this patch won't work on Slackware 14.1.

--Larry

On Tue, Mar 15, 2016 at 11:36 AM, Willy Sudiarto Raharjo <
will...@slackbuilds.org> wrote:

> > That's the easy part.
> >
> > The difficult part is to find which other packages will fail if
> > qtwebengine is not built, and how to fix them.
> >
> > If we can't do that quickly and easily, then it might be easier to fix
> > qtwebengine.
>
> and FYI, here are the packages that directly requires qt5
>
> academic/stellarium
> academic/ugene
> audio/acousticbrainz-gui
> audio/qjackctl
> desktop/lumina
> desktop/qmapshack
> desktop/rss-guard
> development/fuel
> development/qt-creator3
> development/zeal
> games/dustrac
> games/peg-e
> games/solarus-quest-editor
> games/vcmi
> graphics/fritzing
> graphics/luminance-hdr
> graphics/photoqt
> graphics/phototonic
> graphics/qelectrotech
> graphics/scantailor
> libraries/poppler-qt5
> libraries/python3-PyQt5
> libraries/qmltermwidget
> multimedia/obs-studio
> multimedia/xvst
> network/cmst
> network/otter
> network/qTox
> network/wireshark
> office/sigil
> system/zuluCrypt
>
> it doesn't count packages that optionally depends on qt5
>
>
> --
> Willy Sudiarto Raharjo
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users@slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
>
>
diff -Naur qt-everywhere-opensource-src-5.5.1.orig/qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc qt-everywhere-opensource-src-5.5.1/qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc
--- qt-everywhere-opensource-src-5.5.1.orig/qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc	2015-10-13 04:36:54.000000000 +0000
+++ qt-everywhere-opensource-src-5.5.1/qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc	2016-03-15 11:57:53.898988200 +0000
@@ -66,9 +66,9 @@
                                                AeadParams* aead_params) const {
   aead_params->len = sizeof(aead_params->data.nss_aead_params);
   CK_NSS_AEAD_PARAMS* nss_aead_params = &aead_params->data.nss_aead_params;
-  nss_aead_params->pIv =
+  nss_aead_params->pNonce =
       reinterpret_cast<CK_BYTE*>(const_cast<char*>(nonce.data()));
-  nss_aead_params->ulIvLen = nonce.size();
+  nss_aead_params->ulNonceLen = nonce.size();
   nss_aead_params->pAAD =
       reinterpret_cast<CK_BYTE*>(const_cast<char*>(associated_data.data()));
   nss_aead_params->ulAADLen = associated_data.size();
diff -Naur qt-everywhere-opensource-src-5.5.1.orig/qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc qt-everywhere-opensource-src-5.5.1/qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
--- qt-everywhere-opensource-src-5.5.1.orig/qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc	2015-10-13 04:36:54.000000000 +0000
+++ qt-everywhere-opensource-src-5.5.1/qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc	2016-03-15 11:57:53.902988200 +0000
@@ -66,9 +66,9 @@
                                                AeadParams* aead_params) const {
   aead_params->len = sizeof(aead_params->data.nss_aead_params);
   CK_NSS_AEAD_PARAMS* nss_aead_params = &aead_params->data.nss_aead_params;
-  nss_aead_params->pIv =
+  nss_aead_params->pNonce =
       reinterpret_cast<CK_BYTE*>(const_cast<char*>(nonce.data()));
-  nss_aead_params->ulIvLen = nonce.size();
+  nss_aead_params->ulNonceLen = nonce.size();
   nss_aead_params->pAAD =
       reinterpret_cast<CK_BYTE*>(const_cast<char*>(associated_data.data()));
   nss_aead_params->ulAADLen = associated_data.size();
diff -Naur qt-everywhere-opensource-src-5.5.1.orig/qtwebengine/src/3rdparty/chromium/net/third_party/nss/ssl/ssl3con.c qt-everywhere-opensource-src-5.5.1/qtwebengine/src/3rdparty/chromium/net/third_party/nss/ssl/ssl3con.c
--- qt-everywhere-opensource-src-5.5.1.orig/qtwebengine/src/3rdparty/chromium/net/third_party/nss/ssl/ssl3con.c	2015-10-13 04:36:52.000000000 +0000
+++ qt-everywhere-opensource-src-5.5.1/qtwebengine/src/3rdparty/chromium/net/third_party/nss/ssl/ssl3con.c	2016-03-15 12:00:01.376986796 +0000
@@ -2088,8 +2088,8 @@
     param.len = sizeof(aeadParams);
     param.data = (unsigned char *) &aeadParams;
     memset(&aeadParams, 0, sizeof(aeadParams));
-    aeadParams.pIv = (unsigned char *) additionalData;
-    aeadParams.ulIvLen = 8;
+    aeadParams.pNonce = (unsigned char *) additionalData;
+    aeadParams.ulNonceLen = 8;
     aeadParams.pAAD = (unsigned char *) additionalData;
     aeadParams.ulAADLen = additionalDataLen;
     aeadParams.ulTagLen = tagSize;
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - http://slackbuilds.org/faq/

Reply via email to