From nobody Sun Apr 21 12:03:55 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VMn976x0Wz5J5YT; Sun, 21 Apr 2024 12:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VMn974zRrz54Jl; Sun, 21 Apr 2024 12:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713701035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WQC5uqqqXNuzOgi1CwP5AV0p6BmMp5gd5sWXoroKceY=; b=rm3xzHK8XGVfcy3z41eCHzpEgES503XUvMYekFR+/cyH5oWY12B9SSsYv5LssED/O8jkUI NcwDRanYahwkZA4M7cVOq0z9KKrgYTKmKumirQi5/b1K6IWQimXXXrgvAuJSsCDpj6txIx n8lkMrz+pHhk7ALboXHmK7JVBDkEbZVFc1+dEKTrxifX3+9te7OAzfoUtvEcanwhtRNdKP u2mniHaCl8ssuX8OQH6I6iWhLk0i8KwfI7iX9xlP6zcdAETP+A5qQrklpwLsml/Ai16YpC RmV/9Yj859zdSPbRsyrsTysjxlAYgysj6tV0IQkBBbFxyYPKeZe9T2H11g7Lnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713701035; a=rsa-sha256; cv=none; b=jR3yhCimurmZy5T1o44VAD5of23f9pUhmcKO+LplOWCT8PShraULgxz8Nh23N+m93P/V6J pGzwmNRXK600hTv6EtXIoYAKJDQejRSTO3Tnx6v6uPATuiXv8Jb24IBVqRARfK6vGfwNjs P5UVcIqYqAvd/GejlULsgqeKAGyAtkJ4p7oPNUdccTnHkYnqpmJaa+EwKvKIM89Xb8nSlc O9f1Li8MpZZhnPKz3ganOGmCb620LcKQM1Ho8QjlyYX/lsaj2YjhYEiDErTaqgDvZzu58D dkcyMs/4Qw0FwsZ9wr+isSLuCGIsDpj33RDNNzL003YrgJ2H8No3Fe5QjL7ZpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713701035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WQC5uqqqXNuzOgi1CwP5AV0p6BmMp5gd5sWXoroKceY=; b=OCBDIw5kqMqbv1MU33E5q6ZtBwh5SbsuWKBwB2Sl0WWpZfycORgXSi27tLaFr9rOVQ72ul OLEo0frgmDa0XOKL62pWsyHAsBZi3IfEDMRM5XFKmQP1vVhXD3pQGCL5LunaYgssqBdqY2 J1vA+NO2hgxqolS7QzQLAzn0ADACIe56qj/34C4rf2N4KBv9m5reTQZ6GJ6F9DsNHRnkNV wIwCRBdL7VgacnNbgKLEhPAPxHzGHXnCLj/3B6pL8ZT6p+5rN2Wx8nLLST7+wQEhRTnrH9 n0iKz+UL7YGWjSs1boDPuup8kHmkb0YFevtFrDhmcLQetPVlFDFmtJMWKqTEBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VMn974b9cz1K85; Sun, 21 Apr 2024 12:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43LC3td7015028; Sun, 21 Apr 2024 12:03:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43LC3twV015025; Sun, 21 Apr 2024 12:03:55 GMT (envelope-from git) Date: Sun, 21 Apr 2024 12:03:55 GMT Message-Id: <202404211203.43LC3twV015025@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: 3b9e71f95ea3 - main - devel/jna: Update to 5.14.0+ List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3b9e71f95ea3b71b19eb741c94cf54d64ea463d5 Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=3b9e71f95ea3b71b19eb741c94cf54d64ea463d5 commit 3b9e71f95ea3b71b19eb741c94cf54d64ea463d5 Author: Dmitry Wagin AuthorDate: 2024-04-20 17:18:45 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2024-04-21 12:03:37 +0000 devel/jna: Update to 5.14.0+ ChangeLog: https://github.com/java-native-access/jna/blob/master/CHANGES.md#next-release-5150 Features * Add support for FreeBSD aarch64. * Add support for DragonFly BSD x86-64. * Add IsProcessorFeaturePresent to c.s.j.p.win32.Kernel32. Bug Fixes * Fix analysis of ELF binary on arm systems running with a java ELF binary without section table headers (java8 on armv7 NAS). * Fix free_callback JNI weak reference leak. * Check CallbackReference#cbstruct for null when checking existing Reference. Release 5.14.0 Features * Add SetJob, SetPrinter to c.s.j.p.w.Winspool. * Add GetMethod, Put, SpawnInstance to c.s.j.p.win32.COM.WbemCli#IWbemClassObject and ExecMethod to c.s.j.p.win32.COM.WbemCli#IWbemServices. * Add GetPriorityClass, SetPriorityClass, GetThreadPriority, SetThreadPriority and associated constants to c.s.j.p.win32.Kernel32EajL3kA. * Make interface c.s.j.p.mac.XAttr public. * Add c.s.j.p.bsd.ExtAttr and c.s.j.p.bsd.ExtAttrUtil to wrap BSD system calls. @rednoah. * Add missing O_* (e.g. O_APPEND, O_SYNC, O_DIRECT, ...) to c.s.j.p.linux.Fcntl . * Shutdown CleanerThread once the last cleanable is removed. * Build linux-riscv64 on Ubuntu focal to improve compatibility with older glibc versions. Bug Fixes * Library.OPTION_STRING_ENCODING is ignore for string arguments function calls. * Increase maximum supported fixed args on varargs calls from 3 to 255-nowak. * Fix Java 6 incompatibility in c.s.j.p.win32.Kerne32Util and c.s.j.p.win32.DBT. Important Changes The interfaces between Java and native code have changed, so libjnidispatch must be rebuilt to be compatible with this release. Release drops support for JDKs 6 + 7, so you'll need at least JDK 8 to update to use this version. PR: 278241 Reported by: dmitry.wagin@ya.ru Approved by: ports@markdixon.name (maintainer, timeout > 2 weeks) --- devel/jna/Makefile | 33 ++++++++++++++++----------------- devel/jna/distinfo | 6 +++--- devel/jna/files/patch-build.xml | 14 +++++++------- devel/jna/files/patch-native_Makefile | 21 +++++++++++---------- 4 files changed, 37 insertions(+), 37 deletions(-) diff --git a/devel/jna/Makefile b/devel/jna/Makefile index abcb0ced723f..93aeb74571d0 100644 --- a/devel/jna/Makefile +++ b/devel/jna/Makefile @@ -1,40 +1,39 @@ PORTNAME= jna -PORTVERSION= 5.7.0 -PORTREVISION= 1 +PORTVERSION= 5.15.0 CATEGORIES= devel java MAINTAINER= ports@markdixon.name COMMENT= Java access to native shared libraries -WWW= https://github.com/twall/jna +WWW= https://github.com/java-native-access/jna -LICENSE= LGPL21+ APACHE20 +LICENSE= APACHE20 LGPL21+ LICENSE_COMB= dual -LICENSE_FILE= ${WRKSRC}/LICENSE -LICENSE_FILE_LGPL21+ = ${WRKSRC}/LGPL2.1 LICENSE_FILE_APACHE20= ${WRKSRC}/AL2.0 +LICENSE_FILE_LGPL21+ = ${WRKSRC}/LGPL2.1 +LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_armv6= fails to compile: build.xml: compilation failed -BROKEN_armv7= fails to compile: build.xml: compilation failed +BROKEN_armv6= fails to compile: build.xml: compilation failed +BROKEN_armv7= fails to compile: build.xml: compilation failed BUILD_DEPENDS= makeinfo:print/texinfo USES= autoreconf:build gmake libtool xorg USE_ANT= yes +USE_GITHUB= yes +GH_ACCOUNT= java-native-access +GH_TAGNAME= 0a33062e1971962ca6b283c397ed1de5cc053d33 USE_JAVA= yes JAVA_VERSION= 8+ USE_XORG= x11 xt -MAKE_ARGS= -DCC="${CC}" -DLD="${LD}" -MAKE_ENV= ANT_OPTS=-Drelease -DARCH=${ANT_ARCH} - -USE_GITHUB= yes -GH_ACCOUNT= java-native-access +MAKE_ARGS= -DCC="${CC}" \ + -DLD="${LD}" +MAKE_ENV= ANT_OPTS="-Drelease -DARCH=${ANT_ARCH}" +ALL_TARGET= native jar +TEST_TARGET= test -PORTDOCS= javadoc platform-${PORTVERSION}-javadoc.jar PLIST_FILES= %%JAVAJARDIR%%/jna-platform.jar \ %%JAVAJARDIR%%/jna.jar - -ALL_TARGET= native jar -TEST_TARGET= test +PORTDOCS= javadoc platform-${PORTVERSION}-javadoc.jar OPTIONS_DEFINE= DOCS diff --git a/devel/jna/distinfo b/devel/jna/distinfo index ac6a48560a4d..248305e6e0f8 100644 --- a/devel/jna/distinfo +++ b/devel/jna/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1615036692 -SHA256 (java-native-access-jna-5.7.0_GH0.tar.gz) = cebdbb0894f011dbb5dd4288ea9cd0553aac3e0f7e8a617a59548432f1161254 -SIZE (java-native-access-jna-5.7.0_GH0.tar.gz) = 104929411 +TIMESTAMP = 1712524364 +SHA256 (java-native-access-jna-5.15.0-0a33062e1971962ca6b283c397ed1de5cc053d33_GH0.tar.gz) = 62b56a76574ab94705f50051b96ff16c0db18bd19e0c106bc6b2141437604a8d +SIZE (java-native-access-jna-5.15.0-0a33062e1971962ca6b283c397ed1de5cc053d33_GH0.tar.gz) = 116285127 diff --git a/devel/jna/files/patch-build.xml b/devel/jna/files/patch-build.xml index 26b41ff0ae44..555d5f384dbc 100644 --- a/devel/jna/files/patch-build.xml +++ b/devel/jna/files/patch-build.xml @@ -1,19 +1,19 @@ ---- build.xml.orig 2016-03-16 14:37:28 UTC +--- build.xml.orig 2024-03-29 21:57:29 UTC +++ build.xml -@@ -99,7 +99,7 @@ - - - +@@ -54,7 +54,7 @@ + + + - + -@@ -1084,7 +1084,6 @@ osname=macosx;processor=x86;processor=x8 +@@ -1324,7 +1324,6 @@ cd .. JNA API Documentation
${header}
${footer} -- +- diff --git a/devel/jna/files/patch-native_Makefile b/devel/jna/files/patch-native_Makefile index 4f1fa46eb3cd..19fe822ea0e6 100644 --- a/devel/jna/files/patch-native_Makefile +++ b/devel/jna/files/patch-native_Makefile @@ -1,6 +1,6 @@ ---- native/Makefile.orig 2021-02-08 18:49:25.000000000 +0000 -+++ native/Makefile 2021-03-06 13:25:34.083392000 +0000 -@@ -39,6 +39,8 @@ +--- native/Makefile.orig 2024-03-29 21:57:29 UTC ++++ native/Makefile +@@ -41,6 +41,8 @@ # protection simply by defining HAVE_PROTECTION. This option has been only # been enabled for those platforms on which it has been tested successfully. @@ -9,12 +9,13 @@ OS=$(shell uname | sed -e 's/CYGWIN.*/win32/g' \ -e 's/MINGW32.*/win32/g' \ -e 's/SunOS.*/solaris/g' \ -@@ -291,8 +293,11 @@ - ifneq (,$(findstring bsd,$(OS))) - ARCH=$(shell uname -m | sed 's/i.86/i386/g') - PCFLAGS+=-fPIC --CINCLUDES+=-I/usr/X11R6/include -+CINCLUDES+=-I%%LOCALBASE%%/include +@@ -297,9 +299,12 @@ PCFLAGS+=-fPIC + # This is a mess: X11 headers locate in /usr/local/include on FreeBSD and + # DragonFly, in /usr/X11R7/include on NetBSD, and in /usr/X11R6/include on + # OpenBSD. +-CINCLUDES+=-I/usr/local/include -I/usr/X11R7/include -I/usr/X11R6/include ++CINCLUDES+=-I%%LOCALBASE%%/include -I/usr/X11R7/include -I/usr/X11R6/include + CINCLUDES+=$(X11INC) # Allow extra X11 include path if necessary. LDFLAGS=-o $@ -shared +ifeq ($(ARCH),i386) +LDFLAGS+=-Wl,-z,notext @@ -22,7 +23,7 @@ CDEFINES+=-DHAVE_PROTECTION -DFFI_MMAP_EXEC_WRIT -DUSE_DEAFULT_LIBNAME_ENCODING endif -@@ -356,11 +361,11 @@ +@@ -363,11 +368,11 @@ ifeq ($(CC),gcc) GCC_MAJOR_VERSION = $(shell gcc -dumpversion | cut -f 1 -d '.') ifneq ($(GCC_MAJOR_VERSION),4) ifneq ($(GCC_MAJOR_VERSION),3)