Re: git: dcc6b13daedf - main - www/firefox: make dep on wasi-compiler-rt more flexible
- Reply: Christoph Moench-Tegeder : "Re: git: dcc6b13daedf - main - www/firefox: make dep on wasi-compiler-rt more flexible"
- In reply to: Christoph Moench-Tegeder : "git: dcc6b13daedf - main - www/firefox: make dep on wasi-compiler-rt more flexible"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Dec 2021 16:56:55 UTC
Moin! Under certain condition LLVM_VERSION and LLVM_DEFAULT will non set anyway and stops build. LTO=off, DEFAULT_VERSIONS+=llvm=<any> Not everyone loves and prefers LTO enabled :( -- Dima. (desktop, kde, x11, office, ports-secteam)@FreeBSD team (fluffy@FreeBSD.org, https://t.me/dima_panov) > On Tuesday, Nov 30, 2021 at 9:26 PM, Christoph Moench-Tegeder <cmt@FreeBSD.org (mailto:cmt@FreeBSD.org)> wrote: > The branch main has been updated by cmt: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=dcc6b13daedf095da6572c27af69713ee551cb81 > > commit dcc6b13daedf095da6572c27af69713ee551cb81 > Author: Christoph Moench-Tegeder <cmt@FreeBSD.org> > AuthorDate: 2021-11-30 18:22:07 +0000 > Commit: Christoph Moench-Tegeder <cmt@FreeBSD.org> > CommitDate: 2021-11-30 18:22:07 +0000 > > www/firefox: make dep on wasi-compiler-rt more flexible > > as firefox needs matching wasi-compiler-rt, embedded llvm in > rust and llvm for building and wasi-compiler-rt installs it's files > in a path depending on it's full distversion, we need to know > llvm/clang's full version. it's not possible to derive that > programatically, as the required llvm version may not be installed > at the time firefox' Makefile is being parsed. > --- > Mk/bsd.gecko.mk | 1 + > www/firefox/Makefile | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk > index b912e1aa7ade..b4500564c0ce 100644 > --- a/Mk/bsd.gecko.mk > +++ b/Mk/bsd.gecko.mk > @@ -95,6 +95,7 @@ MOZ_EXPORT+= LLVM_OBJDUMP="${LOCALBASE}/bin/llvm-objdump${LLVM_DEFAULT}" > # Ignore Mk/bsd.default-versions.mk but respect make.conf(5) unless LTO is enabled > .if !defined(DEFAULT_VERSIONS) || ! ${DEFAULT_VERSIONS:Mllvm*} || ${PORT_OPTIONS:MLTO} > LLVM_DEFAULT= 13 # chase bundled LLVM in lang/rust for LTO > +LLVM_VERSION= 13.0.0 # keep in sync with devel/wasi-compiler-rt${LLVM_DEFAULT} > .endif > # Require newer Clang than what's in base system unless user opted out > . if ${CC} == cc && ${CXX} == c++ && exists(/usr/lib/libc++.so) > diff --git a/www/firefox/Makefile b/www/firefox/Makefile > index b93ef4ba7e27..ab6318e47579 100644 > --- a/www/firefox/Makefile > +++ b/www/firefox/Makefile > @@ -27,7 +27,7 @@ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ > zip:archivers/zip \ > ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc++abi.a:devel/wasi-libcxx \ > ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc.a:devel/wasi-libc \ > - ${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/clang/${LLVM_DEFAULT}.0.0/lib/wasi/libclang_rt.builtins-wasm32.a:devel/wasi-compiler-rt${LLVM_DEFAULT} > + ${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/clang/${LLVM_VERSION}/lib/wasi/libclang_rt.builtins-wasm32.a:devel/wasi-compiler-rt${LLVM_DEFAULT} > > USE_GECKO= gecko > CONFLICTS_INSTALL= firefox-esr