From owner-freebsd-ports@freebsd.org Mon Jun 5 13:11:30 2017 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 583FAAF8E0D for ; Mon, 5 Jun 2017 13:11:30 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 049047DC65; Mon, 5 Jun 2017 13:11:29 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id v55DBOBI089210 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Jun 2017 15:11:24 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: matthew@FreeBSD.org Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id v55DBKNS021844 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 5 Jun 2017 20:11:20 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Pass options to dependency To: Matthew Seaman , freebsd-ports@freebsd.org References: <59352AB6.3040005@grosbein.net> <11954833-f1a3-f8d7-d482-7da1f5427b27@FreeBSD.org> From: Eugene Grosbein Message-ID: <59355862.6060007@grosbein.net> Date: Mon, 5 Jun 2017 20:10:58 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <11954833-f1a3-f8d7-d482-7da1f5427b27@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fk59JJIXiAD0K2WT0MDNnhff0u9fxxV1r" X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2017 13:11:30 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Fk59JJIXiAD0K2WT0MDNnhff0u9fxxV1r Content-Type: multipart/mixed; boundary="tqHmuOUtvXtjNKrulCAiI9mXtGW4DX0at"; protected-headers="v1" From: Eugene Grosbein To: Matthew Seaman , freebsd-ports@freebsd.org Message-ID: <59355862.6060007@grosbein.net> Subject: Re: Pass options to dependency References: <59352AB6.3040005@grosbein.net> <11954833-f1a3-f8d7-d482-7da1f5427b27@FreeBSD.org> In-Reply-To: <11954833-f1a3-f8d7-d482-7da1f5427b27@FreeBSD.org> --tqHmuOUtvXtjNKrulCAiI9mXtGW4DX0at Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 05.06.2017 18:51, Matthew Seaman =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On 05/06/2017 10:56, Eugene Grosbein wrote: >> How can a port (its Makefile) pass a build option to BUILD_DEPENDS? >> For example, devel/ragel has: >> >> DOCS_USE=3D TEX=3Dlatex:build >> DOCS_BUILD_DEPENDS=3D fig2dev:print/transfig >> >> And "make -C /usr/ports/devel/ragel all-depends-list" shows HUGE >> list of its dependencies completely unneded for a port that just >> needs to use BUILD_DEPENDS=3Dragel:devel/ragel >> >> The reason is that bsd.options.mk includes PORT_OPTIONS+=3D DOCS >> unless user option NOPORTDOCS is set. >> >> Is it possible to specify something like OPTIONS_EXCLUDE=3DDOCS >> for BUILD_DEPENDS entity? >> >=20 > Generally what you would do is create a slave port of the dependency > with the options settings you require. Doing this to turn off the DOCS= > option would be unprecedented though. >=20 > I believe the consensus nowadays is that DOCS should control installing= > documentation that takes little or no effort to generate. If you need > to install a huge dependency tree in order to generate documentation, > then that should be controlled using a different option. Whether to > have that option default to either ON or OFF is at the discretion of th= e > maintainer. >=20 > So my advice here is open a PR to get devel/ragel modified, and in the > mean time try and ignore all those unwanted dependencies while you work= > on your own port. It would be more useful to have general way to build a dependency with needed set of options or at least introduce NODEPDOCS similar to NOPORTDOCS, wouldn't it? Eugene Grosbein --tqHmuOUtvXtjNKrulCAiI9mXtGW4DX0at-- --Fk59JJIXiAD0K2WT0MDNnhff0u9fxxV1r Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJZNVhxAAoJELDNGvImmIsoqgcIAIsc0J8o0QMLPeW+uh9iwxe/ AkzJ/S8uWJymupBttaNG86KfIAC+HW7dUbA2Akhudxau/fZENeDXnxCVb+/P/5mF LQcS7GCAEUoaCTcllPpmpV5IVpRwj4IRvZt026EN9vGmPxNzHJiN6wJxT7vAwpGf s8pACuuHz3UsASC8BzzGLLGUpw2eyEDEazjsz93OIIYxXZYuQMSxf0sMzxf4lOx9 mPJFRev8eFab5WGg3FnCW3SuspD1OrzfGAJSTE9W/Q26K7u84dQUACgT3A2VNAxH i1oEFnXHHpl6/LXBM36z4V3kgHxJ5wHDDJGKDMEosKMv7eSBa5byOVlXtEZvvE4= =S4uB -----END PGP SIGNATURE----- --Fk59JJIXiAD0K2WT0MDNnhff0u9fxxV1r--