Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Mar 2016 17:37:01 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Martin =?UTF-8?B?V2FzY2hiw7xzY2g=?= <martin@waschbuesch.de>
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:  <CEEB1AD3-D620-45C5-88AD-9B3DAE68DA79@waschbuesch.de> <20160312141059.575582ec@kalimero.tijl.coosemans.org> <537AB8F5-D4EE-4778-B169-43D3A7DA9F73@waschbuesch.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 12 Mar 2016 16:41:47 +0100 Martin Waschb=C3=BCsch <martin@waschbues=
ch.de> wrote:
> Am 12.03.2016 um 14:10 schrieb Tijl Coosemans <tijl@FreeBSD.org>:
>> On Fri, 11 Mar 2016 20:52:08 +0100 Martin Waschb=C3=BCsch <martin@waschb=
uesch.de> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160312173701.5581b820>