| Summary: | [bsd.cmake.mk] disable rpath removal | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Dmitry Marakasov <amdmi3> | ||||
| Component: | Individual Port(s) | Assignee: | Dmitry Marakasov <amdmi3> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Dmitry Marakasov
2013-03-13 01:50:00 UTC
Responsible Changed From-To: freebsd-ports-bugs->kde bsd.cmake.mk is kde territory (via the GNATS Auto Assign Tool) Perhaps it's better to use CMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE. This is what I've been doing for ages. This page has a rather good description of CMake's handling of RPATH: http://www.cmake.org/Wiki/CMake_RPATH_handling Advantage of CMAKE_INSTALL_RPATH_USE_LINK_PATH is that it allows both to use in-tree paths during build and to keep out-of-tree paths during installation. So, setting this variable should both achieve the desired effect for installation and preserve the current behavior during build. What do you think? -- Andriy Gapon * Andriy Gapon (avg@FreeBSD.org) wrote: > > Perhaps it's better to use CMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE. > This is what I've been doing for ages. > This page has a rather good description of CMake's handling of RPATH: > http://www.cmake.org/Wiki/CMake_RPATH_handling > > Advantage of CMAKE_INSTALL_RPATH_USE_LINK_PATH is that it allows both to use > in-tree paths during build and to keep out-of-tree paths during installation. > So, setting this variable should both achieve the desired effect for > installation and preserve the current behavior during build. > > What do you think? Yes, that looks better. It seems that I've picked the first suitable option, while there could've be better ones. Anyway, we need this in the tree pretty much ASAP. Updated patch: --- cmake.mk.patch begins here --- Index: Mk/Uses/cmake.mk =================================================================== --- Mk/Uses/cmake.mk (revision 315999) +++ Mk/Uses/cmake.mk (working copy) @@ -88,7 +88,8 @@ -DCMAKE_SHARED_LINKER_FLAGS:STRING="${LDFLAGS}" \ -DCMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \ -DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \ - -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES + -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES \ + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES .if defined(BATCH) || defined(PACKAGE_BUILDING) CMAKE_VERBOSE= yes --- cmake.mk.patch ends here --- -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru Responsible Changed From-To: kde->bdrewery Take for exp-run Responsible Changed From-To: bdrewery->amdmi3 exp-run done, no new failures on a head build This definitely fixes user issues with audio/clementine-player on stable/9 as it needs newer gcc to deal with the c++11 stuffs which requires not stripping the clementine-player binary. sean Author: makc Date: Sun Dec 22 14:04:37 2013 New Revision: 337190 URL: http://svnweb.freebsd.org/changeset/ports/337190 Log: - Don't remove rpath from binaries during install [1] - Remove outdated comment PR: ports/176901 [1] Submitted by: amdmi3, avg Exp-run by: bdrewery Modified: head/Mk/Uses/cmake.mk Modified: head/Mk/Uses/cmake.mk ============================================================================== --- head/Mk/Uses/cmake.mk Sun Dec 22 13:50:38 2013 (r337189) +++ head/Mk/Uses/cmake.mk Sun Dec 22 14:04:37 2013 (r337190) @@ -35,10 +35,6 @@ # Debug otherwise # CMAKE_SOURCE_PATH - Path to the source directory # Default: ${WRKSRC} -# -# Deprecated variables: -# CMAKE_OUTSOURCE - Instruct to perform an out-of-source build. -# Deprecated, use 'USES+= cmake:outsource' instead. .if !defined(_INCLUDE_USES_CMAKE_MK) _INCLUDE_USES_CMAKE_MK= yes @@ -88,7 +84,8 @@ CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING= -DCMAKE_SHARED_LINKER_FLAGS:STRING="${LDFLAGS}" \ -DCMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \ -DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \ - -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES + -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES \ + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES .if defined(BATCH) || defined(PACKAGE_BUILDING) CMAKE_VERBOSE= yes _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org" State Changed From-To: open->closed Committed! Thanks a lot to all involved! |