Bug 171112 - [GTK] Make the ENABLE_SUBTLE_CRYPTO option depend on libgcrypt 1.7.0
Summary: [GTK] Make the ENABLE_SUBTLE_CRYPTO option depend on libgcrypt 1.7.0
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-21 07:51 PDT by Zan Dobersek
Modified: 2017-04-24 11:10 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.01 KB, patch)
2017-04-21 07:56 PDT, Zan Dobersek
no flags Details | Formatted Diff | Diff
Patch (1.47 KB, patch)
2017-04-23 03:51 PDT, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2017-04-21 07:51:25 PDT
[GTK] Expose the ENABLE_SUBTLE_CRYPTO CMake option, have it depend on libgcrypt 1.7.0
Comment 1 Zan Dobersek 2017-04-21 07:56:00 PDT
Created attachment 307729 [details]
Patch
Comment 2 Michael Catanzaro 2017-04-21 08:52:33 PDT
Comment on attachment 307729 [details]
Patch

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

I think this should be renamed to ENABLE_WEB_CRYPTO before it's made public.

> Source/cmake/OptionsGTK.cmake:142
> +WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SUBTLE_CRYPTO PUBLIC OFF)

Not ready to turn it ON yet?

I think we should make it public in the same patch that we turn it ON. The point of making it public is to provide users a way to turn it off if they don't have new enough libgcrypt. If it's not ON by default, then no point in making it public yet.
Comment 3 Zan Dobersek 2017-04-23 03:07:48 PDT
Comment on attachment 307729 [details]
Patch

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

>> Source/cmake/OptionsGTK.cmake:142
>> +WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SUBTLE_CRYPTO PUBLIC OFF)
> 
> Not ready to turn it ON yet?
> 
> I think we should make it public in the same patch that we turn it ON. The point of making it public is to provide users a way to turn it off if they don't have new enough libgcrypt. If it's not ON by default, then no point in making it public yet.

No, we shouldn't turn it ON before completing the support and doing another round of reviews.
Comment 4 Zan Dobersek 2017-04-23 03:08:56 PDT
(In reply to Michael Catanzaro from comment #2)
> Comment on attachment 307729 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=307729&action=review
> 
> I think this should be renamed to ENABLE_WEB_CRYPTO before it's made public.
> 

OK.
Comment 5 Zan Dobersek 2017-04-23 03:51:39 PDT
Created attachment 307929 [details]
Patch
Comment 6 Zan Dobersek 2017-04-24 06:15:37 PDT
Comment on attachment 307929 [details]
Patch

Clearing flags on attachment: 307929

Committed r215681: <http://trac.webkit.org/changeset/215681>
Comment 7 Zan Dobersek 2017-04-24 06:15:41 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Michael Catanzaro 2017-04-24 09:20:05 PDT
Minor problem:

cgarcia:  Zan: btw, not a big deal but I have #define ENABLE_SUBTLE_CRYPTO 1 duplicated in cmakehader.h
mcatanzaro:  That's a regression from http://trac.webkit.org/changeset/215681/webkit
mcatanzaro:  We should not use SET_AND_EXPOSE_TO_BUILD there
Comment 9 Zan Dobersek 2017-04-24 11:10:30 PDT
(In reply to Michael Catanzaro from comment #8)
> Minor problem:
> 
> cgarcia:  Zan: btw, not a big deal but I have #define ENABLE_SUBTLE_CRYPTO 1
> duplicated in cmakehader.h
> mcatanzaro:  That's a regression from
> http://trac.webkit.org/changeset/215681/webkit
> mcatanzaro:  We should not use SET_AND_EXPOSE_TO_BUILD there

Fixed in r215684.
https://trac.webkit.org/changeset/215684/webkit