Skip to contentSkip to conversation

cmake-native: add recipe for cmake 2.8.2.

PATCH In review David Kozub 4 participants 9 messages Jul 27, 2010 – Aug 6, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 cmake-native: add recipe for cmake 2.8.2.

---
 recipes/cmake/cmake-native_2.8.2.bb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100644 recipes/cmake/cmake-native_2.8.2.bb
recipes/cmake/cmake-native_2.8.2.bb new file +5 -0
new file mode 100644
index 0000000..a623525
@@ -0,0 +1,5 @@
+inherit native
+require cmake.inc
+
+SRC_URI[md5sum] = "8c967d5264657a798f22ee23976ff0d9"
+SRC_URI[sha256sum] = "766ff169af798599d7dd42e41e9f4533d73942a2bb928235115412dce5b81406"
Signature · 1 line
1.7.1
#1 lore raw

Hi,

Eduardo Lima sends in patches for cmake 2.8 too. So please coordinate with him. I would like to see a fine recipe with which uses the latest features available in OE like BBCLASSEXTENDED and so on.

Bye Henning

#2 lore raw
Quoted 3 lines · Henning Heinold

Eduardo Lima sends in patches for cmake 2.8 too. So please coordinate with him. I would like to see a fine recipe with which uses the latest features available in OE like BBCLASSEXTENDED and so on.

I missed it. It even seems he's been working on webkit-efl too. I'll try to contact him.

As for the cmake - I tried and failed. My problem is:

* cmake is built using cmake-native, and it uses inherit cmake

* I can't have inherit cmake in the native recipe, as it would be a circular dependency

* I got stuck on: can I somehow "inherit cmake" only for the non-native case?

I think that's not possible and so I see only two options:

* hack the non-native recipe to not inherit cmake, yet still use the native cmake (this would probably mean some ugly copypasting - so that doesn't sound good)

* build cmake non-native the same way cmake-native is built: bootstrap it, don't use native to build non-native (and thus no "inherit cmake")

The second option looks more reasonable to me, but I didn't want to break what was working and building non-native with native seemed nice.

Any thoughts on how to solve this?

Regards,

David

#3 lore raw

Hm,

I am not sure the inherit cmake inside cmake is really necessary try it without it and see what may fail.

Bye Henning

#4 lore raw
Quoted 2 lines

I am not sure the inherit cmake inside cmake is really necessary try it without it and see what may fail.

It's because the non-native cmake is built with native cmake.

Ok, I'll try building both cmakes the same way - with bootstrapping, w/o the help of any other cmake.

#5 lore raw
In reply to David Kozub
Quoted 9 lines · David Kozub
Quoted 4 lines · Henning Heinold

Eduardo Lima sends in patches for cmake 2.8 too. So please coordinate with him.
I would like to see a fine recipe with which uses the latest features available in OE like BBCLASSEXTENDED and so on.

I missed it. It even seems he's been working on webkit-efl too. I'll try to contact him.

Yeah, I was indeed working on webkit-efl. :)

We have discussed a lot in the past days and I guess we've achieved the point where we have both CMake native and non-native building. As we already agreed on IRC the other day, it's not possible to have a unique recipe for building both. In fact, non-native is much more complicated than it seems at first. I couldn't even make the actual 2.6.4 recipe (already in the repository) work.

David, could you please send your CMake updated patches to the list?

Best Regards, Etrunko.

Quoted 34 lines

As for the cmake - I tried and failed. My problem is:

* cmake is built using cmake-native, and it uses inherit cmake

* I can't have inherit cmake in the native recipe, as it would be a circular dependency

* I got stuck on: can I somehow "inherit cmake" only for the non-native case?

I think that's not possible and so I see only two options:

