From nobody Tue Aug 9 23:36:21 2022 X-Original-To: ports-bugs@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 4M2Twj5n6Cz4YnXB for ; Tue, 9 Aug 2022 23:36:21 +0000 (UTC) (envelope-from bugzilla-noreply@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 4M2Twj2rkcz3grt for ; Tue, 9 Aug 2022 23:36:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4M2Twj1q9nzqMd for ; Tue, 9 Aug 2022 23:36:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 279NaLPR006692 for ; Tue, 9 Aug 2022 23:36:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 279NaLro006691 for ports-bugs@FreeBSD.org; Tue, 9 Aug 2022 23:36:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265747] x11-toolkits/swt: openjdk with debug breaks build (libswt-awt-gtk-*) Date: Tue, 09 Aug 2022 23:36:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: chadf@triularity.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: makc@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660088181; 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=t0FpWNkLhXdBZw76rVGcETWTD9dbC1kKc4R7+nFjZ/I=; b=kiegMkp/yNdXN5V8umUjbF6/Kzz438HRts76eMtHNaeNu17oh6c9iMy4L4oN5AwlmH1XcZ Q8YTaln2fYXP+mfhDh3dMQc3WPdwdPSYlp73dtP9ClGO1LSuhlDvK6AyvyhrqReyHsyCgM 9Nqymjcq1WyiLsN0493Hl8h2wsFkR0j9DdW36PCQWa6py+YVJZQnt7uSxcSR+7krLZESco RBaVN0CJTUPgAbbUsW+fOOs2xmzOFYkuWHULpZSWeKF96Uo3FJT8KGg+V7I7Zi/9HUzT4n uenwwUnIi6V2V9J0Ka4zeaSoi+GYRht6a6CSlMJ7+zEZ1vgH7ej58SqTjxgsMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660088181; a=rsa-sha256; cv=none; b=QaK8Ef6ppfGU2JYkVxel3P/aLFwt8SWOEPi5M5DY1o7YFCT8+y9+E2zvnm2L8seeeqZRMN Fbe2ywiFQkhptP1b6Zytbss5FoeGOGy0JI6qeIhVbh31BtxYjc7O4U53Mi4HGFNz/tRI5y vW86yvOXPx+w+L/BGEMRWLj87lSwe9bFL/68hIC6sQnllLX+FChMBjeMYubNAQIDQYDoLi pwxP1oKnFbtLd1Ot6TR33EfrC7qF9UCj29dODWowkqQ0lfW4b/kYdsKGic03bOZD5FFC9C IbYC5oH8Ix6/cyplDEthM/fmxJ/HBTrcFz+MxSXgGsV3OGzMxQ3D7Ku+eieP4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=