bsd-port b58 update

Andrew John Hughes gnu_andrew at member.fsf.org
Wed May 20 12:52:10 PDT 2009


2009/5/20 Kurt Miller <kurt at intricatesoftware.com>:
> Andrew John Hughes wrote:
>> 2009/5/20 Kurt Miller <kurt at intricatesoftware.com>:
>>> I completed updating bsd-port to b58 locally and will be pushing it up
>>> to the repository soon. There are some things to be aware of with this
>>> update. There are new nio classes and packages as well as sctp support
>>> in jdk7 now. For more details see:
>>>
>>> http://www.openjdk.org/projects/nio/
>>> http://www.openjdk.org/projects/sctp/
>>>
>>> I did not integrate the new java.nio.sctp package. There is no SCTP
>>> support in OpenBSD or FreeBSD 6.x (not sure about NetBSD or OS X). I
>>> removed nio subdir from jdk/make/com/sun/Makefile so the java.nio.sctp
>>> package package is completely skipped.
>>>
>>> There is a new nio class:
>>>
>>> java.nio.channels.spi.AsynchronousChannelProvider
>>>
>>> I did not provide a BSD implementation since the Solaris, Linux or
>>> Windows implementations all use features not present on BSD (/dev/poll,
>>> epoll, and iocp). Attempting to use this class will result in an
>>> "platform not recognized" exception until a BSD version is implemented
>>> (preferably kqueue based).
>>>
>>> There is a new nio package: java.nio.fs. I provided partial/incomplete
>>> implementation for the BsdFileSystem and BsdFileStore classes. Basically
>>> I implemented enough so that bsd-port can bootstrap itself on *BSD.
>>> However, OS X needs an alternate implementation of
>>> BsdFileSystem.getMountEntries() since OS X doesn't use /etc/fstab like
>>> the BSD's do. Without an OS X getMountEntries() implementation bsd-port
>>> can't be used to bootstrap itself on OS X, but it should still build.
>>>
>>> The BSD's and OS X currently don't have openat, fstatat, unlinkat,
>>> renameat, futimesat, fdopendir or getextmntent which are needed for
>>> full java.nio.fs support. See:
>>>
>>> jdk/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
>>>
>>> I wrote an alternate implementation for getextmntent() that works on
>>> *BSD but not on OS X. We need alternate implementations for the rest.
>>> Expect java.nio.fs classes to have problems until we have alternate
>>> implementations for those functions.
>>>
>>> In short, expect bsd-port to have some deficiencies until project
>>> members or the community provide implementations for the missing
>>> parts. If you have the interest and capability this is an excellent
>>> time to contribute to bsd-port.
>>>
>>> Regards,
>>> -Kurt
>>>
>>>
>>
>> Good news! BTW, there is now a b59 with a few minor fixes, so probably
>> worth pulling that in too.  There'll not be much until after JavaOne
>> so now is a good time to play catch up ;)
>
> Thanks. :-) b59 came out in the middle of this update so I held off.
> b58 -> b59 should not be as much work as b50 -> b58 was (I hope!).
>
> Regards,
> -Kurt
>

It made no difference to IcedTea from what I remember.  It's just some
bug fixes in hotspot and jdk:

http://download.java.net/jdk7/changes/jdk7-b59.html

b50 (NIO2) and b57 (Nimbus) were pretty hellish by comparison!
-- 
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 bsd-port-dev mailing list