<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Cross posting to the Java Devel list<br>
<br>
On 11/29/2011 09:53 PM, Matthew Harmsen wrote:
<blockquote cite="mid:4ED59AA9.1000805@redhat.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Andreas,<br>
<br>
I would like to request your assistance on the following 'CMake'
issue requested by Adam:<br>
<ul>
<li><a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://fedorahosted.org/pki/ticket/9">https://fedorahosted.org/pki/ticket/9</a></li>
</ul>
Basically, on Fedora 16 and later, the default location of Java
Native Interface (JNI) jar files was<br>
changed to reside under '/usr/lib/java' for 32-bit platforms, and
'/usr/lib64/java' for 64-bit platforms.<br>
<br>
Per the TRAC ticket, I made a change in the spec files to handle
this via the 'jpackage-utils' RPM.<br>
However, I do not know if 'CMake' can change the
'JAVA_LIB_INSTALL_DIR' macro located in<br>
the 'pki/cmake/Modules/DefineInstallationPaths.cmake' file to rely
on the '%{_jnidir}' macro of<br>
'jpackage-utils' stored in the '/etc/rpm/macros.jpackage', or if
there is a different way of handling<br>
this where the following logic comes into play:<br>
<ul>
<li>'/usr/lib/java' on RHEL 6 and earlier (32-bit AND 64-bit
platforms)</li>
<li>'/usr/lib/java' on Fedora 15 and earlier (32-bit AND 64-bit
platforms)</li>
<li>'/usr/lib/java' on Fedora 16 and later (32-bit platforms)</li>
<li>'/usr/lib/java' on Fedora 16 and later (using a 32-bit JVM
on 64-bit platforms)</li>
<ul>
<li>I am fairly confident that this case may actually REQUIRE
a compiler override, as it does<br>
not look as if 'jpackage-utils' computes its '%{_jnidir}'
macro based upon the 'JVM' architecture<br>
being utilized, but rather the '%{_libdir}' macro based upon
the operating system architecture<br>
located in the appropriate
'/usr/lib/rpm/platform/<platform>/macros' file<br>
</li>
</ul>
<li>'/usr/lib64/java' on Fedora 16 and later (64-bit platforms)</li>
</ul>
Your assistance on this matter is greatly appreciated.<br>
<br>
Eventually, do you think that we may want the appropriate logic
added to the '/etc/rpm/macros.cmake' file?<br>
<br>
Thanks,<br>
-- Matt<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Pki-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pki-devel@redhat.com">Pki-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/pki-devel">https://www.redhat.com/mailman/listinfo/pki-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>