Blame 0001-GTK-Require-woff2-1.0.2-and-drop-direct-brotli-depen.patch

434b597
From aacbb7501a1c9b16a73211a8a67ff5b028e92988 Mon Sep 17 00:00:00 2001
434b597
From: "mcatanzaro@igalia.com"
434b597
 <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
434b597
Date: Tue, 14 Nov 2017 00:42:20 +0000
434b597
Subject: [PATCH] [GTK] Require woff2 1.0.2 and drop direct brotli dependency
434b597
 https://bugs.webkit.org/show_bug.cgi?id=179630
434b597
MIME-Version: 1.0
434b597
Content-Type: text/plain; charset=UTF-8
434b597
Content-Transfer-Encoding: 8bit
434b597
434b597
Reviewed by Frédéric Wang.
434b597
434b597
.:
434b597
434b597
* Source/cmake/FindBrotliDec.cmake: Removed.
434b597
* Source/cmake/OptionsGTK.cmake:
434b597
434b597
Tools:
434b597
434b597
* gtk/jhbuild.modules:
434b597
434b597
434b597
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@224793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
434b597
---
434b597
 ChangeLog                        | 10 ++++++++
434b597
 Source/cmake/FindBrotliDec.cmake | 53 ----------------------------------------
434b597
 Source/cmake/OptionsGTK.cmake    |  6 +----
434b597
 Tools/ChangeLog                  |  9 +++++++
434b597
 Tools/gtk/jhbuild.modules        |  2 +-
434b597
 5 files changed, 21 insertions(+), 59 deletions(-)
434b597
 delete mode 100644 Source/cmake/FindBrotliDec.cmake
434b597
434b597
diff --git a/Source/cmake/FindBrotliDec.cmake b/Source/cmake/FindBrotliDec.cmake
434b597
deleted file mode 100644
434b597
index 3a8cf90357f..00000000000
434b597
--- a/Source/cmake/FindBrotliDec.cmake
434b597
+++ /dev/null
434b597
@@ -1,53 +0,0 @@
434b597
-# - Try to find BrotliDec.
434b597
-# Once done, this will define
434b597
-#
434b597
-#  BROTLIDEC_FOUND - system has BrotliDec.
434b597
-#  BROTLIDEC_INCLUDE_DIRS - the BrotliDec include directories
434b597
-#  BROTLIDEC_LIBRARIES - link these to use BrotliDec.
434b597
-#
434b597
-# Copyright (C) 2017 Igalia S.L.
434b597
-#
434b597
-# Redistribution and use in source and binary forms, with or without
434b597
-# modification, are permitted provided that the following conditions
434b597
-# are met:
434b597
-# 1.  Redistributions of source code must retain the above copyright
434b597
-#     notice, this list of conditions and the following disclaimer.
434b597
-# 2.  Redistributions in binary form must reproduce the above copyright
434b597
-#     notice, this list of conditions and the following disclaimer in the
434b597
-#     documentation and/or other materials provided with the distribution.
434b597
-#
434b597
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS
434b597
-# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
434b597
-# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
434b597
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS
434b597
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
434b597
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
434b597
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
434b597
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
434b597
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
434b597
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
434b597
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
434b597
-
434b597
-find_package(PkgConfig)
434b597
-pkg_check_modules(PC_BROTLIDEC libbrotlidec)
434b597
-
434b597
-find_path(BROTLIDEC_INCLUDE_DIRS
434b597
-    NAMES brotli/decode.h
434b597
-    HINTS ${PC_BROTLIDEC_INCLUDEDIR}
434b597
-)
434b597
-
434b597
-find_library(BROTLIDEC_LIBRARIES
434b597
-    NAMES brotlidec
434b597
-    HINTS ${PC_BROTLIDEC_LIBDIR}
434b597
-)
434b597
-
434b597
-include(FindPackageHandleStandardArgs)
434b597
-find_package_handle_standard_args(BrotliDec
434b597
-    REQUIRED_VARS BROTLIDEC_INCLUDE_DIRS BROTLIDEC_LIBRARIES
434b597
-    FOUND_VAR BROTLIDEC_FOUND
434b597
-    VERSION_VAR PC_BROTLIDEC_VERSION)
434b597
-
434b597
-mark_as_advanced(
434b597
-    BROTLIDEC_INCLUDE_DIRS
434b597
-    BROTLIDEC_LIBRARIES
434b597
-)
434b597
diff --git a/Source/cmake/OptionsGTK.cmake b/Source/cmake/OptionsGTK.cmake
434b597
index ba7e134c7cc..39c3a9be47e 100644
434b597
--- a/Source/cmake/OptionsGTK.cmake
434b597
+++ b/Source/cmake/OptionsGTK.cmake
434b597
@@ -365,11 +365,7 @@ if (USE_UPOWER)
434b597
 endif ()
434b597
 
434b597
 if (USE_WOFF2)
434b597
-    find_package(BrotliDec 1.0.1)
434b597
-    if (NOT BROTLIDEC_FOUND)
434b597
-       message(FATAL_ERROR "libbrotlidec is needed for USE_WOFF2.")
434b597
-    endif ()
434b597
-    find_package(WOFF2Dec 1.0.1)
434b597
+    find_package(WOFF2Dec 1.0.2)
434b597
     if (NOT WOFF2DEC_FOUND)
434b597
        message(FATAL_ERROR "libwoff2dec is needed for USE_WOFF2.")
434b597
     endif ()
434b597
-- 
434b597
2.16.2
434b597