From owner-freebsd-ports@freebsd.org Fri Nov 2 21:15:11 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74ADF10DB99F for ; Fri, 2 Nov 2018 21:15:11 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from kipling.tavi.co.uk (kipling.tavi.co.uk [81.187.145.130]) by mx1.freebsd.org (Postfix) with ESMTP id EE5F77EFFC for ; Fri, 2 Nov 2018 21:15:10 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from kipling.tavi.co.uk (localhost [127.0.0.1]) by kipling.tavi.co.uk (Postfix) with ESMTP id 53E7FD78CE for ; Fri, 2 Nov 2018 21:15:01 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=tavi.co.uk; h=date:from:to :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=selector1; bh=KWYMLzG JoEM4S5AzQ2+SXGsl1c0=; b=UxX+Foj+1NU4xAjQMsGDEgmLeeGLBzYDvshKS9B qsJ0DYVSAXPKHEHNaos6aSYKy9pnsktGeVLlPfbxnlqDmr5uJZpCmbpHI7NUew/s Y6FmrPZCjeIZnLrEffwoay5rNl5m2xudXH/Ob2Lv8EwcsPNjvLMe8jQ2rnJFBZCn 1MF0= Received: from raksha.tavi.co.uk (raksha.tavi.co.uk [81.187.145.139]) (Authenticated sender: rde@tavi.co.uk) by kipling.tavi.co.uk (Postfix) with ESMTPA id 04327D78CC for ; Fri, 2 Nov 2018 21:15:00 +0000 (GMT) Date: Fri, 2 Nov 2018 21:15:00 +0000 From: Bob Eager To: freebsd-ports@freebsd.org Subject: Re: options DOCS + EXAMPLES Message-ID: <20181102211500.792225af@raksha.tavi.co.uk> In-Reply-To: <03c1b59a-1e79-8177-2c6e-dbdfe065b03a@omnilan.de> References: <07935967-fe29-c638-0bc3-2fd00cc9cee7@omnilan.de> <20181102102457.735xhicm32ghxpac@atuin.in.mat.cc> <03c1b59a-1e79-8177-2c6e-dbdfe065b03a@omnilan.de> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUwXjFLc0vD0cS7y7zw9PDZ4tkWSRaVrZZ+m39qi2tXfVj////7+/utwK4IPggAOAAJUUA7AAABKklEQVQ4jWPYjQMwDFYJp0NKEKCNJmEf9h8CsimXiL2e33s3/e7F7K2Cs3f3dCMkQkMKj4YuCY3K3iR+e7fMaiSjvkX0/5cFGrWpe2uLzOpaExUVqMS/8PX/Re5ey960OLBTZpFA8+IlSBKPQ92zNyUUBsosN58uIY0k8f+/ONCoYytkVuhWzVwNkYiYbqk5M3NmOVBi41YZ8RsGF7shEtFb5KJ3r969CyixM7OTPeFUxG2IxLO8/9/SvqXlc+/x3h295YzLlj2nIRJQj//nRvc5TEIal8RsXBLVuCQwIgoq/u80DomP6HEOk/iOS+IJLonZOCT+ReOQ+Lkbh0QKLonbOCR+7MYhsRqHBJrVcIl/1TgklqKLQyQ+tGKIgyQOqXpjig94diZRAgAXmDX6jyWafAAAAABJRU5ErkJggg====== MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2018 21:15:11 -0000 On Fri, 2 Nov 2018 11:33:11 +0100 Harry Schmalzbauer wrote: > Am 02.11.2018 um 11:24 schrieb Mathieu Arnold: > > On Fri, Nov 02, 2018 at 10:49:52AM +0100, Harry Schmalzbauer > > wrote: =20 > >> Hello, > >> > >> found out that the need to define DOCS and EXAMPLES in > >> OPTIONS_DEFINE was made mandatory some time ago, which > >> ports-mgmt/portlint isn't aware about yet (found > >> https://reviews.freebsd.org/D13036). > >> > >> I intentionally haven't defined it, because I want to make use of > >> the bsd.ports.mk handling of PORTDOCS and PORTEXAMPLES, but don't > >> want to spam the UI.=A0 EXAMPLES and DOCS shall stay mandatory for > >> my port, as long as the user changes the corresponding defaults. > >> > >> How do I hide the user selection for EXAMPLES and DOCS after the > >> change (which I wasn't able to find by reading commit logs)? =20 > >=20 > > I am not sure what you are asking. > >=20 > > To be able to use PORTDOCS or PORTEXAMPLES, you must define a DOCS > > or an EXAMPLES option. > >=20 > > The users must be allowed to choose if they want documentation or > > examples to be installed. If you personnaly do not want the options > > dialog to show up when you build ports, you can set BATCH in your > > environment. =20 >=20 > Thank you for your answer. > In my case, I have additional options, so I can't use BATCH. > Please see my opinion about the DOCS/EXAMPLES selection in the reply > to myself, where I reference the commit introducing this change and > where I explain why in many/most cases, I consider these > DOCS/EXAMPLES/NLS options as spam. Yes, but it's possible to turn off DOCS and EXAMPLES (and indeed any other named option) globally (for all ports). That can be useful when building for certain targets.