summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2017-08-27 14:12:42 +0300
committerDmitry Shachnev <mitya57@gmail.com>2017-08-27 14:12:42 +0300
commitd182d6944451098c077944335cdd357ff88bcad2 (patch)
tree8f5c9d0febbffaf1501f3832ea3268694949d01c
parent3651815258e6e37976b9e4c1aec10d71ce118c36 (diff)
downloadqt5webkit-d182d6944451098c077944335cdd357ff88bcad2.tar.gz
Add a patch to hide WebCore and JSCore symbols from libQt5WebKit.so.5.
-rw-r--r--debian/changelog1
-rw-r--r--debian/patches/reduce_exports.diff26
-rw-r--r--debian/patches/series1
3 files changed, 28 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index b745f78..98dd585 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,7 @@ qtwebkit-opensource-src (5.212.0~alpha2-1) UNRELEASED; urgency=medium
* Rewrite debian/copyright. The new file is based on decopy output, with
lots of manual fixes.
* Drop unused Lintian overrides.
+ * Add a patch to hide WebCore and JSCore symbols from libQt5WebKit.so.5.
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Fri, 25 Aug 2017 20:50:49 +0300
diff --git a/debian/patches/reduce_exports.diff b/debian/patches/reduce_exports.diff
new file mode 100644
index 0000000..44fb4df
--- /dev/null
+++ b/debian/patches/reduce_exports.diff
@@ -0,0 +1,26 @@
+Description: reduce the number of exported symbols in libQt5WebKit.so.5
+Author: Dmitry Shachnev <mitya57@debian.org>
+Forwarded: not-needed
+Last-Update: 2017-08-27
+
+--- a/Source/WTF/wtf/ExportMacros.h
++++ b/Source/WTF/wtf/ExportMacros.h
+@@ -56,7 +56,7 @@
+
+ #elif defined(__GNUC__) && !defined(__CC_ARM) && !defined(__ARMCC__)
+
+-#define WTF_EXPORT_DECLARATION __attribute__((visibility("default")))
++#define WTF_EXPORT_DECLARATION
+ #define WTF_IMPORT_DECLARATION WTF_EXPORT_DECLARATION
+ #define WTF_HIDDEN_DECLARATION __attribute__((visibility("hidden")))
+
+--- a/Source/cmake/OptionsQt.cmake
++++ b/Source/cmake/OptionsQt.cmake
+@@ -546,6 +546,7 @@
+ if (NOT SHARED_CORE)
+ set(CMAKE_C_FLAGS "-fvisibility=hidden ${CMAKE_C_FLAGS}")
+ set(CMAKE_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden ${CMAKE_CXX_FLAGS}")
++ add_definitions(-DJS_NO_EXPORT)
+ endif ()
+ endif ()
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bd57887
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+reduce_exports.diff