Date: Mon, 5 Jun 2017 12:51:28 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: Pass options to dependency Message-ID: <11954833-f1a3-f8d7-d482-7da1f5427b27@FreeBSD.org> In-Reply-To: <59352AB6.3040005@grosbein.net> References: <59352AB6.3040005@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9eIND6VqKBMgtGLv3v06J2QIxtUHIM3Ja Content-Type: multipart/mixed; boundary="C3IB4wauKFvgbkwhFkr6pAvhtg4rcW30I"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11954833-f1a3-f8d7-d482-7da1f5427b27>