Commit graph

5261 commits

Author SHA1 Message Date
Greg Lewis
357fe86fdd java/openjdk19: Fix the build on x86 2023-01-24 17:43:44 -08:00
Greg Lewis
b39d592147 java/openjdk17: Fix the build on some aarch64 machines
* Disable CompressedClassPointers on aarch64.  This fixes the build
  on some aarch64 machines where it previously failed, e.g. RPI4,
  and doesn't seem to affect the build on others (AWS aarch64 hardware).

This is based on and uses a patch initially created by ronald@

PR:		260187
Tested by:	ronald@
2023-01-23 21:19:21 -08:00
Greg Lewis
e9904dbfcd java/openjdk19: Update to 19.0.2 2023-01-22 23:04:28 -08:00
Greg Lewis
15284be7b3 java/openjdk17: Update to 17.0.6 2023-01-22 22:06:15 -08:00
Greg Lewis
cb5f8daf22 java/openjdk11: Update to 11.0.18 2023-01-22 21:36:55 -08:00
Greg Lewis
abec68416a java/openjdk8: Update to 8u362 2023-01-22 17:07:41 -08:00
Dimitry Andric
55820d3f16 java/eclipse: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
java/eclipse failed to build with clang 15:

  [INFO]      [exec] Building GTK3 bindings:
  [INFO]      [exec] gmake[1]: Entering directory '/wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-R4_24/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.freebsd.amd64/tmpdir'
  ...
  [INFO]      [exec] cc -O -Wall -fPIC -DSWT_VERSION=4952r11    -DFREEBSD -DGTK -I`pkg-config --variable=prefix gtk+-3.0`/include -I/usr/local/openjdk11/include -I/usr/local/openjdk11/include/freebsd -DJNI64 -m64 -Werror `pkg-config --cflags gtk+-3.0 gtk+-unix-print-3.0` -c os.c
  [INFO]      [exec] os.c:10086:31: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
  [INFO]      [exec]         rc = (jint)((jint (*)())arg0)(arg1, arg2, arg3);
  [INFO]      [exec]                                      ^
  [INFO]      [exec] os.c:10098:31: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
  [INFO]      [exec]         rc = (jint)((jint (*)())arg0)(arg1, arg2);
  [INFO]      [exec]                                      ^
  [INFO]      [exec] os.c:10704:33: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
  [INFO]      [exec]         rc = (jlong)((jlong (*)())arg0)(arg1, arg2, arg3, arg4);
  [INFO]      [exec]                                        ^
  [INFO]      [exec] os.c:10716:33: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
  [INFO]      [exec]         rc = (jlong)((jlong (*)())arg0)(arg1, arg2, arg3, arg4, arg5, arg6);
  [INFO]      [exec]                                        ^
  [INFO]      [exec] os.c:10728:33: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
  [INFO]      [exec]         rc = (jlong)((jlong (*)())arg0)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  [INFO]      [exec]                                        ^

These -Werror warnings are in code generated by JNIGenerator, so they
cannot directly be fixed (at least not without hacking on JNIGenerator
itself).

Instead we need to add -Wno-deprecated-non-prototype for clang 15 and
higher. To achieve this, we have to pass CFLAGS to MAVEN_ENV, and adjust
the gtk build.sh script to respect the CFLAGS setting in the
environment.

