* [PATCH] cmake.bbclass: remove ${prefix} assignment
@ 2015-11-14 1:24 Kevron Rees
2015-11-16 11:33 ` Stefan Herbrechtsmeier
0 siblings, 1 reply; 2+ messages in thread
From: Kevron Rees @ 2015-11-14 1:24 UTC (permalink / raw)
To: openembedded-core; +Cc: tripzero.kev
CMAKE_INSTALL_PREFIX has a different semantic meaning than ${prefix}[1]. cmake treats
CMAKE_INSTALL_PREFIX the same as the DESTDIR environment variable. Setting
CMAKE_INSTALL_PREFIX to ${prefix} is inappropriate.
This will likely break a lot of cmake recipes that have do_post_install hacks to get
around this bug.
[1] - https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html
Signed-off-by: Kevron Rees <kevron.m.rees@intel.com>
---
meta/classes/cmake.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index ae3cc02..b7d5950 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -108,7 +108,7 @@ cmake_do_configure() {
cmake \
${OECMAKE_SITEFILE} \
${OECMAKE_SOURCEPATH} \
- -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_PREFIX:PATH="" \
-DCMAKE_INSTALL_BINDIR:PATH=${bindir} \
-DCMAKE_INSTALL_SBINDIR:PATH=${sbindir} \
-DCMAKE_INSTALL_LIBEXECDIR:PATH=${libexecdir} \
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cmake.bbclass: remove ${prefix} assignment
2015-11-14 1:24 [PATCH] cmake.bbclass: remove ${prefix} assignment Kevron Rees
@ 2015-11-16 11:33 ` Stefan Herbrechtsmeier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Herbrechtsmeier @ 2015-11-16 11:33 UTC (permalink / raw)
To: Kevron Rees, openembedded-core; +Cc: tripzero.kev
Am 14.11.2015 um 02:24 schrieb Kevron Rees:
> CMAKE_INSTALL_PREFIX has a different semantic meaning than ${prefix}[1]. cmake treats
> CMAKE_INSTALL_PREFIX the same as the DESTDIR environment variable.
CMAKE_INSTALL_PREFIX and DESTDIR are different and used together [1]:
[...] install the concerned software using the installation prefix [...]
prepended with the DESTDIR [...]
> Setting
> CMAKE_INSTALL_PREFIX to ${prefix} is inappropriate.
Why? It configures the prefix.
${prefix} is set to "/usr" in bitbake.conf. The default
CMAKE_INSTALL_PREFIX is "/usr/local"
> This will likely break a lot of cmake recipes that have do_post_install hacks to get
> around this bug.
What hacks do you mean?
> [1] - https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html
>
> Signed-off-by: Kevron Rees <kevron.m.rees@intel.com>
> ---
> meta/classes/cmake.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
> index ae3cc02..b7d5950 100644
> --- a/meta/classes/cmake.bbclass
> +++ b/meta/classes/cmake.bbclass
> @@ -108,7 +108,7 @@ cmake_do_configure() {
> cmake \
> ${OECMAKE_SITEFILE} \
> ${OECMAKE_SOURCEPATH} \
> - -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
> + -DCMAKE_INSTALL_PREFIX:PATH="" \
> -DCMAKE_INSTALL_BINDIR:PATH=${bindir} \
> -DCMAKE_INSTALL_SBINDIR:PATH=${sbindir} \
> -DCMAKE_INSTALL_LIBEXECDIR:PATH=${libexecdir} \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-16 11:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-14 1:24 [PATCH] cmake.bbclass: remove ${prefix} assignment Kevron Rees
2015-11-16 11:33 ` Stefan Herbrechtsmeier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox