Date: Thu, 12 Dec 2019 17:00:06 +0100 From: Lars Engels <lars.engels@0x20.net> To: "Kevin P. Neal" <kpn@neutralgood.org> Cc: ports@freebsd.org Subject: Re: devel/llvm80 port on 12.1 Message-ID: <20191212160006.GN5400@e.0x20.net> In-Reply-To: <20191212155000.GA12110@neutralgood.org> References: <20191212154207.GL5400@e.0x20.net> <20191212155000.GA12110@neutralgood.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191212160006.GN5400>