PR:		269034
Approved by:	jonc@chen.org.nz (maintainer)
MFH:		2023Q1
2023-01-22 19:58:23 +01:00
Muhammad Moinur Rahman
2d00178fd4 */*: Fix some ports conversion from USE_RUBY to USES=ruby
In my previous commit 18c6e18 I missed some ports where RUBY was
optional. This commit fixes those missing ports and fixes INDEX build.

Approved by:	portmgr
Fixes: 18c6e18 Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
2023-01-14 20:45:23 -06:00
Muhammad Moinur Rahman
18c6e18276 Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk

Notable changes are.

- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
  USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.

This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863

I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.

Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D37925
2023-01-14 17:08:33 -06:00
Michael Zhilin
3646ce8465 java/eclipse-pydev: update to 10.1.1
Changelog: https://www.pydev.org/history_pydev.html#release-10-1-1-2023-01-09
2023-01-10 10:54:22 +03:00
Greg Lewis
d2746c6ad1 java/openjdk18: Attempt to fix the build for i386 2023-01-07 20:33:46 -08:00
Daniel Engberg
12f1c627d4 */*: Bump rust (cargo) ports to reflect on WITH_LTO
Bump ports in tree so they get rebuilt with new default settings
for cargo ports
2023-01-07 20:24:18 +01:00
Koop Mast
a2b7f89d83 java/netbeans: update to 16.
Update JAVA field to jdk 11 and 17, which are the offical supported jdk's.

Changes 16: https://github.com/apache/netbeans/releases/tag/16
Changes 15: https://github.com/apache/netbeans/releases/tag/15
Changes 14: https://github.com/apache/netbeans/releases/tag/14
Changes 13: https://github.com/apache/netbeans/releases/tag/13

PR:		268268
Reported by:	i@vboldin.ru
2022-12-29 21:43:49 +01:00
Yuri Victorovich
7c932cc135 java/visualvm: Update 2.0.6 -> 2.1.5
PR:		266649
Submitted by:	Jens Grassel (freebsd-ports@jan0sch.de), initial version

