Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 265299 Details for
Bug 358059
cmake-utils.eclass PREFIX is not defined
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Define PREFIX
cmake-eutils.patch (text/plain), 2.18 KB, created by
Goran Mekić
on 2011-03-09 13:32:38 UTC
(
hide
)
Description:
Define PREFIX
Filename:
MIME Type:
Creator:
Goran Mekić
Created:
2011-03-09 13:32:38 UTC
Size:
2.18 KB
patch
obsolete
>--- cmake-utils.eclass 2011-03-09 12:14:28.000000000 +0100 >+++ cmake-utils.eclass.patched 2011-03-09 14:30:23.000000000 +0100 >@@ -137,6 +137,7 @@ > # Eclass respects PREFIX variable, though it's not recommended way to set > # install/lib/bin prefixes. > # Use -DCMAKE_INSTALL_PREFIX=... CMake variable instead. >+: ${PREFIX:=/usr} > > # @ECLASS-VARIABLE: CMAKE_BINARY > # @DESCRIPTION: >@@ -312,13 +313,13 @@ > > ELSE () > >- SET(CMAKE_PREFIX_PATH "${EPREFIX}${PREFIX:-/usr}" CACHE STRING ""FORCE) >+ SET(CMAKE_PREFIX_PATH "${EPREFIX}${PREFIX}" CACHE STRING ""FORCE) > SET(CMAKE_SKIP_BUILD_RPATH OFF CACHE BOOL "" FORCE) > SET(CMAKE_SKIP_RPATH OFF CACHE BOOL "" FORCE) > SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE CACHE BOOL "" FORCE) >- SET(CMAKE_INSTALL_RPATH "${EPREFIX}${PREFIX:-/usr}/lib;${EPREFIX}/usr/${CHOST}/lib/gcc;${EPREFIX}/usr/${CHOST}/lib;${EPREFIX}/usr/$(get_libdir);${EPREFIX}/$(get_libdir)" CACHE STRING "" FORCE) >+ SET(CMAKE_INSTALL_RPATH "${EPREFIX}${PREFIX}/lib;${EPREFIX}/usr/${CHOST}/lib/gcc;${EPREFIX}/usr/${CHOST}/lib;${EPREFIX}/usr/$(get_libdir);${EPREFIX}/$(get_libdir)" CACHE STRING "" FORCE) > SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "" FORCE) >- SET(CMAKE_INSTALL_NAME_DIR "${EPREFIX}${PREFIX:-/usr}/lib" CACHE STRING "" FORCE) >+ SET(CMAKE_INSTALL_NAME_DIR "${EPREFIX}${PREFIX}/lib" CACHE STRING "" FORCE) > > ENDIF (NOT APPLE) > _EOF_ >@@ -329,7 +330,7 @@ > local libdir=$(get_libdir) > cat > "${common_config}" <<- _EOF_ > SET (LIB_SUFFIX ${libdir/lib} CACHE STRING "library path suffix" FORCE) >- SET (CMAKE_INSTALL_LIBDIR ${libdir} CACHE PATH "Output directory for libraries") >+ SET (CMAKE_INSTALL_LIBDIR ${PREFIX}/${libdir} CACHE PATH "Output directory for libraries") > _EOF_ > [[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}" > >@@ -349,7 +350,7 @@ > # No -DCMAKE_BUILD_TYPE=xxx definitions will be in effect. > local cmakeargs=( > -C "${common_config}" >- -DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX:-/usr}" >+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX}" > "${mycmakeargs_local[@]}" > -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" > -DCMAKE_INSTALL_DO_STRIP=OFF
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 358059
: 265299