On Thu, Dec 12, 2019 at 10:50:00AM -0500, Kevin P. Neal wrote: > On Thu, Dec 12, 2019 at 04:42:07PM +0100, Lars Engels wrote: > > I'm trying reduce the size of the NomadBSD image and the biggest > > installed package is devel/llvm80 with 848 MiB. > > llvm80 is a dependency of graphics/mesa-dri which is needed for > > x11-servers/xorg-server. > > As a build dependency or a run-time dependency? If build only then you can > remove it assuming you are using packages.
mesa-dri's Makefile.common has: USE+= compiler:c++11-lib .if ${LLVM_DEFAULT:S,-devel,990,} >= 90 LLVM_DEFAULT= 80 .endif .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Marm*} || ${ARCH} == i386 || ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} BUILD_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT} .if ${COMPONENT} != libs RUN_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT} .endif CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT} LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib CONFIGURE_ARGS+= --enable-llvm .else CONFIGURE_ARGS+= --disable-llvm .endif and Makefile has: .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Marm*} || ${ARCH} == i386 || ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} GALLIUM_DRIVERS= SWRAST # llvmpipe > > > Looking at the llvm version of 12.1-RELEASE in base I see that it is the > > same version like the installed port: > > > So it looks like on 12.1 the mesa-dri port can use the base llvm instead > > of the one from ports and save all people running Xorg almost 1 GB of > > disk space? > > Does the base clang have all the features that the ports/packages clang > has? They may have left out bits of clang that are not needed for the > base system. > > That may be why the port is required by something graphics related. That could be. Maybe someone from x11@ knows more. _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"