Approved by:	swills@ (maintainer's timeout; 92 days)
2022-12-28 23:05:35 -08:00
Piotr Kubaj
8bb268539f java/openjdk19: fix build on powerpc64*
Remove the dead code that no longer builds and is not present in the Linux code.
2022-12-21 17:39:55 +00:00
Mikael Urankar
ba14e01a52 lang/rust: Bump revisions after 1.66.0
PR:		268415
2022-12-20 18:37:15 +01:00
Dimitry Andric
430ead7025 java/openjdk18: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
java/openjdk18 failed to build with clang 15:

  /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:374:41: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      proxies = (*g_proxy_resolver_lookup)(resolver, uri, NULL, &error);
                                          ^
  /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:393:63: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
                                  (*g_network_address_parse_uri)(proxies[i], 0,
                                                                ^
  /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:398:70: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
                              phost = (*g_network_address_get_hostname)(conn);
                                                                       ^
  /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:399:66: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
                              pport = (*g_network_address_get_port)(conn);
                                                                   ^
  /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:435:22: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
          (*g_strfreev)(proxies);
                       ^

This is because clang 15 warns by default about functions without
arguments in their prototypes. Fix this by suppressing the warning.

PR:		268373
Approved by:	portmgr (tcberner)
MFH:		2022Q4
2022-12-18 18:37:49 +01:00
Dimitry Andric
4d093f4f68 java/openjdk17: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
java/openjdk17 failed to build with clang 15:

  /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:374:41: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      proxies = (*g_proxy_resolver_lookup)(resolver, uri, NULL, &error);
                                          ^
  /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:393:63: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
                                  (*g_network_address_parse_uri)(proxies[i], 0,
                                                                ^
  /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:398:70: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
                              phost = (*g_network_address_get_hostname)(conn);
                                                                       ^
  /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:399:66: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
                              pport = (*g_network_address_get_port)(conn);
                                                                   ^
  /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:435:22: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
          (*g_strfreev)(proxies);
                       ^

This is because clang 15 warns by default about functions without
arguments in their prototypes. Fix this by suppressing the warning.

PR:		268366
Approved by:	portmgr (tcberner)
MFH:		2022Q4
2022-12-18 18:36:27 +01:00
Dimitry Andric
d7146f6d33 java/openjdk8: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
java/openjdk8 failed to build with clang 15:

    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:64:30: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion]
        INVOKE(SplashLoadMemory, NULL)(pdata, size);
                                 ^~~~
    /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
    #define NULL    ((void *)0)
                    ^~~~~~~~~~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:60:39: note: expanded from macro 'INVOKE'
    #define INVOKE(name,def) _INVOKE(name,def,return)
                                          ^~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:57:25: note: expanded from macro '_INVOKE'
        if (!proc) { return def; } \
                            ^~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:68:28: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion]
        INVOKE(SplashLoadFile, NULL)(filename);
                               ^~~~
    /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
    #define NULL    ((void *)0)
                    ^~~~~~~~~~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:60:39: note: expanded from macro 'INVOKE'
    #define INVOKE(name,def) _INVOKE(name,def,return)
                                          ^~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:57:25: note: expanded from macro '_INVOKE'
        if (!proc) { return def; } \
                            ^~~
    2 errors generated.

Indeed, instead of the pointer value NULL, the integer value 0 should be
used.

PR:		268223
Approved by:	portmgr (tcberner)
MFH:		2022Q4
2022-12-18 18:23:58 +01:00
Michael Zhilin
411148ba77 java/eclipse-pydev: update to 10.0.2 2022-12-12 10:47:25 +03:00
Michael Zhilin
e86096b57a java/jattach: update to 2.1 2022-12-12 09:42:33 +03:00
Michael Zhilin
3e24ca01e0 java/eclipse-pydev: bump to 10.0.1
Release notes: https://www.pydev.org/history_pydev.html#release-10-0-1-2022-10-28
2022-12-10 09:46:23 +03:00
Mikael Urankar
9bf6a99963 lang/rust: Bump revisions after 1.65.0
PR:		267622
2022-11-17 08:06:14 +01:00
Lars Herschke
e51fa36481 java/icedtea-web: Update to 1.8.8
PR:		259466
2022-11-03 23:54:54 -07:00
Greg Lewis
add6dd031a java/openjdk18: Use the distributed cacerts
PR:		266723
Reported by:	Michael Osipov <michael.osipov@siemens.com>
2022-11-03 23:43:18 -07:00
Greg Lewis
381f9126c0 java/openjdk17: Use the distributed cacerts
PR:		266723
Reported by:	Michael Osipov <michael.osipov@siemens.com>
2022-11-03 23:30:13 -07:00
Greg Lewis
34c45542f7 java/openjdk11: Use the distributed cacerts
PR:		266723
Reported by:	Michael Osipov <michael.osipov@siemens.com>
2022-11-03 23:13:16 -07:00
Greg Lewis
60e0223972 java/openjdk8: Use the distributed cacerts
PR:		266723
Reported by:	Michael Osipov <michael.osipov@siemens.com>
2022-11-03 22:52:56 -07:00
Greg Lewis
4f48011386 java/openjdk19: Add a port of OpenJDK 19 2022-10-30 11:42:20 -07:00
Mikael Urankar
afe651cf62 lang/rust: Bump revisions after 1.64.0
PR:		267173
2022-10-30 13:07:09 +01:00
Greg Lewis
6168584745 java/openjdk8: Update to 8u352 2022-10-29 15:22:52 -07:00
Greg Lewis
b87e44e535 java/openjdk11: Update to 11.0.17 2022-10-29 15:22:13 -07:00
Greg Lewis
0d0710f366 java/openjdk17: Update to 17.0.5 2022-10-29 15:21:06 -07:00
Jan Beich
dfe25d73e7 devel/icu: update to 72.1
Changes:	https://github.com/unicode-org/icu/releases/tag/release-72-1
Reported by:	GitHub (watch releases)
PR:		266582
Exp-run by:	antoine
2022-10-19 08:10:29 +00:00
Alex Dupre
4992a70b17 java/intellij-ultimate: update to 2022.2.3 release. 2022-10-10 10:50:02 +02:00
Alex Dupre
62d7e46721 java/intellij-ultimate: update to 2022.2.2 release. 2022-10-03 09:12:01 +02:00
Greg Lewis
9402cd04e3 cleanup: Remove expired java/bootstrap-openjdk6 port 2022-09-25 16:17:56 -07:00
Greg Lewis
19899c4999 java/openjdk17: Update to 17.0.4.1 2022-09-25 16:06:59 -07:00
Greg Lewis
749c57a8a8 java/openjdk11: Update to 11.0.16.1 2022-09-25 16:06:16 -07:00
Dimitry Andric
e0af091d6c java/openjdk8: Bump PORTREVISION for previous change
PR:		264065
MFH:		2022Q3
2022-09-14 12:46:26 +02:00
Dimitry Andric
a705af9bfc java/openjdk8: Restore workaround for aarch64 assertions
See also <https://bugs.openjdk.org/browse/JDK-8247766>.

Even though the upstream fix has been applied to this version of the
JDK, some users still report the assertion "guarantee(val < (1U <<
nbits)) failed: Field too big for insn" occurring, when it is built with
recent versions of clang.

