From owner-freebsd-ports@freebsd.org Thu Dec 12 16:00:09 2019 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5EEFE1D52B7 for ; Thu, 12 Dec 2019 16:00:09 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47YdmT1G2Nz3KLw for ; Thu, 12 Dec 2019 16:00:09 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: by mailman.nyi.freebsd.org (Postfix) id 294791D52B6; Thu, 12 Dec 2019 16:00:09 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2904D1D52B5 for ; Thu, 12 Dec 2019 16:00:09 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47YdmS3sHMz3KLt for ; Thu, 12 Dec 2019 16:00:08 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from e.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3096 bits) server-digest SHA256) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 48064BA446; Thu, 12 Dec 2019 17:00:06 +0100 (CET) Received: (from lars@localhost) by e.0x20.net (8.15.2/8.15.2/Submit) id xBCG06Mn062258; Thu, 12 Dec 2019 17:00:06 +0100 (CET) (envelope-from lars) Date: Thu, 12 Dec 2019 17:00:06 +0100 From: Lars Engels To: "Kevin P. Neal" Cc: ports@freebsd.org Subject: Re: devel/llvm80 port on 12.1 Message-ID: <20191212160006.GN5400@e.0x20.net> References: <20191212154207.GL5400@e.0x20.net> <20191212155000.GA12110@neutralgood.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191212155000.GA12110@neutralgood.org> X-Editor: VIM - Vi IMproved 8.0 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47YdmS3sHMz3KLt X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of lars@e.0x20.net has no SPF policy when checking 46.251.251.56) smtp.mailfrom=lars@e.0x20.net X-Spamd-Result: default: False [-0.81 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.936,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.20)[ip: (-0.95), ipnet: 46.251.251.0/24(-0.48), asn: 31400(0.47), country: DE(-0.02)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[0x20.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.88)[-0.877,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[lars.engels@0x20.net,lars@e.0x20.net]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31400, ipnet:46.251.251.0/24, country:DE]; FROM_NEQ_ENVFROM(0.00)[lars.engels@0x20.net,lars@e.0x20.net]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2019 16:00:09 -0000 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.