From owner-freebsd-ports@freebsd.org Mon Jun 5 11:51:10 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 B3333BFD0D9 for ; Mon, 5 Jun 2017 11:51:10 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A5177B3BC for ; Mon, 5 Jun 2017 11:51:10 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [31.221.87.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id CA5D582B2 for ; Mon, 5 Jun 2017 11:50:59 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/CA5D582B2; dkim=none; dkim-atps=neutral Subject: Re: Pass options to dependency To: freebsd-ports@freebsd.org References: <59352AB6.3040005@grosbein.net> From: Matthew Seaman Message-ID: <11954833-f1a3-f8d7-d482-7da1f5427b27@FreeBSD.org> Date: Mon, 5 Jun 2017 12:51:28 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <59352AB6.3040005@grosbein.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9eIND6VqKBMgtGLv3v06J2QIxtUHIM3Ja" 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 11:51:10 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9eIND6VqKBMgtGLv3v06J2QIxtUHIM3Ja Content-Type: multipart/mixed; boundary="C3IB4wauKFvgbkwhFkr6pAvhtg4rcW30I"; protected-headers="v1" From: Matthew Seaman To: freebsd-ports@freebsd.org Message-ID: <11954833-f1a3-f8d7-d482-7da1f5427b27@FreeBSD.org> Subject: Re: Pass options to dependency References: <59352AB6.3040005@grosbein.net> In-Reply-To: <59352AB6.3040005@grosbein.net> --C3IB4wauKFvgbkwhFkr6pAvhtg4rcW30I Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable 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: >=20 > DOCS_USE=3D TEX=3Dlatex:build > DOCS_BUILD_DEPENDS=3D fig2dev:print/transfig >=20 > 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 >=20 > The reason is that bsd.options.mk includes PORT_OPTIONS+=3D DOCS > unless user option NOPORTDOCS is set. >=20 > 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. 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 the maintainer. 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. Cheers, Matthew --C3IB4wauKFvgbkwhFkr6pAvhtg4rcW30I-- --9eIND6VqKBMgtGLv3v06J2QIxtUHIM3Ja Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJZNUXBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATEhoQAK7tu97qh6Hl/wQdXlLoYp0Z +O4pZUf3/Uig47xB9nKk3jTCR5l326gzs4opNBRM+at5gz9eluEolpexYdxrrkFY jVP3z1izXpT7d34OCefPa9EGMb36Bt8MheyJxnwjl2ZHkoxLVkm5waNILpqKtH8o 53Alnzxuv/sdGjYkpP77PMKSiNpYECc+juHioQYgrYCBQ+wNBbiX2+gkQ6xeO/lY D+34H2mIhAoN2nJ17s4wOzKSYJh8qXQHTQ5UK7DJq7C6NM2TKcbBSDVdYso+Liz5 WQ1ZbBLd3G/0OSvuOrSjsXKV0l97o/s2ok5/yZEjICIJiLRsUc3Wk+16D9vVPqYw zXYp9LBIFaJ9u/Cv2SsGfGiE11GgTyOln5H1yg9sksJAxXh1s97VJaH7CXQosYNw 2/pSjt9lY25+c6hbx6B3gvt/JtRFWUDnwOSVs7762Unjmj1JbEk4yZA/96/UAAt3 vIF+MvfA7PGYCrwbySYTXvMAFCBvt42bFRpmYPqnYg2UkBxuJ4a154hjUNQrHpBj 4lHL2O7Kt+8PTQ3nQ1uzg7OYkHd0F0SMAxzdLh1VNZAi7cH2dzct1m6eqbeZ83WM iqig3JYzVPYBAe/JcVBOBZIDYsEV+hhJIjvFWFASJkdo687td8RcEnhrRZbqsgPM dQQCjJ47qFBLur85Szta =BVox -----END PGP SIGNATURE----- --9eIND6VqKBMgtGLv3v06J2QIxtUHIM3Ja--