OpenBSD
Bryan C. Everly
bryan at bceassociates.com
Thu May 21 15:12:28 UTC 2015
Hello,
I was able to get jtreg to build on OpenBSD 5.7 with a couple of small
diffs (see below). In working with the folks on the OpenJDK BSD Port
project, they suggested I reach out to this list to see if someone
would be willing to commit these on my behalf? I have signed an OCA
and am assisting on the OpenJDK BSD Port project so there shouldn't be
any problems from that perspective. I'd be happy to test the code
after the changes are committed to make sure that everything is
working ok.
Some notes:
While the Platform.gmk looks like it isn't used, it keeps us from
falling into code that assumes this is Cygwin on Windows (which messes
all sorts of things up). I figured why not create those variables for
later use that identify our platform.
The diffs:
diff -r afdc0ea0286a make/Defs.gmk
--- a/make/Defs.gmk Mon May 18 18:34:08 2015 -0700
+++ b/make/Defs.gmk Wed May 20 12:51:22 2015 -0400
@@ -261,8 +261,9 @@
TEST = /usr/bin/test
TOUCH = /usr/bin/touch
UNZIP = /usr/bin/unzip
+UNZIP := *shell if [ -r /usr/bin/unzip ]; then echo /usr/bin/unzip
; else echo /usr/local/bin/unzip ; fi )
WC = /usr/bin/wc
-ZIP = /usr/bin/zip
+ZIP := $(shell if [ -r /usr/bin/zip ]; then echo /usr/bin/zip ;
else echo /usr/local/bin/zip ; fi )
#----------------------------------------------------------------------
diff -r afdc0ea0286a make/Platform.gmk
--- a/make/Platform.gmk Mon May 18 18:34:08 2015 -0700
+++ b/make/Platform.gmk Wed May 20 12:51:22 2015 -0400
@@ -47,6 +47,11 @@
OS_ARCH := $(shell $(UNAME) -p)
OS_VERSION := $(shell $(UNAME) -r)
endif
+ifeq ($(UNAME_S), OpenBSD)
+ OS_NAME = openbsd
+ OS_ARCH := $(shell $(UNAME) -p)
+ OS_VERSION := $(shell $(UNAME) -r)
+endif
ifeq ($(UNAME_S), Linux)
OS_NAME = linux
OS_ARCH := $(shell $(UNAME) -m)
Thanks,
Bryan
More information about the jtreg-use
mailing list