Repeat after me: -Wl,--enable-new-dtags considered harmful. Bump revision.diff -r1.4 -r1.5 pkgsrc/devel/extra-cmake-modules/Makefile
(joerg)
@@ -1,28 +1,30 @@ | @@ -1,28 +1,30 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2016/04/26 09:20:41 markd Exp $ | 1 | # $NetBSD: Makefile,v 1.5 2016/06/07 17:54:59 joerg Exp $ | |
2 | 2 | |||
3 | DISTNAME= extra-cmake-modules-5.21.0 | 3 | DISTNAME= extra-cmake-modules-5.21.0 | |
4 | PKGREVISION= 2 | |||
4 | CATEGORIES= devel kde | 5 | CATEGORIES= devel kde | |
5 | MASTER_SITES= ${MASTER_SITE_KDE:=frameworks/5.21/} | 6 | MASTER_SITES= ${MASTER_SITE_KDE:=frameworks/5.21/} | |
6 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
7 | 8 | |||
8 | MAINTAINER= markd@NetBSD.org | 9 | MAINTAINER= markd@NetBSD.org | |
9 | HOMEPAGE= https://community.kde.org/Frameworks | 10 | HOMEPAGE= https://community.kde.org/Frameworks | |
10 | COMMENT= Extra modules and scripts for CMake | 11 | COMMENT= Extra modules and scripts for CMake | |
11 | LICENSE= modified-bsd | 12 | LICENSE= modified-bsd | |
12 | 13 | |||
13 | #BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.2:../../textproc/py-sphinx | 14 | #BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.2:../../textproc/py-sphinx | |
14 | 15 | |||
15 | USE_CMAKE= yes | 16 | USE_CMAKE= yes | |
16 | USE_LANGUAGES= c c++ | 17 | USE_LANGUAGES= c c++ | |
17 | CMAKE_ARG_PATH= .. | 18 | CMAKE_ARG_PATH= .. | |
18 | CONFIGURE_DIRS= _KDE_build | 19 | CONFIGURE_DIRS= _KDE_build | |
19 | 20 | |||
20 | CMAKE_ARGS+= -DBUILD_TESTING=OFF | 21 | CMAKE_ARGS+= -DBUILD_TESTING=OFF | |
21 | CMAKE_ARGS+= -DBUILD_HTML_DOCS=OFF | 22 | CMAKE_ARGS+= -DBUILD_HTML_DOCS=OFF | |
22 | CMAKE_ARGS+= -DBUILD_MAN_DOCS=OFF | 23 | CMAKE_ARGS+= -DBUILD_MAN_DOCS=OFF | |
23 | 24 | |||
24 | pre-configure: | 25 | pre-configure: | |
25 | ${MKDIR} ${WRKSRC}/_KDE_build | 26 | ${MKDIR} ${WRKSRC}/_KDE_build | |
27 | ${FIND} ${WRKSRC} -name \*.orig -exec rm {} \; | |||
26 | 28 | |||
27 | #.include "../../lang/python/pyversion.mk" | 29 | #.include "../../lang/python/pyversion.mk" | |
28 | .include "../../mk/bsd.pkg.mk" | 30 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2016/04/26 09:20:41 markd Exp $ | 1 | $NetBSD: distinfo,v 1.4 2016/06/07 17:54:59 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (extra-cmake-modules-5.21.0.tar.xz) = a8f2752452c00f5ff4e71efe83cab74a2e72637a | 3 | SHA1 (extra-cmake-modules-5.21.0.tar.xz) = a8f2752452c00f5ff4e71efe83cab74a2e72637a | |
4 | RMD160 (extra-cmake-modules-5.21.0.tar.xz) = a5edc9a90db743bb9f4fe5d8351bd06b5d2d5717 | 4 | RMD160 (extra-cmake-modules-5.21.0.tar.xz) = a5edc9a90db743bb9f4fe5d8351bd06b5d2d5717 | |
5 | SHA512 (extra-cmake-modules-5.21.0.tar.xz) = d0309f16d567acd3a8838509b06e84e909b7f6895922e5670c5bc5752ba15fb89800592badd6bc6ff60678444bc2bcb2ce1d70fa89943e0595228d4dc215f753 | 5 | SHA512 (extra-cmake-modules-5.21.0.tar.xz) = d0309f16d567acd3a8838509b06e84e909b7f6895922e5670c5bc5752ba15fb89800592badd6bc6ff60678444bc2bcb2ce1d70fa89943e0595228d4dc215f753 | |
6 | Size (extra-cmake-modules-5.21.0.tar.xz) = 285024 bytes | 6 | Size (extra-cmake-modules-5.21.0.tar.xz) = 285024 bytes | |
7 | SHA1 (patch-kde-modules_KDECompilerSettings.cmake) = 18ece25450c12a63c05b4604f27e9f90d71163a9 |
$NetBSD: patch-kde-modules_KDECompilerSettings.cmake,v 1.1 2016/06/07 17:54:59 joerg Exp $
Do not hard-code --enable-new-dtags. It is completely broken on systems like
NetBSD implementing the sane rpath semantic and just have a new enough binutils
version. It is up to the system compiler to know what the correct platfor
choice is.
--- kde-modules/KDECompilerSettings.cmake.orig 2016-06-05 23:16:56.900586724 +0000
+++ kde-modules/KDECompilerSettings.cmake
@@ -208,14 +208,6 @@ if (POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
-if (UNIX AND NOT APPLE)
- # Enable adding DT_RUNPATH, which means that LD_LIBRARY_PATH takes precedence
- # over the built-in rPath
- set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_SHARED_LINKER_FLAGS}")
- set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_MODULE_LINKER_FLAGS}")
- set(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_EXE_LINKER_FLAGS}")
-endif()
-
if (CMAKE_SYSTEM_NAME STREQUAL GNU)
# Enable multithreading with the pthread library
# FIXME: Is this actually necessary to have here?