IcedTea 7 Patches for with-project=bsd - A Plan

Andrew John Hughes gnu_andrew at member.fsf.org
Sun Mar 1 15:52:16 PST 2009


2009/3/1 Michael Franz <mvfranz at gmail.com>:
> Hi All,
>
> I have been able to compile IcedTea7 (changeset 1563 - January 28, 2009)
> using a modified version of the bsd-port repo (changeset 58 - January 22,
> 2009) with zero.  I have used Apple's 1.5 JDK and parts of gcc 4.3
> (gjavah).
>
> java version "1.7.0_0-bsd"
> IcedTea 1.9-pre-r70396cb4abf8 Runtime Environment (build 1.7.0_0-bsd-b44)
> OpenJDK Core VM (build 14.0-b10, interpreted mode)
>
> This is not a smooth process as I have some manual steps that I have not
> been able to figure out.
>
> What is the best way to integrate the necessary changes into IcedTea 7?
>
> Michael
>
> On Tue, Feb 3, 2009 at 9:27 PM, Michael Franz <mvfranz at gmail.com> wrote:
>>
>> Hi,
>>
>> Taking a different approach to getting IcedTea 7 to compile on OS X, I am
>> trying to get the bsd repo to compile on Linux (Fedora 10).  In
>> investigating the patching problems closer, I wonder if this seems like a
>> sound plan.
>>
>> 1. Identify the patches that break
>> 2. move failing patches out of the main patch file into a project specific
>> patch file
>> 3. create equivalent patches for bsd
>> 4. change the patch process to use base patches and then the project
>> specific patches
>>
>> An example of this is icedtea-libraries.patch.
>> There are 8 patches within this file that fail on the bsd repo.  I would
>> move these patches into icedtea-libraries-linux.patch (should this be jdk7?)
>> and create bsd specific patches that are then put into
>> icedtea-libraries-bsd.patch.
>>
>> The patch process can then apply the patches in icedtea-libraries.patch
>> and then icedtea-libraries-<project>.patch.
>>
>> On a similar note, I have found that icedtea-libraries.patch and
>> icedtea-linker-options.patch are patching the same line in
>> jdk/make/common/Program.gmk.
>>
>> first
>> -     LDFLAGS += -z origin
>> +     LDFLAGS += -lz -z origin
>>
>> then
>>
>> -     LDFLAGS += -lz -z origin
>> +     LDFLAGS += -lz -Wl, -z -Wl,origin
>>
>> Is there a benefit to patching the same line twice (keeping logical
>> changes together)?
>>
>> Michael
>>
>
>

Nice work!
Start sending us patches for approval :)
-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8



More information about the distro-pkg-dev mailing list