Bug 133317 - [GTK] Adds dependency on GnuTLS 3.0+ for the implementation of subtle crypto algorithms
Summary: [GTK] Adds dependency on GnuTLS 3.0+ for the implementation of subtle crypto ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 133316 135796
Blocks: 133122 133319 133320 133344 135850
  Show dependency treegraph
 
Reported: 2014-05-27 12:05 PDT by Eduardo Lima Mitev
Modified: 2014-08-12 12:55 PDT (History)
9 users (show)

See Also:


Attachments
Patch (5.12 KB, patch)
2014-05-27 12:08 PDT, Eduardo Lima Mitev
no flags Details | Formatted Diff | Diff
Patch (5.18 KB, patch)
2014-05-28 03:22 PDT, Eduardo Lima Mitev
no flags Details | Formatted Diff | Diff
Patch (2.70 KB, patch)
2014-05-28 09:21 PDT, Eduardo Lima Mitev
no flags Details | Formatted Diff | Diff
Patch (2.74 KB, patch)
2014-08-11 02:39 PDT, Eduardo Lima Mitev
no flags Details | Formatted Diff | Diff
Patch (2.59 KB, patch)
2014-08-11 11:44 PDT, Eduardo Lima Mitev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Lima Mitev 2014-05-27 12:05:42 PDT
[GTK] Adds dependency on GnuTLS 3.0+ for the implementation of subtle crypto algorithms
Comment 1 Eduardo Lima Mitev 2014-05-27 12:08:03 PDT
Created attachment 232142 [details]
Patch
Comment 2 WebKit Commit Bot 2014-05-27 12:10:45 PDT
Attachment 232142 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
ERROR: ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 2 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Eduardo Lima Mitev 2014-05-28 02:06:09 PDT
(In reply to comment #2)
> Attachment 232142 [details] did not pass style-queue:
> 
> 
> ERROR: Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
> ERROR: ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
> Total errors found: 2 in 5 files
> 

The bug was created during patch upload using '--open-bug'. This doesn't seem neither a 'style-check' bug nor a 'webkit-patch' bug, so I don't really know what to do other than upload a new patch with the bug URL updated, which is unfortunate :(
Comment 4 Eduardo Lima Mitev 2014-05-28 03:22:47 PDT
Created attachment 232185 [details]
Patch
Comment 5 Raphael Kubo da Costa (:rakuco) 2014-05-28 05:29:38 PDT
CMake itself has had a FindGnuTLS.cmake since version 2.8.0, doesn't that one work for your purposes?
Comment 6 Eduardo Lima Mitev 2014-05-28 09:20:24 PDT
(In reply to comment #5)
> CMake itself has had a FindGnuTLS.cmake since version 2.8.0, doesn't that one work for your purposes?

That works for me, I was unaware of that. Will update the patch removing that. Thank you.
Comment 7 Eduardo Lima Mitev 2014-05-28 09:21:24 PDT
Created attachment 232202 [details]
Patch
Comment 8 Martin Robinson 2014-06-23 07:15:54 PDT
Comment on attachment 232202 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=232202&action=review

It doesn't look like  ENABLE_SUBTLE_CRYPTO listed in WebKitFeatures.cmake yet or cmakeconfig.h.cmake yet?

> Source/WebCore/PlatformGTK.cmake:727
> +if (ENABLE_SUBTLE_CRYPTO)
> +    list(APPEND WebCore_INCLUDE_DIRECTORIES
> +        ${GNUTLS_INCLUDE_DIRS}
> +    )
> +    list(APPEND WebCore_LIBRARIES
> +        ${GNUTLS_LIBRARIES}
> +    )

You don't need to make this conditional. If you don't look for the package these will be empty.
Comment 9 Eduardo Lima Mitev 2014-08-08 03:02:15 PDT
(In reply to comment #8)
> 
> It doesn't look like  ENABLE_SUBTLE_CRYPTO listed in WebKitFeatures.cmake yet or cmakeconfig.h.cmake yet?
> 

Right, ENABLE_SUBTLE_CRYPTO is added in a previous patch of this serie, for bug 133316, which is also pending review.

> > Source/WebCore/PlatformGTK.cmake:727
> > +if (ENABLE_SUBTLE_CRYPTO)
> > +    list(APPEND WebCore_INCLUDE_DIRECTORIES
> > +        ${GNUTLS_INCLUDE_DIRS}
> > +    )
> > +    list(APPEND WebCore_LIBRARIES
> > +        ${GNUTLS_LIBRARIES}
> > +    )
> 
> You don't need to make this conditional. If you don't look for the package these will be empty.

Ok, though the conditional is also introduced in patch for bug 133316. Perhaps I should not have separated this patch from the other.

To avoid these issues, I'm making this bug depend on bug 133316. After that is fixed I will update this patch accordingly.

Thank you.
Comment 10 Eduardo Lima Mitev 2014-08-11 02:39:55 PDT
Created attachment 236360 [details]
Patch
Comment 11 Philippe Normand 2014-08-11 02:43:49 PDT
Comment on attachment 236360 [details]
Patch

LGTM, thanks!
Comment 12 WebKit Commit Bot 2014-08-11 03:24:08 PDT
Comment on attachment 236360 [details]
Patch

Clearing flags on attachment: 236360

Committed r172393: <http://trac.webkit.org/changeset/172393>
Comment 13 WebKit Commit Bot 2014-08-11 03:24:14 PDT
All reviewed patches have been landed.  Closing bug.
Comment 14 WebKit Commit Bot 2014-08-11 03:33:33 PDT
Re-opened since this is blocked by bug 135796
Comment 15 Eduardo Lima Mitev 2014-08-11 11:33:40 PDT
Finally a decision was made to upgrade GnuTLS version to 3.x (gnutls28-dev) in the release and test bots. It is done now so I will re-submit the previous patch.
Comment 16 Eduardo Lima Mitev 2014-08-11 11:44:05 PDT
Created attachment 236388 [details]
Patch
Comment 17 WebKit Commit Bot 2014-08-12 01:03:22 PDT
Comment on attachment 236388 [details]
Patch

Clearing flags on attachment: 236388

Committed r172433: <http://trac.webkit.org/changeset/172433>
Comment 18 WebKit Commit Bot 2014-08-12 01:03:29 PDT
All reviewed patches have been landed.  Closing bug.
Comment 19 Csaba Osztrogonác 2014-08-12 03:43:34 PDT
(In reply to comment #15)
> Finally a decision was made to upgrade GnuTLS version to 3.x (gnutls28-dev) in the release and test bots. It is done now so I will re-submit the previous patch.

But the build is still brokene due to missing GnuTLS on the following bots:
- GTK Linux 32-bit Release
- GTK Linux ARM Release
Comment 20 Csaba Osztrogonác 2014-08-12 03:44:44 PDT
and all tests fail on the GTK performance bot with the following error:
/home/slave/webkitgtk/gtk-linux-64-release-perf-tests/build/WebKitBuild/Release/bin/WebKitTestRunner: error while loading shared libraries: libgnutls-deb0.so.28: cannot open shared object file: No such file or directory
Comment 21 Eduardo Lima Mitev 2014-08-12 03:53:16 PDT
Yes, apparently build bots were not all upgraded. We are rushing to fix that.
Comment 22 Csaba Osztrogonác 2014-08-12 09:29:40 PDT
(In reply to comment #21)
> Yes, apparently build bots were not all upgraded. We are rushing to fix that.

buildbots are happy now, bot the EWS is still failing