From owner-freebsd-ports@FreeBSD.ORG Sun Jun 3 19:21:01 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56132106564A for ; Sun, 3 Jun 2012 19:21:01 +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 EBF2D8FC08 for ; Sun, 3 Jun 2012 19:21:00 +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 q53JKNvL084003 for ; Sun, 3 Jun 2012 21:20:24 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 92ACE12356; Sun, 3 Jun 2012 21:20:23 +0200 (CEST) Date: Sun, 3 Jun 2012 21:20:23 +0200 From: Roland Smith To: freebsd-ports@freebsd.org Message-ID: <20120603192023.GA8350@slackbox.erewhon.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline 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 Subject: optionsng ignores /var/db/ports//options X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rsmith@xs4all.nl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2012 19:21:01 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Please cc me, since I'm not subscribed to this list. I originally asked th= is on questions@.] Hi, With the release of the new options framework for ports, I've run into a problem trying to convert one of my ports. The nature of the problem is that the port seems to ignore the setting stor= ed in /var/db/ports//options: I've used 'make config' to set the PYCAIRO option to on; 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 But the port seems to ignore it: slackbox# make showconfig =3D=3D=3D> The following configuration options are available for py27-py-st= l-3.1: PYCAIRO=3Doff: Use (py)Cairo to enable stl2pdf =3D=3D=3D> Use 'make config' to modify these settings slackbox# make -V PORT_OPTIONS DOCS EXAMPLES NLS Every time I do 'make config', the PYCAIRO option will be unset, even if it shows as set in /var/db/ports//options! My port Makefile is as follows: ------------ port Makefile ---------------- # New ports collection makefile for: py-stl # Date created: 28 Dec 2011 # Whom: rsmith@xs4all.nl # # $FreeBSD$ PORTNAME=3D py-stl PORTVERSION=3D 3.1 CATEGORIES=3D graphics python MASTER_SITES=3D http://rsmith.home.xs4all.nl/software/ PKGNAMEPREFIX=3D ${PYTHON_PKGNAMEPREFIX} MAINTAINER=3D rsmith@xs4all.nl COMMENT=3D Converts STL models to POV-Ray meshes or PostScript/PDF images USE_ZIP=3D YES USE_PYTHON=3D 2.5+ USE_PYDISTUTILS=3D YES CONFLICTS=3D stl2pov-[0-9]* MAN1=3D stl2ps.1 stlinfo.1 OPTIONS_DEFINE=3D PYCAIRO PYCAIRO_DESC=3D Use (py)Cairo to enable stl2pdf =2Einclude =2Eif ${PORT_OPTIONS:MPYCAIRO} RUN_DEPENDS+=3D ${PYTHON_PKGNAMEPREFIX}cairo>1.8:${PORTSDIR}/graphics/py-c= airo MAN1+=3D stl2pdf.1 PLIST_SUB+=3D STL2PDF=3D"" =2Eelse PLIST_SUB+=3D STL2PDF=3D"@comment " =2Eendif NO_BUILD=3D YES post-install: =2Eif ${PORT_OPTIONS:MPYCAIRO} @${INSTALL_MAN} ${WRKSRC}/stl2pdf.1 ${MANPREFIX}/man/man1 @${MV} ${PREFIX}/bin/stl2pdf.py ${PREFIX}/bin/stl2pdf =2Eelse @${RM} -f ${PREFIX}/bin/stl2pdf.py @${RM} -f ${MANPREFIX}/man/man1/stl2pdf.1* =2Eendif @${INSTALL_MAN} ${WRKSRC}/stl2ps.1 ${MANPREFIX}/man/man1 @${INSTALL_MAN} ${WRKSRC}/stlinfo.1 ${MANPREFIX}/man/man1 @${MV} ${PREFIX}/bin/stl2ps.py ${PREFIX}/bin/stl2ps @${MV} ${PREFIX}/bin/stl2pov.py ${PREFIX}/bin/stl2pov @${MV} ${PREFIX}/bin/stlinfo.py ${PREFIX}/bin/stlinfo @${MV} ${PYTHON_SITELIBDIR}/py_stl-${PORTVERSION}-py${PYTHON_VER}.egg-info= ${PYTHON_SITELIBDIR}/${PYDISTUTILS_EGGINFO} =2Einclude ------------ port Makefile ---------------- I've looked at other ports makefiles and see no obvious defects. Help? 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) --opJtzjQTFsWo+cga Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/LuPcACgkQEnfvsMMhpyVWAQCfc6S4ZPpwiD7m7WeYNsn94VzU XJEAoJQM6o2ZDUJUbfuEdHSkf7qNNV4/ =FXF8 -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--