Issue 12734 - OOO_STABLE_1_PORTS/X11+Aqua: Apple JavaVM 1.4.1 build fixes
Summary: OOO_STABLE_1_PORTS/X11+Aqua: Apple JavaVM 1.4.1 build fixes
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: Mac Mac OS X, all
: P1 (highest) Trivial (vote)
Target Milestone: OOo 1.0.4
Assignee: fa
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-27 17:41 UTC by fa
Modified: 2004-10-15 04:29 UTC (History)
4 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
copy file to berkeleydb/ Detectes Apple JDK 1.3.1 headers when JDK 1.4.1 is installed (11.80 KB, patch)
2003-03-28 02:41 UTC, fa
no flags Details | Diff
cd to config_office, patch -p0 < /path/to/patchfile Adds Apple Java JRE 1.3.1 to SOLARINC path explicitly because the 1.4.1 JRE doesn't have any includes files (1.59 KB, patch)
2003-03-28 02:42 UTC, fa
no flags Details | Diff
cd to XmlSearch, patch -p0 < /path/to/patchfile Extra ; made Apple Java 1.4 _very_ unhappy. Patch removes it (827 bytes, patch)
2003-03-28 03:05 UTC, fa
no flags Details | Diff
cd to sj2, patch -p0 < /path/to/patchfile Adds Java 1.4 compatibility to sj2, taken from HEAD (1.96 KB, patch)
2003-03-28 07:21 UTC, fa
no flags Details | Diff
Apply the patch by executing the following commands: cd $SRC_ROOT/berkeleydb ; patch -p0 < /path/to/patch/file (1.13 KB, patch)
2003-04-13 19:52 UTC, pluby
no flags Details | Diff
This is the replacement file for $SRC_ROOT/berkeleydb/db-3.2.9.patch that was generated using "dmake create_patch". This should be used instead of the berkeleydb.patch file that was posted earlier today. (11.91 KB, text/plain)
2003-04-13 20:00 UTC, pluby
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description fa 2003-03-27 17:41:43 UTC
With the 1.4.1 version, there no longer exists a jni.h in the
/System/Library/Frameworks/JavaVM.framework/Headers/ directory.  We explicitly use this file
as the check to determine whether Java is present on the system, through our patch to
the berekeleydb module's configure script.  The patch changes the check to use JavaVM.h, which
should be present through all Apple JavaVM.frameworks in both 10.1 and 10.2.

Dan
Comment 1 pluby 2003-03-27 17:56:00 UTC
Dan,

I believe that your approach causes more harm than good. Specifically,
there are two problems with your approach:

1. The JavaVM.h file does not #include jni.h or any files that
   #include jni.h. Without explicitly including jni.h, the stoc
   module will not compile.

2. The JavaVM.h file is an Objective-C header file. This will cause
   any C or C++ that includes it on Mac OS X 10.1 to have parsing
   problems.

I think the better solution is to patch the configure script so that
some alternate "-I" paths are added after the default.

Patrick
Comment 2 fa 2003-03-27 18:14:43 UTC
Patrick,

What then should we check for in the berkeleydb configure script to ensure that we have JavaVM.framework?  Should we hardcode in checks for the 1.3.1 version headers?

dan
Comment 3 fa 2003-03-28 02:41:03 UTC
Created attachment 5297 [details]
copy file to berkeleydb/   Detectes Apple JDK 1.3.1 headers when JDK 1.4.1 is installed
Comment 4 fa 2003-03-28 02:42:39 UTC
Created attachment 5298 [details]
cd to config_office, patch -p0 < /path/to/patchfile   Adds Apple Java JRE 1.3.1 to SOLARINC path explicitly because the 1.4.1 JRE doesn't have any includes files
Comment 5 fa 2003-03-28 02:43:58 UTC
Please approve for commit to PORTS:
---------------------------------
db-3.2.9.patch
config_office.java141.032703.patch

These patches explicitly detect the java 1.3.1 header files and add the java 1.3.1
headers path to SOLARINC.

Dan
Comment 6 fa 2003-03-28 03:05:57 UTC
Created attachment 5300 [details]
cd to XmlSearch, patch -p0 < /path/to/patchfile   Extra ; made Apple Java 1.4 _very_ unhappy.  Patch removes it
Comment 7 fa 2003-03-28 03:06:39 UTC
Please approve the following patches:
db-3.2.9.patch
config_office.java141.032703.patch
XmlSearch.java14.032703.patch

Dan
Comment 8 fa 2003-03-28 07:21:24 UTC
Created attachment 5306 [details]
cd to sj2, patch -p0 < /path/to/patchfile   Adds Java 1.4 compatibility to sj2, taken from HEAD
Comment 9 fa 2003-03-28 07:22:11 UTC
Please approve the following patches:
---------------------------------------
db-3.2.9.patch
config_office.java141.032703.patch
XmlSearch.java14.032703.patch
sj2.java14.032703.patch

Dan
Comment 10 khendricks 2003-03-28 14:32:46 UTC
Hi Dan, 
 
These look fine so Apporoved. 
 
BTW: how did you ever figure out the issue with jdk 1.4 was with the two ;; ! 
 
Kevin 
 
Comment 11 fa 2003-03-28 15:24:04 UTC
Committed to PORTS:
---------------------------------------
db-3.2.9.patch
config_office.java141.032703.patch
XmlSearch.java14.032703.patch
sj2.java14.032703.patch

Kevin,  javac actually complained at me about an "unreachable statement" or
something like that, and referenced this exact line with a carat pointing to the second
semicolon.  I looked at it and decided that it didn't really look right, so removed the ;
and it was all fine :)
Comment 12 michael.bemmer 2003-04-09 11:26:08 UTC
Dan, this issue has no target milestone assigned, so we don't track it
for any release, do you want to assign one?
Comment 13 pluby 2003-04-13 19:52:57 UTC
Created attachment 5628 [details]
Apply the patch by executing the following commands: cd $SRC_ROOT/berkeleydb ; patch -p0 < /path/to/patch/file
Comment 14 pluby 2003-04-13 20:00:13 UTC
Created attachment 5629 [details]
This is the replacement file for $SRC_ROOT/berkeleydb/db-3.2.9.patch that was generated using "dmake create_patch". This should be used instead of the berkeleydb.patch file that was posted earlier today.
Comment 15 pluby 2003-04-13 20:03:24 UTC
The attached patch allows berkeleydb to find the JavaVM headers on Mac
OS X 10.1. The berkeleydb patch in this issue that was posted on
3/27/2003 broke the Mac OS X 10.1 build.
Comment 16 fa 2003-04-13 21:05:02 UTC
Patrick,

I approve db-3.2.9.patch for commit to PORTS.  Go for it.

Dan
Comment 17 pluby 2003-04-14 04:52:53 UTC
Dan,

Can you commit this patch for me? cvs just hangs when I try to commit.
This seems to be a problem similar to my inability to post attachments
in IssueZilla.
Comment 18 fa 2003-04-15 22:53:27 UTC
Updated db-3.2.9.patch committed to PORTS by me.

Dan
Comment 19 Martin Hollmichel 2003-04-29 14:54:12 UTC
retarget
Comment 20 fa 2003-08-04 05:48:11 UTC
Also in 1.1rc3
Comment 21 Martin Hollmichel 2004-10-15 04:29:01 UTC
close issue.