Date: Tue, 09 Aug 2022 23:36:21 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265747] x11-toolkits/swt: openjdk with debug breaks build (libswt-awt-gtk-*) Message-ID: <bug-265747-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265747 Bug ID: 265747 Summary: x11-toolkits/swt: openjdk with debug breaks build (libswt-awt-gtk-*) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: makc@FreeBSD.org Reporter: chadf@triularity.org Flags: maintainer-feedback?(makc@FreeBSD.org) Assignee: makc@FreeBSD.org Created attachment 235818 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235818&action= =3Dedit swt-build.sh.patch When openjdk has debug enabled, it breaks building AWT component of SWT. Cause: The build.sh script looks for libjawt.*, which also matches libjawt.debugi= nfo, causing the auto-detect to fail. Fix: Patch build.sh to look for libjawt.so explicitly. [patch attached -- post port's existing build.sh patch] Note: Only tested with openjdk8. May break if another JDK uses a filename differ= ent than just "libjawt.so". Optionally could change patch to look for "libjawt.*so". Build Log: # make install =3D=3D=3D> License EPL accepted by the user =3D=3D=3D> swt-4.21 depends on file: /usr/local/sbin/pkg - found =3D=3D=3D> Fetching all distfiles required by swt-4.21 for building =3D=3D=3D> Extracting for swt-4.21 =3D> SHA256 Checksum OK for swt-4.21-gtk-linux-x86_64.zip. =3D=3D=3D> swt-4.21 depends on file: /usr/local/bin/unzip - found =3D=3D=3D> Patching for swt-4.21 =3D=3D=3D> Applying FreeBSD patches for swt-4.21 from /usr/ports/x11-toolkits/swt/files /usr/bin/sed -e 's|freebsd|dragonfly|g' /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/make_freebsd.mak > /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/make_dragonfly.mak =3D=3D=3D> swt-4.21 depends on file: /usr/local/openjdk8/bin/java - found =3D=3D=3D> swt-4.21 depends on file: /usr/local/bin/ant - found =3D=3D=3D> swt-4.21 depends on package: gmake>=3D4.3 - found =3D=3D=3D> swt-4.21 depends on package: pkgconf>=3D1.3.0_1 - found =3D=3D=3D> swt-4.21 depends on package: xorgproto>=3D0 - found =3D=3D=3D> swt-4.21 depends on package: xorgproto>=3D0 - found =3D=3D=3D> swt-4.21 depends on file: /usr/local/libdata/pkgconfig/xtst.pc= - found =3D=3D=3D> swt-4.21 depends on shared library: libGLU.so - found (/usr/local/lib/libGLU.so) =3D=3D=3D> swt-4.21 depends on shared library: libGL.so - found (/usr/local/lib/libGL.so) =3D=3D=3D> swt-4.21 depends on shared library: libatk-1.0.so - found (/usr/local/lib/libatk-1.0.so) =3D=3D=3D> swt-4.21 depends on shared library: libcairo.so - found (/usr/local/lib/libcairo.so) =3D=3D=3D> swt-4.21 depends on shared library: libgdk_pixbuf-2.0.so - fou= nd (/usr/local/lib/libgdk_pixbuf-2.0.so) =3D=3D=3D> swt-4.21 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so) =3D=3D=3D> swt-4.21 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so) =3D=3D=3D> swt-4.21 depends on shared library: libgtk-3.so - found (/usr/local/lib/libgtk-3.so) =3D=3D=3D> swt-4.21 depends on shared library: libpango-1.0.so - found (/usr/local/lib/libpango-1.0.so) =3D=3D=3D> Configuring for swt-4.21 =3D=3D=3D> Building for swt-4.21 Buildfile: /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/build.xml init: build.classes: [mkdir] Created dir: /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/classes [javac] /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/build.xml:32: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=3Dlast; set to false for repeatable builds [javac] Compiling 440 source files to /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/classes [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. build.nativeLibraries: [exec] [: /usr/local/openjdk8/jre/lib/amd64/libjawt.debuginfo: unexpec= ted operatorCairo found, compiling SWT support for the cairo graphics library. [exec] *** libjawt.so not found, the SWT/AWT integration library will = not be compiled. [exec] Building SWT/GTK+ for Architectures: freebsd x86_64 [exec] *** Warning: Cannot compile Webkit2 Extension because 'pkg-conf= ig --exists webkit2gtk-web-extension-4.0' check failed. Please install webkitgtk4-devel.ARCH on your system. [exec] Building GTK3 bindings: [exec] gmake[2]: Entering directory '/usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21' [exec] cc -O -Wall -fPIC -DSWT_VERSION=3D4946r21 -DLINUX -DGTK -I/usr/local/openjdk8/include -I/usr/local/openjdk8/include/freebsd -I/usr/local/include -DJNI64 -Werror -c swt.c . . . [exec] cc -shared -fPIC -s -o libswt-cairo-gtk-4946r21.so swt.o cairo= .o cairo_structs.o cairo_stats.o `pkg-config --libs-only-L cairo` -lcairo [exec] gmake[2]: Leaving directory '/usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21' [exec] GTK3 Build succeeded build.jar: [jar] Building jar: /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/swt.jar BUILD SUCCESSFUL Total time: 23 seconds =3D=3D=3D> Staging for swt-4.21 =3D=3D=3D> swt-4.21 depends on file: /usr/local/openjdk8/bin/java - found =3D=3D=3D> swt-4.21 depends on file: /usr/local/libdata/pkgconfig/xtst.pc= - found =3D=3D=3D> Generating temporary packing list install -s -m 0644 /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/libswt-*.so /usr/obj/usr/ports/x11-toolkits/swt/work/stage/usr/local/lib install -m 0644 /usr/obj/usr/ports/x11-toolkits/swt/work/swt-4.21/swt.jar /usr/obj/usr/ports/x11-toolkits/swt/work/stage/usr/local/share/java/classes/ =3D=3D=3D=3D> Compressing man pages (compress-man) =3D=3D=3D> Installing for swt-4.21 =3D=3D=3D> Registering installation for swt-4.21 pkg-static: Unable to access file /usr/obj/usr/ports/x11-toolkits/swt/work/stage/usr/local/lib/libswt-awt-gtk= -4946r21.so:No such file or directory *** Error code 1 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265747-7788>