games-strategy/hedgewars: Remove RPATHs
authorDavid Seifert <soap@gentoo.org>
Sun, 19 Nov 2017 09:46:25 +0000 (10:46 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 19 Nov 2017 10:50:39 +0000 (11:50 +0100)
Package-Manager: Portage-2.3.14, Repoman-2.3.6

games-strategy/hedgewars/files/hedgewars-0.9.22-rpath-fix.patch [new file with mode: 0644]
games-strategy/hedgewars/hedgewars-0.9.22-r2.ebuild

diff --git a/games-strategy/hedgewars/files/hedgewars-0.9.22-rpath-fix.patch b/games-strategy/hedgewars/files/hedgewars-0.9.22-rpath-fix.patch
new file mode 100644 (file)
index 0000000..332c0c3
--- /dev/null
@@ -0,0 +1,10 @@
+diff -up hedgewars-src-0.9.22/cmake_modules/paths.cmake~ hedgewars-src-0.9.22/cmake_modules/paths.cmake
+--- hedgewars-src-0.9.22/cmake_modules/paths.cmake~    2015-12-02 15:02:38.000000000 +0100
++++ hedgewars-src-0.9.22/cmake_modules/paths.cmake     2015-12-02 15:15:24.729980850 +0100
+@@ -67,5 +67,5 @@ else(APPLE AND NOT (${CMAKE_INSTALL_PREF
+     # - the third one is the full path of the system dir
+     #source http://www.cmake.org/pipermail/cmake/2008-January/019290.html
+     #skip this if the install prefix is the standard one
+-    set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
++    #set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
+ endif(APPLE)
index d7016bea411e38f414c25b7b6a943be2fda2d9e9..d447ec2bd156ba9b81cce01225ca58eaac063dc7 100644 (file)
@@ -46,6 +46,7 @@ RDEPEND="${CDEPEND}
        >=media-fonts/dejavu-2.28"
 
 S=${WORKDIR}/${MY_P}
+PATCHES=( "${FILESDIR}"/${PN}-0.9.22-rpath-fix.patch )
 
 src_prepare() {
        while IFS="" read -r f ; do
@@ -64,6 +65,9 @@ src_configure() {
                -DNOSERVER=TRUE
                -DCMAKE_VERBOSE_MAKEFILE=TRUE
                -DPHYSFS_SYSTEM=ON
+               # upstream sets RPATH that leafs to weird breakage
+               # https://bugzilla.redhat.com/show_bug.cgi?id=1200193
+               -DCMAKE_SKIP_RPATH=ON
        )
        cmake-utils_src_configure
 }