From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtwebengine/, dev-qt/qtwebengine/files/
Date: Tue, 6 Dec 2016 06:54:22 +0000 (UTC) [thread overview]
Message-ID: <1481007251.c774a4445fb38143628450af34608353efc1bd78.kensington@gentoo> (raw)
commit: c774a4445fb38143628450af34608353efc1bd78
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
AuthorDate: Wed Nov 23 23:56:40 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Dec 6 06:54:11 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c774a444
dev-qt/qtwebengine: Fix on PaX kernels
Gentoo-Bug: 582558
Gentoo-Bug: 579712
.../files/qtwebengine-paxmark-mksnapshot.patch | 46 ++++++++++++++++++++++
dev-qt/qtwebengine/metadata.xml | 1 +
dev-qt/qtwebengine/qtwebengine-5.6.2.ebuild | 13 +++++-
dev-qt/qtwebengine/qtwebengine-5.7.0.ebuild | 13 +++++-
4 files changed, 69 insertions(+), 4 deletions(-)
diff --git a/dev-qt/qtwebengine/files/qtwebengine-paxmark-mksnapshot.patch b/dev-qt/qtwebengine/files/qtwebengine-paxmark-mksnapshot.patch
new file mode 100644
index 00000000..c71cedc
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-paxmark-mksnapshot.patch
@@ -0,0 +1,46 @@
+--- qtwebengine-opensource-src-5.6.0-orig/src/3rdparty/chromium/v8/tools/gyp/v8.gyp 2016-03-04 01:48:36.000000000 +1100
++++ qtwebengine-opensource-src-5.6.0/src/3rdparty/chromium/v8/tools/gyp/v8.gyp 2016-05-01 19:15:44.052770543 +1000
+@@ -33,6 +33,7 @@
+ 'embed_script%': "",
+ 'v8_extra_library_files%': [],
+ 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
++ 'mksnapshot_u_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot_u<(EXECUTABLE_SUFFIX)',
+ 'remove_v8base_debug_symbols%': 0,
+ },
+ 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
+@@ -1913,7 +1914,7 @@
+ ]
+ },
+ {
+- 'target_name': 'mksnapshot',
++ 'target_name': 'mksnapshot_u',
+ 'type': 'executable',
+ 'dependencies': ['v8_base', 'v8_nosnapshot', 'v8_libplatform'],
+ 'include_dirs+': [
+@@ -1936,5 +1937,26 @@
+ }],
+ ],
+ },
++ {
++ 'target_name': 'mksnapshot',
++ 'type': 'executable',
++ 'dependencies': ['mksnapshot_u'],
++ 'actions': [
++ {
++ 'action_name': 'paxmark_m_mksnapshot',
++ 'inputs': [
++ '<(mksnapshot_u_exec)',
++ ],
++ 'outputs': [
++ '<(mksnapshot_exec)',
++ ],
++ 'action': [
++ 'sh',
++ '-c',
++ 'cp <(mksnapshot_u_exec) <(mksnapshot_exec) && paxmark.sh m <(mksnapshot_exec)',
++ ],
++ },
++ ],
++ },
+ ],
+ }
diff --git a/dev-qt/qtwebengine/metadata.xml b/dev-qt/qtwebengine/metadata.xml
index 881cc17..9c08bb1 100644
--- a/dev-qt/qtwebengine/metadata.xml
+++ b/dev-qt/qtwebengine/metadata.xml
@@ -8,6 +8,7 @@
<use>
<flag name="geolocation">Enable physical position determination
via <pkg>dev-qt/qtpositioning</pkg></flag>
+ <flag name="pax_kernel">Enable building under a PaX enabled kernel</flag>
<flag name="system-ffmpeg">Use the system-wide <pkg>media-video/ffmpeg</pkg>
instead of bundled.</flag>
<flag name="system-icu">Use the system-wide <pkg>dev-libs/icu</pkg>
diff --git a/dev-qt/qtwebengine/qtwebengine-5.6.2.ebuild b/dev-qt/qtwebengine/qtwebengine-5.6.2.ebuild
index 38e8525..e7f210f 100644
--- a/dev-qt/qtwebengine/qtwebengine-5.6.2.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-5.6.2.ebuild
@@ -4,7 +4,7 @@
EAPI=6
PYTHON_COMPAT=( python2_7 )
-inherit python-any-r1 qt5-build
+inherit pax-utils python-any-r1 qt5-build
DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications"
@@ -12,7 +12,7 @@ if [[ ${QT5_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~x86"
fi
-IUSE="bindist geolocation +system-ffmpeg +system-icu widgets"
+IUSE="bindist geolocation pax_kernel +system-ffmpeg +system-icu widgets"
RDEPEND="
app-arch/snappy
@@ -68,9 +68,12 @@ DEPEND="${RDEPEND}
dev-util/ninja
dev-util/re2c
sys-devel/bison
+ pax_kernel? ( sys-apps/elfix )
"
src_prepare() {
+ use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-paxmark-mksnapshot.patch" )
+
if use system-icu; then
# ensuire build against system headers - bug #601264
rm -r src/3rdparty/chromium/third_party/icu/source || die
@@ -95,3 +98,9 @@ src_configure() {
)
qt5-build_src_configure
}
+
+src_install() {
+ qt5-build_src_install
+
+ pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
+}
diff --git a/dev-qt/qtwebengine/qtwebengine-5.7.0.ebuild b/dev-qt/qtwebengine/qtwebengine-5.7.0.ebuild
index 87c25c3..b8e0985 100644
--- a/dev-qt/qtwebengine/qtwebengine-5.7.0.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-5.7.0.ebuild
@@ -4,7 +4,7 @@
EAPI=6
PYTHON_COMPAT=( python2_7 )
-inherit python-any-r1 qt5-build
+inherit pax-utils python-any-r1 qt5-build
DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications"
@@ -12,7 +12,7 @@ if [[ ${QT5_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~x86"
fi
-IUSE="bindist geolocation +system-ffmpeg +system-icu widgets"
+IUSE="bindist geolocation pax_kernel +system-ffmpeg +system-icu widgets"
RDEPEND="
app-arch/snappy
@@ -68,6 +68,7 @@ DEPEND="${RDEPEND}
dev-util/ninja
dev-util/re2c
sys-devel/bison
+ pax_kernel? ( sys-apps/elfix )
"
PATCHES=(
@@ -78,6 +79,8 @@ PATCHES=(
)
src_prepare() {
+ use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-paxmark-mksnapshot.patch" )
+
if use system-icu; then
# ensuire build against system headers - bug #601264
rm -r src/3rdparty/chromium/third_party/icu/source || die
@@ -102,3 +105,9 @@ src_configure() {
)
qt5-build_src_configure
}
+
+src_install() {
+ qt5-build_src_install
+
+ pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
+}
next reply other threads:[~2016-12-06 6:54 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 6:54 Michael Palimaka [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-06-04 13:19 [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtwebengine/, dev-qt/qtwebengine/files/ Michael Palimaka
2017-12-05 11:21 Michael Palimaka
2018-05-09 20:17 Andreas Sturmlechner
2018-11-10 20:27 Andreas Sturmlechner
2019-09-01 23:07 Andreas Sturmlechner
2019-09-25 21:34 Andreas Sturmlechner
2019-10-20 14:21 Andreas Sturmlechner
2020-02-08 21:34 Andreas Sturmlechner
2020-02-10 6:42 Andreas Sturmlechner
2020-03-22 14:40 Andreas Sturmlechner
2020-04-26 18:12 Andreas Sturmlechner
2021-03-24 12:15 Andreas Sturmlechner
2021-05-23 19:19 Andreas Sturmlechner
2021-06-14 9:25 Andreas Sturmlechner
2021-09-02 18:38 Andreas Sturmlechner
2021-09-02 18:38 Andreas Sturmlechner
2021-10-17 6:54 Andreas Sturmlechner
2022-04-09 16:07 Andreas Sturmlechner
2022-04-17 19:29 Sam James
2022-05-14 21:24 Sam James
2022-05-20 19:43 Andreas Sturmlechner
2022-06-20 18:54 Andreas Sturmlechner
2022-08-17 21:20 Ionen Wolkens
2022-09-24 14:32 Andreas Sturmlechner
2023-04-09 20:17 Andreas Sturmlechner
2023-04-15 2:10 Sam James
2023-04-17 19:39 Jimi Huotari
2023-04-25 15:38 Andreas Sturmlechner
2023-05-24 11:15 Andreas Sturmlechner
2023-09-07 10:03 Ionen Wolkens
2023-10-05 19:39 Ionen Wolkens
2023-11-20 13:44 Ionen Wolkens
2023-12-18 18:43 Ionen Wolkens
2024-01-03 19:10 Ionen Wolkens
2024-01-16 11:53 Andreas Sturmlechner
2024-02-01 23:06 Andreas Sturmlechner
2024-02-25 18:46 Ionen Wolkens
2024-03-22 10:29 Ionen Wolkens
2024-04-03 3:57 Ionen Wolkens
2024-04-17 0:15 Ionen Wolkens
2024-04-19 7:55 Ionen Wolkens
2024-05-30 12:52 Andreas Sturmlechner
2024-06-08 13:41 Ionen Wolkens
2024-07-03 0:39 Ionen Wolkens
2024-07-28 4:30 Sam James
2024-08-14 15:37 Ionen Wolkens
2024-10-21 12:31 Sam James
2024-11-23 8:44 Andreas Sturmlechner
2024-12-03 17:15 Ionen Wolkens
2024-12-28 16:58 Andreas Sturmlechner
2025-01-04 4:05 Ionen Wolkens
2025-01-06 22:51 Ionen Wolkens
2025-02-13 19:49 Ionen Wolkens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1481007251.c774a4445fb38143628450af34608353efc1bd78.kensington@gentoo \
--to=kensington@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox