Skip to content

Commit eecab35

Browse files
Update native built for OpenBSD 7.9 (x86-64 only)
- drop x86 build - add placeholders for aarch64 and sparcv9 - add notes for building Closes: #1709
1 parent f670868 commit eecab35

7 files changed

Lines changed: 43 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Bug Fixes
2424
* [#1636](https://github.com/java-native-access/jna/issues/1636): Drop hard dependency on java.lang.SecurityManager/java.security.AccessController - [@matthiasblaesing](https://github.com/matthiasblaesing).
2525
* [#1724](https://github.com/java-native-access/jna/pull/1724): Fix `host_page_size` in `c.s.j.p.mac.SystemB` and `getxattr`/`setxattr`/`listxattr` in `c.s.j.p.mac.XAttr` using `long` instead of pointer-sized types for `size_t`/`ssize_t` parameters - [@dbwiddis](https://github.com/dbwiddis).
2626
* [#1727](https://github.com/java-native-access/jna/pull/1727): Include DragonFlyBSD in `NativeLibrary` versioned library resolution, libc special-case loading, and 64-bit search paths - [@dbwiddis](https://github.com/dbwiddis).
27+
* [#1709](https://github.com/java-native-access/jna/issues/1709): Rebuild native library for OpenBSD 7.9 x86-64, drop OpenBSD x86 - [@matthiasblaesing](https://github.com/matthiasblaesing).
2728

2829
Release 5.18.1
2930
==============

build.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,10 @@ com/sun/jna/openbsd-x86/libjnidispatch.so;
405405
processor=x86;osname=openbsd,
406406
com/sun/jna/openbsd-x86-64/libjnidispatch.so;
407407
processor=x86-64;osname=openbsd,
408+
com/sun/jna/openbsd-x86-64/libjnidispatch.so;
409+
processor=sparcv9;osname=openbsd,
410+
com/sun/jna/openbsd-x86-64/libjnidispatch.so;
411+
processor=aarch64;osname=openbsd,
408412
409413
com/sun/jna/darwin-ppc/libjnidispatch.jnilib;
410414
osname=macosx;processor=ppc,
@@ -551,6 +555,12 @@ osname=macosx;processor=aarch64
551555
<zipfileset src="${lib.native}/openbsd-x86-64.jar"
552556
includes="*jnidispatch*"
553557
prefix="com/sun/jna/openbsd-x86-64"/>
558+
<zipfileset src="${lib.native}/openbsd-sparcv9.jar"
559+
includes="*jnidispatch*"
560+
prefix="com/sun/jna/openbsd-sparcv9"/>
561+
<zipfileset src="${lib.native}/openbsd-aarch64.jar"
562+
includes="*jnidispatch*"
563+
prefix="com/sun/jna/openbsd-aarch64"/>
554564
<zipfileset src="${lib.native}/win32-x86-64.jar"
555565
includes="*jnidispatch*"
556566
prefix="com/sun/jna/win32-x86-64"/>
@@ -739,6 +749,8 @@ osname=macosx;processor=aarch64
739749
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/freebsd-ppc64.jar" overwrite="true"/>
740750
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/openbsd-x86.jar" overwrite="true"/>
741751
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/openbsd-x86-64.jar" overwrite="true"/>
752+
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/openbsd-sparcv9.jar" overwrite="true"/>
753+
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/openbsd-aarch64.jar" overwrite="true"/>
742754
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/sunos-x86.jar" overwrite="true"/>
743755
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/sunos-x86-64.jar" overwrite="true"/>
744756
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/sunos-sparc.jar" overwrite="true"/>

lib/native/openbsd-aarch64.jar

508 Bytes
Binary file not shown.

lib/native/openbsd-sparcv9.jar

508 Bytes
Binary file not shown.

lib/native/openbsd-x86-64.jar

-12.3 KB
Binary file not shown.

lib/native/openbsd-x86.jar

-40.4 KB
Binary file not shown.

www/OpenBSD.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Building JNA for OpenBSD
2+
========================
3+
4+
This recipe was used to build the OpenBSD native library for OpenBSD. It uses
5+
the recipe for JNA.
6+
7+
- fetch install ISO from https://www.openbsd.org/faq/faq4.html#Download
8+
- use a qemu setup with:
9+
- a NAT network interface
10+
- a Hostonly interface
11+
- USB keyboard (PS2 does not work in install shell)
12+
- min. 10 GB size
13+
- min. 4 GB RAM
14+
- disable DNS for hostonly:
15+
```
16+
interface em1 {
17+
dns ignore;
18+
}
19+
```
20+
- fetch ports: https://www.openbsd.org/faq/ports/ports.html
21+
```bash
22+
cd /tmp
23+
ftp https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/{ports.tar.gz,SHA256.sig}
24+
signify -Cp /etc/signify/openbsd-$(uname -r | cut -c 1,3)-base.pub -x SHA256.sig ports.tar.gz
25+
cd /usr
26+
tar xzf /tmp/ports.tar.gz
27+
rm /tmp/ports.tar.gz
28+
```
29+
- run `make` in /usr/ports/java/jna`. The resulting binary can be found in
30+
usr/ports/pobj/jna-BRANCH/jna-BRANCH/build/openbsd-ARCH.jar

0 commit comments

Comments
 (0)