Properly find Java when kernel is 64bit, userland - 32bit (amd64/ppc64).

Patch: FindJNI_amd64_ppc_biarch.diff
(Closes: #718290)
ci/unstable
Modestas Vainius 11 years ago
parent 4a008406a5
commit d872a16def

2
debian/changelog vendored

@ -17,6 +17,8 @@ cmake (2.8.12-0r2) UNRELEASED; urgency=low
Thanks to Kevin Ryde. (Closes: #710572) Thanks to Kevin Ryde. (Closes: #710572)
* Fix a code typo in PHP4 (patch FindPHP4_fix_typo.diff). Thanks to Mathieu * Fix a code typo in PHP4 (patch FindPHP4_fix_typo.diff). Thanks to Mathieu
Malaterre for the patch. (Closes: #722475) Malaterre for the patch. (Closes: #722475)
* Properly find Java when kernel is 64bit, userland - 32bit (amd64/ppc64).
(patch: FindJNI_amd64_ppc_biarch.diff) (Closes: #718290)
-- Modestas Vainius <modax@debian.org> Sun, 03 Nov 2013 12:28:06 +0200 -- Modestas Vainius <modax@debian.org> Sun, 03 Nov 2013 12:28:06 +0200

@ -0,0 +1,29 @@
From: Modestas Vainius <modax@debian.org>
Subject: amd64/ppc64 kernels might be running on 32bit system
Origin: vendor
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718290
On biarch architecture, CMAKE_SYSTEM_PROCESSOR might be a 64bit one while the
system 32bit one. Take this into consideration while looking for Java library
directory.
--- a/Modules/FindJNI.cmake
+++ b/Modules/FindJNI.cmake
@@ -33,7 +33,7 @@ macro(java_append_library_directories _v
# 1.6.0_18 + icedtea patches. However, it would be much better to base the
# guess on the first part of the GNU config.guess platform triplet.
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
- set(_java_libarch "amd64")
+ set(_java_libarch "amd64" "i386")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$")
set(_java_libarch "i386")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^alpha")
@@ -46,7 +46,7 @@ macro(java_append_library_directories _v
# endianess of the underlying system.
set(_java_libarch "${CMAKE_SYSTEM_PROCESSOR}" "mips" "mipsel" "mipseb")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64")
- set(_java_libarch "ppc64")
+ set(_java_libarch "ppc64" "ppc")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)")
set(_java_libarch "ppc")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc")

@ -4,3 +4,4 @@ install_to_multiarch_libdir_on_kfreebsd_hurd.diff
multiarch-python-include-dirs.diff multiarch-python-include-dirs.diff
qt_import_dir_variable.diff qt_import_dir_variable.diff
FindPHP4_fix_typo.diff FindPHP4_fix_typo.diff
FindJNI_amd64_ppc_biarch.diff

Loading…
Cancel
Save