From owner-freebsd-questions@FreeBSD.ORG Mon Jun 4 18:33:06 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C8911065673; Mon, 4 Jun 2012 18:33:06 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id 45FCD8FC0C; Mon, 4 Jun 2012 18:33:06 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id q54IWYjJ090046; Mon, 4 Jun 2012 20:32:35 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id CCA5012341; Mon, 4 Jun 2012 20:32:34 +0200 (CEST) Date: Mon, 4 Jun 2012 20:32:34 +0200 From: Roland Smith To: Matthew Seaman Message-ID: <20120604183234.GC14162@slackbox.erewhon.net> References: <20120603160518.GA6631@slackbox.erewhon.net> <4FCBAA72.7020103@FreeBSD.org> <20120603191003.GA8028@slackbox.erewhon.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5G06lTa6Jq83wMTw" Content-Disposition: inline In-Reply-To: <20120603191003.GA8028@slackbox.erewhon.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: [SOLVED] Re: optionsng ignores /var/db/ports//options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 18:33:06 -0000 --5G06lTa6Jq83wMTw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 03, 2012 at 09:10:03PM +0200, Roland Smith wrote: > On Sun, Jun 03, 2012 at 07:18:26PM +0100, Matthew Seaman wrote: > > On 03/06/2012 17:05, Roland Smith wrote: > > > I've used 'make config' to set the PYCAIO option to on; > > >=20 > > > slackbox# cat /var/db/ports/py27-py-stl/options > > > # This file is auto-generated by 'make config'. > > > # Options for py27-py-stl-3.1 > > > _OPTIONS_READ=3Dpy27-py-stl-3.1 > > > _FILE_COMPLETE_OPTIONS_LIST=3DPYCAIRO > > > OPTIONS_FILE_SET+=3DPYCAIRO > > >=20 > > > But the port seems to ignore it: > > >=20 > > > slackbox# make showconfig > > > =3D=3D=3D> The following configuration options are available for py27= -py-stl-3.1: > > > PYCAIRO=3Doff: Use (py)Cairo to enable stl2pdf > > > =3D=3D=3D> Use 'make config' to modify these settings > > >=20 > > > Every time I do 'make config', the PYCAIRO option will be unset, even= if it > > > shows as set in /var/db/ports//options! > >=20 > > What does > >=20 > > % make -V PORT_OPTIONS >=20 > slackbox# pwd > /usr/ports/graphics/py-stl > slackbox# make -V PORT_OPTIONS > DOCS EXAMPLES NLS > =20 > > show? If PYCAIRO is set in PORT_OPTIONS, then the port is accepting > > your setting of the option, and you've found a bug with the showconfig > > target. (If so, please open a PR.) Well, it was a bug, but not particularly in showconfig alone, see below. =20 > > If not, then something odd is happening, as your port looks perfectly OK > > to me. Are you using a ports tree updated within about the last 48 hou= rs > > or so? I know there were some bug fixes went in to all FOO_DESC lines = to > > contain (brackets) and other syntactically significant characters. >=20 > I updated my ports tree this afternoon. The really weird thing is that I > tested 'make config' in several other ports where it worked fine... >=20 > > PS. Asking this on freebsd-ports@... might be a good idea. The bad news is that it was a bug in the ports system. It turned out that because of the way the unique name of the port was set (which happens twice= ), the options file is not read from the same directory that it is written to! Thanks to Baptiste Daroussin for clueing me in in this. I've gained a new respect for the people maintaining the ports infrastructure. :-) It's kind = of amazing it works as well as it does. The good news is that there are several workarounds. For future reference, = the workaround that I ended up using was to set the following variable in the p= ort makefile: OPTIONSFILE=3D ${PORT_DBDIR}/py27-${PORTNAME}/options Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --5G06lTa6Jq83wMTw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/M/0IACgkQEnfvsMMhpyVSbACdEMnyLRRp9MS8HwpGycuw15TF UroAnRA0ZTYl7KlZuEshzLO4lP1+rIbt =cmQN -----END PGP SIGNATURE----- --5G06lTa6Jq83wMTw--