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
This release is 1.5 years overdue and 6 months out-of-date, but is
an important interim step to the 4.24 release due in June 2022.
Massive thanks go to Patrick Mackinlay who resolved the 2 critical
bugs preventing update from coming out sooner!
Author: Jonathan Chen <jonc@chen.org.nz>
PR: 264400
- usability patch for PR:238844 (not a fix, but keeps Eclipse usable)
- use github.com servers in preference to git.eclipse.org for distfiles
PR: 240383
Submitted by: Jonathan Chen <jonc@chen.org.nz> (maintainer)
While here, fix powerpc64 build and remove pkg-plist for dynamic plist
to cater for multiple ARCH builds.
PR: 238152
Submitted by: Jonathan Chen <jonc@chen.org.nz> (maintainer)
At long last, eclipse has been updated to the latest release and is now
under the stewardship of Jimmy Kelly. This version supports OpenJDK8
runtime environments. A special thanks to Jonathan Chen for getting the
ball rolling after the PR stalled.
PR: 188659
Submitted by: Jimmy Kelly
Distfiles by: Jonathan Chen
Verified by: F10/amd64 poudriere
of libxul since the SWT plugin libraries in the eclipse-devel port will
not compile using libxul version 10.
PR: 174846
Submitted by: Jimmy Kelley <ljboiler@gmail.com>
. We are now installing a real eclipse product.
. Only the jar files for the platform are built, dramatically reducing
the time necessary to build (thanks to the Fedora devs for the idea
and the basic procedure).
. Lot of small fixes to the build procedure to make future imports easier
. Some of the bundles are pre-extracted during install to improve
launching time.
. JDK 1.6 is required to build but any jre (1.5 or 1.6) can be used in
Preferences->Java->Installed JREs. JDK 1.4 is unfortunately not
supported at this time.
. Switch to x86_64 architecture name instead of amd64 to be more in-line
with mainline eclipse.
Note that after this update you will need to reinstall any plugins you've
installed with the built in Update Manager. This is a one time thing.
Submitted by: sepotvin@ (maintainer)
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
port on FreeBSD 7.x and higher as mixing the native 7.x libraries of
eclipse and the native 6.x libraries of diablo-jdk is a recipe for trouble.
PR: 118115
- Fixes for internal web browser on amd64 [2]
- Convert to USE_GECKO [3]
Note: Port defaults to xulrunner as the preffered gecko port because it is
the only port which allows the internal web browser to work but eclipse will
build using other gecko ports (ie. firefox, mozilla, seamonkey) though it
will lack a working internal web browser. An argument can be made that
xulrunner should be the only available gecko but maybe 5 people have
xulrunner installed and it's another 45 minute mozilla dependency on even my
speedy machine. The maintainer mentioned working on getting the internal
web browser to work with firefox so I'm leaving well enough alone. When
eclipse fully works with firefox the USE_GECKO ordering should probably be
revistited.
PR: 105581
Submitted by: Maintainer [1], Kurt Miller <lists at intricatesoftware.com> [2], me [3]
Although I can't reproduce this problem, it doesn't break anything
for me and other users have independently verified it fixes the
build for them.
. Remove an unnecessary patch.
PR: 85590
Submitted by: Panagiotis Astithas <past@ebs.gr>
o java/eclipse-devel is IGNOREd now until 3.2+.
o change MAINTAINERship to java@ on java/eclipse-devel. [1]
PR: ports/84252
Submitted by: Panagiotis Astithas <past@ebs.gr>
Requested by: devel/eclipse-devel's maintainer [1]
Tested by: java@