On Mon, November 23, 2020 04:26, phess...@openbsd.org wrote: > bulk build on arm64.ports.openbsd.org started on Fri Nov 20 04:33:02 MST > 2020 finished at Sun Nov 22 18:50:13 MST 2020 > lasted 2D14h17m done with kern.version=OpenBSD 6.8-current (GENERIC.MP) > #905: Thu Nov 19 22:40:17 MST 2020 > > http://build-failures.rhaalovely.net/aarch64/2020-11-20/net/i2p.log > > > cd /usr/obj/ports/i2p-0.9.47/i2p-0.9.47/core/c && CC=cc BITS=64 > /usr/obj/ports/i2p-0.9.47/i2p-0.9.47/core/c/build.sh > Building openbsd .sos > Please ensure you have a Java SDK installed > and/or set JAVA_HOME then re-run this script. ERROR: Cannot find jni.h! > Looked in "/include/jni.h" > Please set JAVA_HOME to a java home that has the JNI > cp: jcpuid/lib/freenet/support/CPUInformation/*jcpuid*: No such file or > directory > cp: jbigi/lib/*jbigi*: No such file or directory > /usr/obj/ports/i2p-0.9.47/i2p-0.9.47/core/c/build.sh[12]: jar: not found > Native code built into jbigi.jar > > I don't know why exactly the jar program isn't picked up, so I simply fixed it's path. Probably because it uses a shell script for that specific build. But part of the fix is required for amd64 too, particularly the patch. Can't test, don't have aarch64.
Index: Makefile =================================================================== RCS file: /cvs/ports/net/i2p/Makefile,v retrieving revision 1.3 diff -u -p -r1.3 Makefile --- Makefile 5 Nov 2020 19:54:50 -0000 1.3 +++ Makefile 23 Nov 2020 04:21:42 -0000 @@ -43,6 +43,8 @@ DB_DIR= ${LOCALSTATEDIR}/i2p SUBST_VARS= DB_DIR JAVA_HOME +MAKE_ENV= CC=${CC} BITS=${BITS} + WRKDIST= ${WRKDIR}/${PKGNAME} # test requires addition dependencies (atleast: junit, hamcrest, jmockfit) @@ -54,8 +56,7 @@ post-patch: ${SUBST_CMD} ${WRKSRC}/installer/resources/eepget post-build: - cd ${WRKSRC}/core/c && CC=${CC} BITS=${BITS} \ - ${WRKSRC}/core/c/build.sh + cd ${WRKSRC}/core/c && ${MAKE_ENV} ${WRKSRC}/core/c/build.sh do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/i2p Index: patches/patch-core_c_build_sh =================================================================== RCS file: patches/patch-core_c_build_sh diff -N patches/patch-core_c_build_sh --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-core_c_build_sh 23 Nov 2020 04:21:42 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ + +fix jar location + +--- core/c/build.sh.orig Mon Nov 23 09:30:07 2020 ++++ core/c/build.sh Mon Nov 23 09:30:50 2020 +@@ -9,6 +9,6 @@ cp jcpuid/lib/freenet/support/CPUInformation/*jcpuid* + mkdir -p t/net/i2p/util/ + cp jbigi/lib/*jbigi* t/ + +-(cd t ; jar cf ../jbigi.jar . ; cd ..) ++(cd t ; ${JAVA_HOME}/bin/jar cf ../jbigi.jar . ; cd ..) + + echo "Native code built into jbigi.jar" regards, Dimitri