Therefore, restore the workaround that uses clang 12 to build the JDK on
aarch64.

PR:		264065
MFH:		2022Q3
2022-09-14 10:52:48 +02:00
Daniel Engberg
e942e560c4 */*: Update path set in BUILD_DEPENDS for CMake
Commit b23ea4e2d2 changed its location to
devel/cmake-core

Approved by:	portmgr (blanket)
2022-09-09 22:32:24 +02:00
Stefan Eßer
ade2a047e0 Remove WWW lines that have been moved into Makefiles
Approved by:	portmgr (implicit)
2022-09-08 17:46:38 +02:00
Stefan Eßer
986beaaabc Move more WWW entries from pkg-descr files into Makefiles
The WWW: lines in the pkg-descr files of these ports where not at the
end of those files and have been missed in prior conversion runs.

Approved by:	portmgr (implicit)
2022-09-08 17:43:21 +02:00
Stefan Eßer
fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c0 has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2022-09-07 23:58:51 +02:00
Stefan Eßer
b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00
Rene Ladan
a3bbdd76cd cleanup: Remove expired ports:
2022-09-03 java/openjdk7: EOLed since 31 July 2022
2022-09-03 java/openjdk7-jre: EOLed since 31 July 2022
2022-09-03 13:10:14 +02:00
Piotr Kubaj
e3f56d3c66 java/openjdk11: use LLVM 12 to build if the system compiler is LLVM 13 or newer
PR:	260319
Reported by:	jonc@chen.org.nz
Approved by:	java (maintainer timeout)
2022-08-31 01:02:10 +02:00
Stefan Eßer
3d41392b6e java/openjdk11: fix build on 13.1 and -CURRENT
Recent LLVM versions issue warnings for "|" being used with boolean
operands. Such operations exist in OpenJDK and the source lines are
marked with comments to not use logical operations instead.

This breaks the build on 13.1 and -CURRENT when building with LLVM-13
or newer due to the -Werror option being passed to the compiler.

Fix this issue by casting one of the boolean operands to int, as
suggested by the compiler in the error message for the case that the
"|" operation should actually be used on purpose.

I had submitted this patch as an attachment to PR 265687 on
2022-08-07, but it has been ignored by the maintainer (java team).

PR:		265687
Approved by:	portmgr (implicit)
2022-08-28 16:54:31 +02:00
Baptiste Daroussin
b9b250f912 rust: bring back update to 1.63
Revert back the revert of the update of rust and related commits

This revert was drive by beside validation by portmgr via exp-run
and not respectful of the etiquette we have between committers

This reverts commit 8ecb1f8141.
This reverts commit 04d257baa1.
This reverts commit 2757c63bd0.
This reverts commit 75f4713de5.
This reverts commit e88e592111.
This reverts commit 783c056d7d.

With hat:	portmgr
2022-08-25 16:49:50 +02:00