From nobody Sat Mar 19 11:07:38 2022 X-Original-To: dev-commits-ports-main@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 8E8E01A12CED; Sat, 19 Mar 2022 11:07:38 +0000 (UTC) (envelope-from git@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 4KLJ4p3Yqzz4pqf; Sat, 19 Mar 2022 11:07:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647688058; 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=dkol/OtKZlNeWdcEzufiIb9vHc/nNkCwScRrVRKXqgs=; b=HkYHp7erSwLuqXtI2SN+G3VOqpey5zQOg33rnk63Q5v8Enpmgy+WXEyMovk04JsvjHtax4 dHbwE9a5PpzH96YnNMIcG1OxGuTXA6hHfx/hwmjD4AFUz+sx58gsEfp4CP29513009ZUE5 /u7e12cxzaS3zqycgkJNlTXBGN5KgOq1/zdGUD5nHd17u8OqhZbnte4VWroCWnzWu4EWRK fTjx2AY3hE84LHXmnFD/Qfo2leYl8+EY0sKGlmBHmJcYWH9O6xNvuPLwwCJoDsN2Q3s3mS l+bQcPq3mJa4Gyn7Zf6N/PXnQF5icxOHJI45p2JoavJf5hm4rzG04mCtlCAgRw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 5690E123A0; Sat, 19 Mar 2022 11:07:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22JB7cRh052849; Sat, 19 Mar 2022 11:07:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22JB7cie052848; Sat, 19 Mar 2022 11:07:38 GMT (envelope-from git) Date: Sat, 19 Mar 2022 11:07:38 GMT Message-Id: <202203191107.22JB7cie052848@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rene Ladan Subject: git: e0337a8a3562 - main - www/chromium: allow building with LTO on FreeBSD < 13.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rene X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e0337a8a3562485ec515325ba83b2a0015721a55 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647688058; 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=dkol/OtKZlNeWdcEzufiIb9vHc/nNkCwScRrVRKXqgs=; b=vRXUlvat2ikmFv8HqdAwGoXr6msUIOzimlW6WPFDvRkenxf9/XqFWkkhUFrp7SI8Wv+/1C r2JFlUFC+gUTY7Xpw33fF90W6cQyZw60uFzVBLR08s7cTtXUjg9oIRoilXJT8ekxsL1sPc NSvUUuq6/xeTo9onh0b53govA8TOfaQpI0WwkzvIMDKwNAYi/z9rl9tSUJEGlT5/Us9hMB lfj4VdmLWGLW5tXP+hOzM32zhpwSG8d94wDnSR6GIMEtUGtnZ7aqXRaSG99BGUY8kRxdJ8 Bd4DH74Rxfc+TXnvQU/TpVuashW0LcnGKSrO48KZN4YKoEHN0MuCRcRAahJ0NQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647688058; a=rsa-sha256; cv=none; b=HBBfn26rKzyGZDfmsz+rJFUjRETOg75uEQlao1apdsIGzLQNBqmERtYT2Q2WBYWggO/tvT F13jir5ZZk3E/eZRco2rLaD3nijEa5xz94ULh+/swtPD6C1LBL5WjhIDycOfDpcwbYM9rq AGlpPmnrWq5YTbSJqmkCctGdRojHllFuPaGqHa15z64zP66CxHXJHHUBB1ep4KUZ9MwTJT fYg711HrIg+YriDDu3WrqxAVSdwP0sGLIZCrXRVDsqPhD/OHNR5rKoAuvIkws0efcQ6ATb I1xn2h47R7ys++fGEACtzU17AZlSXHkpVFk3rx009QHlx+DVQQHUdjE93v2jlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rene: URL: https://cgit.FreeBSD.org/ports/commit/?id=e0337a8a3562485ec515325ba83b2a0015721a55 commit e0337a8a3562485ec515325ba83b2a0015721a55 Author: Robert Nagy AuthorDate: 2022-03-19 10:56:48 +0000 Commit: Rene Ladan CommitDate: 2022-03-19 11:07:30 +0000 www/chromium: allow building with LTO on FreeBSD < 13.1 --- www/chromium/Makefile | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 246377cf90a7..9708df9d5c33 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -13,7 +13,7 @@ COMMENT= Google web browser based on WebKit LICENSE= BSD3CLAUSE LGPL21 MPL11 LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 i386 +ONLY_FOR_ARCHS= aarch64 amd64 i386 BUILD_DEPENDS= bash:shells/bash \ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ @@ -78,9 +78,7 @@ SHEBANG_FILES= chrome/tools/build/linux/chrome-wrapper buildtools/linux64/clang- MAKE_ARGS= -C out/${BUILDTYPE} ALL_TARGET= chrome -BINARY_ALIAS= ar=/usr/bin/llvm-ar \ - nm=/usr/bin/llvm-nm \ - python3=${PYTHON_CMD} +BINARY_ALIAS= python3=${PYTHON_CMD} # TODO bz@ : install libwidevinecdm.so (see third_party/widevine/cdm/BUILD.gn) # @@ -127,7 +125,7 @@ GN_ARGS+= google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8" SUB_FILES= chromium-browser.desktop chrome SUB_LIST+= COMMENT="${COMMENT}" -OPTIONS_DEFINE= CODECS CUPS DEBUG DRIVER KERBEROS LTO TEST +OPTIONS_DEFINE= CODECS CUPS DEBUG DRIVER KERBEROS LTO TEST OPTIONS_DEFAULT= CODECS CUPS DRIVER KERBEROS SNDIO OPTIONS_EXCLUDE_aarch64=LTO OPTIONS_GROUP= AUDIO @@ -205,11 +203,18 @@ TEST_ALL_TARGET= ${TEST_TARGETS} IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base .endif -.if ${COMPILER_VERSION} < 120 - -.if ${PORT_OPTIONS:MLTO} -BROKEN+= does not build with LTO needs LLVM 12+ -.endif +.if ${COMPILER_VERSION} < 130 && ${PORT_OPTIONS:MLTO} +LLVM_DEFAULT= 13 +BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} +BINARY_ALIAS+= cpp=${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT} \ + cc=${LOCALBASE}/bin/clang${LLVM_DEFAULT} \ + c++=${LOCALBASE}/bin/clang++${LLVM_DEFAULT} \ + ar=${LOCALBASE}/bin/llvm-ar${LLVM_DEFAULT} \ + nm=${LOCALBASE}/bin/llvm-nm${LLVM_DEFAULT} \ + ld=${LOCALBASE}/bin/ld.lld${LLVM_DEFAULT} +.else +BINARY_ALIAS+= ar=/usr/bin/llvm-ar \ + nm=/usr/bin/llvm-nm .endif # swiftshader/lib/{libEGL.so,libGLESv2.so} is x86 only