From b077973b457ec5dbb4dea5c2c10ddc8b71ab200c Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 2 May 2014 18:50:48 -0500 Subject: [PATCH] 5.2.1-3 - no rpath, drop chrpath hacks - BR: qt5-qtlocation qt5-qtsensors --- qt5-qtwebkit.spec | 27 +++++++++----------- qtwebkit-opensource-src-5.2.1-no_rpath.patch | 12 +++++++++ 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 qtwebkit-opensource-src-5.2.1-no_rpath.patch diff --git a/qt5-qtwebkit.spec b/qt5-qtwebkit.spec index d882211..89e4ab7 100644 --- a/qt5-qtwebkit.spec +++ b/qt5-qtwebkit.spec @@ -11,7 +11,7 @@ Summary: Qt5 - QtWebKit components Name: qt5-qtwebkit Version: 5.2.1 -Release: 2%{?dist} +Release: 3%{?dist} # See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details # See also http://qt-project.org/doc/qt-5.0/qtdoc/licensing.html @@ -43,6 +43,9 @@ Patch6: webkit-commit-142567.patch # Add AArch64 support Patch7: 0001-Add-ARM-64-support.patch +# truly madly deeply no rpath please, kthxbye +Patch8: qtwebkit-opensource-src-5.2.1-no_rpath.patch + %if 0%{?system_angle} BuildRequires: angleproject-devel angleproject-static %endif @@ -53,9 +56,10 @@ Patch10: qtwebkit-opensource-src-5.2.0-beta1-nojit.patch BuildRequires: qt5-qtbase-devel >= %{version} BuildRequires: qt5-qtdeclarative-devel >= %{version} +BuildRequires: qt5-qtlocation-devel +BuildRequires: qt5-qtsensors-devel BuildRequires: bison -BuildRequires: chrpath BuildRequires: flex BuildRequires: gperf BuildRequires: libjpeg-devel @@ -121,6 +125,7 @@ BuildArch: noarch %patch6 -p1 -b .svn142567 %endif %patch7 -p1 -b .aarch64 +%patch8 -p1 -b .no_rpath %patch10 -p1 -b .nojit echo "nuke bundled code..." @@ -168,19 +173,6 @@ sed -i \ # .la files, die, die, die. rm -fv %{buildroot}%{_qt5_libdir}/lib*.la -## kill rpath's -pushd %{buildroot} -for remove_rpath in \ - %{_qt5_libexecdir}/QtWebPluginProcess \ - %{_qt5_libexecdir}/QtWebProcess \ - %{_qt5_archdatadir}/qml/QtWebKit/libqmlwebkitplugin.so \ - %{_qt5_archdatadir}/qml/QtWebKit/experimental/libqmlwebkitexperimentalplugin.so \ -; do -chrpath --list %{buildroot}$remove_rpath -chrpath --delete %{buildroot}$remove_rpath -done -popd - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -210,6 +202,11 @@ popd %changelog +* Fri May 02 2014 Rex Dieter +- 5.2.1-3 +- no rpath, drop chrpath hacks +- BR: qt5-qtlocation qt5-qtsensors + * Wed Feb 12 2014 Rex Dieter 5.2.1-2 - rebuild (libicu) diff --git a/qtwebkit-opensource-src-5.2.1-no_rpath.patch b/qtwebkit-opensource-src-5.2.1-no_rpath.patch new file mode 100644 index 0000000..0871fa7 --- /dev/null +++ b/qtwebkit-opensource-src-5.2.1-no_rpath.patch @@ -0,0 +1,12 @@ +diff -up qtwebkit-opensource-src-5.2.1/Tools/qmake/mkspecs/features/rpath.prf.no_rpath qtwebkit-opensource-src-5.2.1/Tools/qmake/mkspecs/features/rpath.prf +--- qtwebkit-opensource-src-5.2.1/Tools/qmake/mkspecs/features/rpath.prf.no_rpath 2014-02-01 14:37:41.000000000 -0600 ++++ qtwebkit-opensource-src-5.2.1/Tools/qmake/mkspecs/features/rpath.prf 2014-05-02 18:47:26.789051711 -0500 +@@ -6,7 +6,7 @@ + + equals(ROOT_BUILD_DIR, $$dirname(DESTDIR)): RPATHDIR_RELATIVE_TO_DESTDIR = ../lib + +-linux-*:!isEmpty(RPATHDIR_RELATIVE_TO_DESTDIR) { ++linux-rpath_me_harder_no_no_no:!isEmpty(RPATHDIR_RELATIVE_TO_DESTDIR) { + # Do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR + # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var. + QMAKE_RPATHDIR = \$\$ORIGIN/$${RPATHDIR_RELATIVE_TO_DESTDIR} $${QMAKE_RPATHDIR}