From owner-freebsd-ports@freebsd.org Sat Mar 12 16:38:15 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6814EACE204 for ; Sat, 12 Mar 2016 16:38:15 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4CF0A8BF for ; Sat, 12 Mar 2016 16:38:15 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4C1C2ACE203; Sat, 12 Mar 2016 16:38:15 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4BC2BACE202 for ; Sat, 12 Mar 2016 16:38:15 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay103.isp.belgacom.be (mailrelay103.isp.belgacom.be [195.238.20.130]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A4EC78BE for ; Sat, 12 Mar 2016 16:38:14 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DqBgB8RORW/9O/8VFdgz6BP7wqhg0CgSY9EAEBAQEBAQFkJ4RCAQEEIzMjEAsYAgIFIQICDyoeBhOIKK40jnkBAQEBAQUBAQEBARt8iV6BN4MBgwKBOgWXS412bo4hjn03K4IDDQyBSTsuiXQBAQE Received: from 211.191-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.191.211]) by relay.skynet.be with ESMTP; 12 Mar 2016 17:37:02 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id u2CGb1hY014343; Sat, 12 Mar 2016 17:37:02 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Sat, 12 Mar 2016 17:37:01 +0100 From: Tijl Coosemans To: Martin =?UTF-8?B?V2FzY2hiw7xzY2g=?= Cc: ports@freebsd.org Subject: Re: print/cups overhaul (PR 207746) side-effects Message-ID: <20160312173701.5581b820@kalimero.tijl.coosemans.org> In-Reply-To: <537AB8F5-D4EE-4778-B169-43D3A7DA9F73@waschbuesch.de> References: <20160312141059.575582ec@kalimero.tijl.coosemans.org> <537AB8F5-D4EE-4778-B169-43D3A7DA9F73@waschbuesch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2016 16:38:15 -0000 On Sat, 12 Mar 2016 16:41:47 +0100 Martin Waschb=C3=BCsch wrote: > Am 12.03.2016 um 14:10 schrieb Tijl Coosemans : >> On Fri, 11 Mar 2016 20:52:08 +0100 Martin Waschb=C3=BCsch wrote: =20 >>> I just did a rebuild of packages for my webservers with poudriere. >>> What I noticed was that via the print/cups overhaul (see PR 207746), >>> quite a lot (>50) of additional dependencies are added to the system, >>> including lots of x11 related libs, avahi, dbus, cairo, opengl, etc. >>>=20 >>> This stems from installing pecl-imagick which results in pulling in >>> ImageMagick, ghostscript, and cups. >>>=20 >>> Now, of course I can manually remove port options and reduce the number >>> of additional dependencies, but I feel uneasy about the defaults now. >>>=20 >>> If I wanted to adjust an existing port to be less greedy with regards >>> to dependencies, how would I go about that? Create a slave port? =20 >>=20 >> print/cups has its X11 option disabled by default. It does depend on >> devel/dbus which has its X11 option enabled by default, but this only >> pulls in a few X11 dependencies, definitely not cairo. =20 >=20 > That is not true. Cairo does get pulled in. >=20 > Steps to recreate (on a 10.2 build box): >=20 > $ poudriere ports -c -p HEAD > $ poudriere jail -c -v 10.2-RELEASE -j test -p HEAD >=20 > just to be safe, I add: >=20 > $ echo "OPTIONS_UNSET+=3D X11" > /usr/local/etc/poudriere.d/test-make.conf >=20 > select the one port to build: >=20 > $ echo "print/cups" > /usr/local/etc/poudriere.d/test-port-list > $ poudriere options -j test -p HEAD -f /usr/local/etc/poudriere.d/test-po= rt-list >=20 > Then do a dry-run: >=20 > $ poudriere bulk -n -j test -p HEAD -f /usr/local/etc/poudriere.d/test-po= rt-list >=20 > This ends up telling me that the following 126 ports would be built: I see. It's a build dependency of gobject-introspection, but not a run dependency so it shouldn't get installed when you install the cups package. If you don't need Zeroconf support you can disable the AVAHI option in print/cups. If you do want it you can disable the OPENGL option in graphics/cairo. That should take out the most expensive dependencies like llvm.