Hi,

when building KDE 4.3 on my machine one of the builds failed. 
Unfortunately I don't remember exactly which one it was, but after some 
time I found out why:
cmake was not able to generate the include path to jni_md.h on my machine 
which resides on /usr/java/include/solaris.

The fix is quite simple (one line has to be appended to 
/opt/dtbld/share/cmake-2.6/Modules/FindJNI.cmake) and easy to apply to the 
build files:


diff -r bcf4dba42d93 specs/CBEcmake.spec
--- a/specs/CBEcmake.spec       Fri Sep 04 02:45:19 2009 +0200
+++ b/specs/CBEcmake.spec       Fri Sep 04 11:05:38 2009 +0200
@@ -25,6 +25,7 @@
 URL:                   http://www.cmake.org
 Patch1:                 cmake-01-SunOS.cmake.diff
 Patch2:                 cmake-findboost.diff
+Patch3:                 cmake-findjni.diff
 BuildRoot:             %{_tmppath}/%{name}-%{version}-build
 SUNW_BaseDir:          %{_prefix}
 # Doesn't use our includes, needs SUNW_Category set
@@ -42,6 +43,7 @@
 %setup -q -n cmake-%{version}
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 
 %build
diff -r bcf4dba42d93 specs/patches/cmake-findjni.diff
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/specs/patches/cmake-findjni.diff  Fri Sep 04 11:05:38 2009 +0200
@@ -0,0 +1,10 @@
+--- cmake-2.6.4/Modules/FindJNI.cmake.orig     2009-04-28 
22:22:59.000000000 +0200
++++ cmake-2.6.4/Modules/FindJNI.cmake  2009-09-04 11:02:59.804529552 
+0200
+@@ -144,6 +144,7 @@
+   ${JAVA_INCLUDE_PATH}/win32
+   ${JAVA_INCLUDE_PATH}/linux
+   ${JAVA_INCLUDE_PATH}/freebsd
++  ${JAVA_INCLUDE_PATH}/solaris
+ )
+ 
+ FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h


Finally CBEyasm should be updated from version 0.6.2 to 0.8.0:

diff -r bcf4dba42d93 specs/CBEyasm.spec
--- a/specs/CBEyasm.spec        Fri Sep 04 02:45:19 2009 +0200
+++ b/specs/CBEyasm.spec        Fri Sep 04 11:05:38 2009 +0200
@@ -9,13 +9,13 @@
 %include CBE.inc
 
 %define src_name CBEyasm
-%define src_ver  0.6.2
+%define src_ver  0.8.0
 %define src_rev  2
 %define src_url 
http://www.tortall.net/projects/yasm/releases/yasm-%{src_ver}.tar.gz
 %define site_url http://www.tortall.net/projects/yasm/wiki
 
 Name:                   CBEyasm
-Version:               0.6.2
+Version:               0.8.0
 License:               yasm|BSD&GPLv2&LGPLv2&artistic
 Group:                 system/cbe
 Distribution:          Desktop CBE


Regards

Thorsten

Reply via email to