Re: devel/llvm80 port on 12.1
On Thu, Dec 12, 2019 at 06:06:52PM +0100, Jan Beich wrote: > Lars Engels writes: > > > 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 patch in bug 242607 help? Yes, thank you. It works for me on my Thinkpad T450s with HD Graphics 5500. I wonder if that's also true for AMD and nvidia users. ___ 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"
Re: devel/llvm80 port on 12.1
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. > > Looking at the llvm version of 12.1-RELEASE in base I see that it is the > same version like the installed port: > > $ /usr/bin/clang --version > FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM > 8.0.1) > Target: x86_64-unknown-freebsd12.1 > Thread model: posix > InstalledDir: /usr/bin > > $ /usr/local/llvm80/bin/clang --version > clang version 8.0.1 (tags/RELEASE_801/final) > Target: x86_64-portbld-freebsd12.0 > Thread model: posix > InstalledDir: /usr/local/llvm80/bin > > 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? Nope. Mesa uses LLVM library ABIs which provide NO stability guarantees so we can not publish them as part of the release without locking the branch to a single LLVM version for the 5-year life (we effectively tried that with 10.x, it was terrible with many ports requiring workarounds for the increasingly obsolete base compiler). If you want to save space here, help out on the subpackage work so you only need to depend on the libraries. https://reviews.freebsd.org/D16457 -- Brooks signature.asc Description: PGP signature
Re: devel/llvm80 port on 12.1
Lars Engels writes: > 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 patch in bug 242607 help? ___ 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"
Re: devel/llvm80 port on 12.1
Lars Engels wrote: > 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: >>> 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. > Not x11@, but the short answer is: no. See https://wiki.freebsd.org/WhyDoIHaveToBuildLLVMWhenIAlreadyHaveClangInstalled The long-ish answer is that software graphics rendering and a few other use cases require LLVM libraries not included in base. Base only includes enough to make clang, lld and lldb function, that's it. -- Charlie Li …nope, still don't have an exit line. (This email address is for mailing list use; replace local-part with vishwin for off-list communication if possible) signature.asc Description: OpenPGP digital signature
Re: devel/llvm80 port on 12.1
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"
devel/llvm80 port on 12.1
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. Looking at the llvm version of 12.1-RELEASE in base I see that it is the same version like the installed port: $ /usr/bin/clang --version FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) Target: x86_64-unknown-freebsd12.1 Thread model: posix InstalledDir: /usr/bin $ /usr/local/llvm80/bin/clang --version clang version 8.0.1 (tags/RELEASE_801/final) Target: x86_64-portbld-freebsd12.0 Thread model: posix InstalledDir: /usr/local/llvm80/bin 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? -- Lars ___ 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"