Bug 537628

Summary: missing awt directory on ppc64
Product: [Fedora] Fedora Reporter: Orcan Ogetbil <oget.fedora>
Component: cmakeAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: orion, pertusus, rdieter
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6.4-3.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-27 21:50:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix awt dir on ppc64 none

Description Orcan Ogetbil 2009-11-15 08:15:55 UTC
In file 
   /usr/share/cmake/Modules/FindJNI.cmake 
we have these lines for awt directories
   ...
   $ENV{JAVA_HOME}/jre/lib/i386
   $ENV{JAVA_HOME}/jre/lib/amd64
   $ENV{JAVA_HOME}/jre/lib/ppc
   ...

These correctly determine the awt (and in turn, jvm) directories for ix86, amd64 and ppc architectures. But in Fedora we have the awt directory for ppc64 architecture as
   /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.ppc64/jre/lib/ppc64/
which corresponds to
   $ENV{JAVA_HOME}/jre/lib/ppc64

This line is missing in the above FindJNI.cmake file. Because this is missing, the portmidi package, which relies on ${JAVA_JVM_LIBRARY} variable of cmake, fails to build on ppc64 [1]. It builds fine on other archs.


[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=1807248

Comment 1 Orcan Ogetbil 2009-11-15 08:30:46 UTC
Created attachment 369569 [details]
fix awt dir on ppc64

Comment 2 Orcan Ogetbil 2009-11-15 08:32:53 UTC
The above patch will fix the problem. I believe that this is already resolved in cmake-2.8 in a more general way.

I can commit this patch if you want me to.

Comment 3 Orcan Ogetbil 2009-11-22 04:40:07 UTC
Ping? I can't update my package because of this bug.

Comment 4 Rex Dieter 2009-11-22 05:12:13 UTC
I'll see if I can take a look tomorrow.

Comment 5 Fedora Update System 2009-11-24 21:34:54 UTC
cmake-2.6.4-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/cmake-2.6.4-3.fc11

Comment 6 Fedora Update System 2009-11-24 21:34:59 UTC
cmake-2.6.4-5.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/cmake-2.6.4-5.fc12

Comment 7 Fedora Update System 2009-11-25 14:54:20 UTC
cmake-2.6.4-3.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cmake'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-12030

Comment 8 Fedora Update System 2009-11-25 15:17:57 UTC
cmake-2.6.4-5.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cmake'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12127

Comment 9 Fedora Update System 2009-11-27 21:50:28 UTC
cmake-2.6.4-5.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2009-11-27 21:52:50 UTC
cmake-2.6.4-3.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Orcan Ogetbil 2009-11-27 22:34:43 UTC
I just wanted to report that my package built fine in koji now. Thanks for the fix!