* hack the non-native recipe to not inherit cmake, yet still use the native cmake (this would probably mean some ugly copypasting - so that doesn't sound good)

* build cmake non-native the same way cmake-native is built: bootstrap it, don't use native to build non-native (and thus no "inherit cmake")

The second option looks more reasonable to me, but I didn't want to break what was working and building non-native with native seemed nice.

Any thoughts on how to solve this?

Regards,

David

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 2 lines
Eduardo de Barros Lima
[email protected]
#6 lore raw

PATCH 1/1 cmake-2.8.2: Add recipe for non-native cmake 2.8.2.

Tested on om-gta02:
* builds trivial C and C++ executable
* "include(FindPkgConfig)" correctly finds the cmake module
* pkg_check_modules correctly invokes pkg-config
* ccmake works

Also tested on babbage by Eduardo Lima (thanks for help).

Unfortunately, useful doc is not packaged. The reason is that the doc is produced by running the built binaries. Changing this would probably require a complex patch of the build process. Luckily, the doc is still contained in the original binaries, so it's accessible on target by e.g. cmake --help-full.

---
 .../cmake-2.8.2/dont-run-cross-binaries.patch      |   13 ++++++
 recipes/cmake/cmake_2.8.2.bb                       |   46 ++++++++++++++++++++
 2 files changed, 59 insertions(+), 0 deletions(-)
 create mode 100644 recipes/cmake/cmake-2.8.2/dont-run-cross-binaries.patch
 create mode 100644 recipes/cmake/cmake_2.8.2.bb
recipes/cmake/cmake-2.8.2/dont-run-cross-binaries.patch new file +13 -0
new file mode 100644
index 0000000..4a006f9
@@ -0,0 +1,13 @@
+diff -ru cmake-2.8.2.orig/CMakeLists.txt cmake-2.8.2/CMakeLists.txt
+--- cmake-2.8.2.orig/CMakeLists.txt	2010-07-28 00:48:42.000000000 +0200
++++ cmake-2.8.2/CMakeLists.txt	2010-07-28 01:05:17.000000000 +0200
+@@ -518,7 +518,8 @@
+ 
+ # build the remaining subdirectories
+ ADD_SUBDIRECTORY(Source)
+-ADD_SUBDIRECTORY(Utilities)
++# Come on! Running the cross-binaries on host is not a good idea.
++#ADD_SUBDIRECTORY(Utilities)
+ ADD_SUBDIRECTORY(Tests)
+ 
+ # add a test
recipes/cmake/cmake_2.8.2.bb new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
1.7.1
#7 lore raw
In reply to David Kozub
Quoted 12 lines · David Kozub
Quoted 4 lines · Henning Heinold

Eduardo Lima sends in patches for cmake 2.8 too. So please coordinate with him.
I would like to see a fine recipe with which uses the latest features available in OE like BBCLASSEXTENDED and so on.

I missed it. It even seems he's been working on webkit-efl too. I'll try to contact him.

As for the cmake - I tried and failed. My problem is:

Quoted 7 lines

* cmake is built using cmake-native, and it uses inherit cmake

* I can't have inherit cmake in the native recipe, as it would be a circular dependency

* I got stuck on: can I somehow "inherit cmake" only for the non-native case?

looks strange, but works:
BBCLASSEXTEND = "native"
IS_NATIVE = "no"
IS_NATIVE_virtclass-native = "yes"
INHERIT += " ${@base_conditional("IS_NATIVE", "no", "autotools cmake", "autotools", d)}"

looks even better, and still works:
INHERIT_CLASSES = "autotools cmake"
INHERIT_CLASSES_virtclass-native = "autotools"
INHERIT += ${INHERIT_CLASSES}

looks even better, and fails somehow :/:
INHERIT_CLASSES = "cmake"
INHERIT_CLASSES_virtclass-native = ""
inherit autotools ${INHERIT_CLASSES}

looks better, but fails:
INHERIT_CLASSES = "autotools cmake" INHERIT_CLASSES_virtclass-native = "autotools"
inherit ${INHERIT_CLASSES}
-> ParseError: Could not inherit file classes/autotools cmake.bbclass

Tested only by checking -e output!

#8 lore raw
Quoted 38 lines · Martin Jansa
Quoted 12 lines · David Kozub
Quoted 4 lines · Henning Heinold

Eduardo Lima sends in patches for cmake 2.8 too. So please coordinate with him.
I would like to see a fine recipe with which uses the latest features available in OE like BBCLASSEXTENDED and so on.

I missed it. It even seems he's been working on webkit-efl too. I'll try to contact him.

As for the cmake - I tried and failed. My problem is:

Quoted 7 lines

* cmake is built using cmake-native, and it uses inherit cmake

* I can't have inherit cmake in the native recipe, as it would be a circular dependency

* I got stuck on: can I somehow "inherit cmake" only for the non-native case?

looks strange, but works:
BBCLASSEXTEND = "native"
IS_NATIVE = "no"
IS_NATIVE_virtclass-native = "yes"
INHERIT += " ${@base_conditional("IS_NATIVE", "no", "autotools cmake", "autotools", d)}"

looks even better, and still works:
INHERIT_CLASSES = "autotools cmake"
INHERIT_CLASSES_virtclass-native = "autotools"
INHERIT += ${INHERIT_CLASSES}

looks even better, and fails somehow :/:
INHERIT_CLASSES = "cmake"
INHERIT_CLASSES_virtclass-native = ""
inherit autotools ${INHERIT_CLASSES}

Quoted 8 lines

looks better, but fails:
INHERIT_CLASSES = "autotools cmake" INHERIT_CLASSES_virtclass-native = "autotools"
inherit ${INHERIT_CLASSES}
-> ParseError: Could not inherit file classes/autotools cmake.bbclass

Tested only by checking -e output!

Well, maybe that was too much for my restricted OE knowledge. Anyway, are you sure the non-native build works? In many tests David and I did together, there was need for many tweaks on the non-native. It worths taking a look here anyhow.

Best Regards, Etrunko

Signature · 2 lines
Eduardo de Barros Lima
[email protected]