porting icedtea6 to FreeBSD
Andrew Hughes
ahughes at redhat.com
Wed Mar 28 15:09:22 PDT 2012
----- Original Message -----
> On Wed, Mar 28, 2012 at 08:34:55AM -0400, Andrew Hughes thus spake:
> >----- Original Message -----
> >> Hi,
> >>
> >> I am trying to do a port of iceatea6 to FreeBSD, and am getting a
> >> failure when it is in the patching stage. I did have to patch the
> >> method of patching to include a "-R" as they were already seen as
> >> patched. I don't know if this something that I should be doing or
> >> not, however it did get past the initial patches, and fails at the
> >> end.
> >>
> >> Here is the error I receive:
> >>
> >> Checking patches/security/20110607/6213702.patch
> >> 5 out of 5 hunks failed--saving rejects to
> >> openjdk/jdk/src/windows/classes/sun/nio/ch/WindowsSelectorImpl.java.rej
> >> 2 out of 2 hunks failed--saving rejects to
> >> openjdk/jdk/src/windows/native/sun/nio/ch/WindowsSelectorImpl.c.rej
> >> ERROR patch patches/security/20110607/6213702.patch FAILED!
> >> WARNING make clean-patch before retrying a fix
> >> *** Error code 2
> >>
> >> Stop in /usr/local/workspace/jgh/icedtea6/work/icedtea6-1.10.6.
> >> *** Error code 1
> >>
> >> Stop in /usr/local/workspace/jgh/icedtea6
> >>
> >> The source for my port can be found here:
> >> http://svn.freebsd.org/base/user/jgh/icedtea6/
> >>
> >> Thanks in advance, and I've attached the rejected files and the
> >> make
> >> log.
> >> Jason
> >>
> >>
> >>
> >
> >It's hard to tell what's happening here without more details as to
> >how
> >you're building. Posting config.log would be very helpful.
>
> I've attached this.
>
Ok, seems sane enough. I do wonder what /usr/local/openjdk6 is though.
That may cause problems further down the line.
You don't seem to be using the latest; that would be 1.11.1. If you want
to get the end result into IcedTea, you may be better working with the
Mercurial version:
http://icedtea.classpath.org/hg/icedtea6
Then you can see what changes have been made via hg status/diff.
> >
> >If you're building icedtea6 directly against an openjdk6 checkout,
> >rather
> >than the default of using release tarballs, this will happen as the
> >security
> >patches are already applied in OpenJDK6 upstream. For hg, you
> >need the hg branch:
>
> I am building off of the release tarballs.
> I've updated the path of my development to this url:
> https://redports.org/browser/jgh/java/icedtea6/Makefile
>
The patch issue is rather odd. Are you rerunning a build over an existing
OpenJDK tree as Andrew said? What I'd recommend for ease of debugging is
to build in a separate directory:
$ mkdir icedtea6-build
$ cd icedtea6-build
$ ../icedtea6-1.11.1/configure <params>
which you can then just rm -rf if it doesn't work. make clean works too,
but this is usually quicker and more guaranteed to work.
You mention something about having to fix up patches? Can you give more
details?
> Please take note the files and locations where they are being
> downloaded from.
> >
> >http://icedtea.classpath.org/hg/icedtea6-hg
> >
> >Going forward, I doubt this will work as OpenJDK6 doesn't have the
> >*BSD work
> >that Oracle have integrated for Mac OS X. You might be better
> >starting from
> >7. 6 is likely to end up having to be retired by the end of the
> >year anyway,
> >as Oracle intend to stop security support.
>
> If I can get this to work on 6 it would be great, however I can work
> on 7 as
> well. Is there anything I can not apply to get it to work on 6?
>
You're more than welcome to try and don't get me wrong - I love to see
FreeBSD support for OpenJDK6. I just worry that it'll be a lot of work
for something that may be decommissioned a few months after you finish.
There won't be *BSD support for a lot of things in OpenJDK6 as it stands,
so it'll need backporting from 7. That may have been feasible a few years
ago, but today there doesn't seem much point.
> Thanks!
> Jason
>
> --
> Jason Helfman | FreeBSD Committer
> jgh at FreeBSD.org | http://people.freebsd.org/~jgh
>
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
More information about the distro-pkg-dev
mailing list