Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 48A0B1A9239 for ; Thu, 13 Jan 2022 03:57:30 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 83AE284EC7; Thu, 13 Jan 2022 03:57:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BC77B84D31 for ; Thu, 13 Jan 2022 03:57:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id zS_Up0uM-hrY for ; Thu, 13 Jan 2022 03:57:28 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 230B984C71 for ; Thu, 13 Jan 2022 03:57:28 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 1BB65FB24; Thu, 13 Jan 2022 03:57:28 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1642046248164700" MIME-Version: 1.0 Date: Thu, 13 Jan 2022 03:57:28 +0000 From: "David H. Gutteridge" Subject: CVS commit: pkgsrc/www/webkit-gtk To: pkgsrc-changes@NetBSD.org Reply-To: gutteridge@netbsd.org X-Mailer: log_accum Message-Id: <20220113035728.1BB65FB24@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1642046248164700 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: gutteridge Date: Thu Jan 13 03:57:28 UTC 2022 Modified Files: pkgsrc/www/webkit-gtk: Makefile buildlink3.mk Log Message: webkit-gtk: fix builds on NetBSD 9.x The base GCC 7.5 on NetBSD 9.x is missing a C++17 feature expected by this package now. The pkgsrc GCC 7.5 includes that feature, but the build still fails later on with another unmet expectation. So GCC 8 is now the minimum viable version with which to build this package. This involves a bit of a kludge to deal with how GCC from pkgsrc ends up linking. This is obviously not ideal, and is part of a broader topic that needs revisiting. The present goal is to try and stabilize the 2021Q4 branch. Tested on 9.2_STABLE/amd64 with www/badwolf. Addresses PR pkg/56604. To generate a diff of this commit: cvs rdiff -u -r1.218 -r1.219 pkgsrc/www/webkit-gtk/Makefile cvs rdiff -u -r1.86 -r1.87 pkgsrc/www/webkit-gtk/buildlink3.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1642046248164700 Content-Disposition: inline Content-Length: 2291 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/www/webkit-gtk/Makefile diff -u pkgsrc/www/webkit-gtk/Makefile:1.218 pkgsrc/www/webkit-gtk/Makefile:1.219 --- pkgsrc/www/webkit-gtk/Makefile:1.218 Wed Dec 29 08:59:16 2021 +++ pkgsrc/www/webkit-gtk/Makefile Thu Jan 13 03:57:27 2022 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.218 2021/12/29 08:59:16 leot Exp $ +# $NetBSD: Makefile,v 1.219 2022/01/13 03:57:27 gutteridge Exp $ DISTNAME= webkitgtk-2.34.3 PKGNAME= ${DISTNAME:S/webkitgtk/webkit-gtk/} @@ -19,16 +19,27 @@ TOOL_DEPENDS+= gettext-tools>=0.18:../.. TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat USE_CMAKE= yes -USE_LANGUAGES= c c++11 +USE_LANGUAGES= c c++17 USE_TOOLS+= automake bash bison flex gmake perl pkg-config msgfmt # Enabling -gdwarf-2 hits GNU ar limits on file size. CTF_SUPPORTED= no -# GCC >= 7.3.0 is required, checked via CMakeLists.txt -GCC_REQD+= 7 +# GCC >= 8 is required, it no longer builds with lower versions. +GCC_REQD+= 8 USE_GCC_RUNTIME= yes +.include "../../mk/bsd.prefs.mk" + +# This package will link against libstdc++.so from the pkgsrc GCC when the +# base OS GCC doesn't meet the minimum requirement. Thus we do this so the +# appropriate gcc-libs package will be captured as a dependency, otherwise +# binary packages will be broken. See also PR pkg/56604. +.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099915 +USE_PKGSRC_GCC= yes +USE_PKGSRC_GCC_RUNTIME= yes +.endif + # Using ld.gold subverts Pkgsrc wrappers, and this package also crashes buggy # versions of ld.gold. CMAKE_ARGS+= -DUSE_LD_GOLD=OFF Index: pkgsrc/www/webkit-gtk/buildlink3.mk diff -u pkgsrc/www/webkit-gtk/buildlink3.mk:1.86 pkgsrc/www/webkit-gtk/buildlink3.mk:1.87 --- pkgsrc/www/webkit-gtk/buildlink3.mk:1.86 Wed Dec 29 08:59:16 2021 +++ pkgsrc/www/webkit-gtk/buildlink3.mk Thu Jan 13 03:57:27 2022 @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.86 2021/12/29 08:59:16 leot Exp $ +# $NetBSD: buildlink3.mk,v 1.87 2022/01/13 03:57:27 gutteridge Exp $ BUILDLINK_TREE+= webkit-gtk @@ -10,7 +10,7 @@ BUILDLINK_ABI_DEPENDS.webkit-gtk?= webki BUILDLINK_PKGSRCDIR.webkit-gtk?= ../../www/webkit-gtk # This is necessary to match the package requirement. -GCC_REQD+= 7.3 +GCC_REQD+= 8 pkgbase := webkit-gtk .include "../../mk/pkg-build-options.mk" --_----------=_1642046248164700--