Date: Thu, 14 Sep 2023 21:32:20 -0700 From: Mark Millard <marklmi@yahoo.com> To: FreeBSD Mailing List <freebsd-ports@freebsd.org> Cc: freebsd-arm <freebsd-arm@freebsd.org>, John F Carr <jfc@mit.edu>, Charlie Li <vishwin@freebsd.org>, Tatsuki Makino <tatsuki_makino@hotmail.com>, saper@aper.info, freebsd@quinteiro.org Subject: Re: Wow: Building the likes of devel/llvm16 now requires building rust first (when rust is out of date). . . A WORKAROUND Message-ID: <6557AA51-D4E2-4E30-B3B4-BA0B356D5343@yahoo.com> In-Reply-To: <5620735A-FB8A-4AFE-B4E4-32D0D8D58962@yahoo.com> References: <5620735A-FB8A-4AFE-B4E4-32D0D8D58962@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 13, 2023, at 23:20, Mark Millard <marklmi@yahoo.com> wrote: > Note: py39 is in use in my context. >=20 > Building devel/llvm16 requires building textproc/py-recommonmark@py39 > Building textproc/py-recommonmark@py39 requires building = textproc/py-sphinx@py39 > Building textproc/py-sphinx@py39 requires building = www/py-requests@py39 > Building www/py-requests@py39 requires building net/py-urllib3@py39 > Building net/py-urllib3@py39 requires building = security/py-openssl@py39 > Building security/py-openssl@py39 requires building = security/py-cryptography@py39 > Building security/py-cryptography@py39 requires building = devel/py-setuptools-rust@py39 > Building devel/py-setuptools-rust@py39 requires building lang/rust >=20 > Building devel/llvm16 and the like just got more > resource intensive for those not already building > lang/rust . Building lang/rust in my context uses > system-clang ( not a devel/llvm* ). So no loop in > my context. >=20 > I normally build rust anyway. But other folks may > have been avoiding such. >=20 I have the file (for other reasons): /usr/local/etc/poudriere.d/make.conf and I added to it: .if ${.CURDIR:M*/devel/llvm*} OPTIONS_UNSET=3DDOCS .endif This overrides the "always on" for DOCS for the various devel/llvm* . (In more complicated contexts +=3D would be appropriate i order to allow multiple assignments to accumulate.) This stopped the recommonmark use and, so, stopped the sequence of dependencies leading to lang/rust being required. This appears to do more than whatever John F Carr did to get it to report in his context: =3D=3D=3D> The following configuration options are available for = llvm17-17.0.0.r4: . . . DOCS=3Doff: Build and/or install documentation . . . (Likely normal style options file content was involved.) I did not make any such "normal style" OPTIONS changes and the log file for my build attempt reported: ---Begin OPTIONS List--- =3D=3D=3D> The following configuration options are available for = llvm17-17.0.0.r4: BE_AMDGPU=3Don: AMD GPU backend (required by mesa) BE_WASM=3Don: WebAssembly backend (required by firefox via wasi) CLANG=3Don: Build clang COMPILER_RT=3Don: Sanitizer libraries DOCS=3Doff: Build and/or install documentation EXTRAS=3Don: Extra clang tools FLANG=3Doff: Flang FORTRAN compiler GOLD=3Don: Build the LLVM Gold plugin for LTO LIT=3Don: Install lit and FileCheck test tools LLD=3Don: Install lld, the LLVM linker LLDB=3Don: Install lldb, the LLVM debugger MLIR=3Don: Multi-Level Intermediate Representation OPENMP=3Don: Install libomp, the LLVM OpenMP runtime library POLLY=3Don: Polyhedral loop and data-locality optimizer PYCLANG=3Don: Install python bindings to libclang STATIC_LIBS=3Don: Install static libraries (does not effect = sanitizers) =3D=3D=3D=3D> Options available for the single BACKENDS: you have to = select exactly one of them BE_FREEBSD=3Doff: Backends for FreeBSD architectures BE_NATIVE=3Doff: Backend(s) for this architecture (X86) BE_STANDARD=3Don: All non-experimental backends =3D=3D=3D> Use 'make config' to modify these settings ---End OPTIONS List--- The --PLIST_SUB-- section ended up listing: PORTDOCS=3D"@comment and: DOCS=3D"@comment " NO_DOCS=3D"" but still listed: DOCSDIR=3D"share/doc/llvm17" The --SUB_LIST-- section ended up listing: DOCS=3D"@comment " NO_DOCS=3D""= but still listed: DOCSDIR=3D/usr/local/share/doc/llvm17 FYI, without rust having been built, my first ever build of llvm17 (not reporting on the 49 prior poort->package builds before devel/llvm17 started): [00:43:30] Finished devel/llvm17@default | llvm17-17.0.0.r4: Success FYI: 5.14.1.3 Default Options in: = https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-opt= ions reports the always-on status for DOCS (and some more) but not the way(s) to override that status for specific ports. It seems that only some ways actually change the status to off --and I've found one such. =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6557AA51-D4E2-4E30-B3B4-BA0B356D5343>