From owner-freebsd-ports@FreeBSD.ORG Sun Jun 3 20:01:04 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D43E01065674 for ; Sun, 3 Jun 2012 20:01:04 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B6E0D8FC0C; Sun, 3 Jun 2012 20:01:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q53K14pZ050363; Sun, 3 Jun 2012 20:01:04 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q53K14Te050345; Sun, 3 Jun 2012 20:01:04 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Sun, 3 Jun 2012 22:01:01 +0200 From: Baptiste Daroussin To: Roland Smith Message-ID: <20120603200101.GB98939@ithaqua.etoilebsd.net> References: <20120603192023.GA8350@slackbox.erewhon.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dc+cDN39EJAMEtIO" Content-Disposition: inline In-Reply-To: <20120603192023.GA8350@slackbox.erewhon.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@FreeBSD.org Subject: Re: optionsng ignores /var/db/ports//options X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2012 20:01:05 -0000 --dc+cDN39EJAMEtIO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 03, 2012 at 09:20:23PM +0200, Roland Smith wrote: > [Please cc me, since I'm not subscribed to this list. I originally asked = this > on questions@.] >=20 > Hi, >=20 > With the release of the new options framework for ports, I've run into a > problem trying to convert one of my ports. >=20 > The nature of the problem is that the port seems to ignore the setting st= ored > in /var/db/ports//options: >=20 > I've used 'make config' to set the PYCAIRO 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 > slackbox# make -V PORT_OPTIONS > DOCS EXAMPLES NLS >=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 > 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$ >=20 > 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} >=20 > MAINTAINER=3D rsmith@xs4all.nl > COMMENT=3D Converts STL models to POV-Ray meshes or PostScript/PDF images >=20 > USE_ZIP=3D YES > USE_PYTHON=3D 2.5+ > USE_PYDISTUTILS=3D YES >=20 > CONFLICTS=3D stl2pov-[0-9]* >=20 > MAN1=3D stl2ps.1 stlinfo.1 >=20 > OPTIONS_DEFINE=3D PYCAIRO > PYCAIRO_DESC=3D Use (py)Cairo to enable stl2pdf >=20 > .include >=20 > .if ${PORT_OPTIONS:MPYCAIRO} > RUN_DEPENDS+=3D ${PYTHON_PKGNAMEPREFIX}cairo>1.8:${PORTSDIR}/graphics/py= -cairo > MAN1+=3D stl2pdf.1 > PLIST_SUB+=3D STL2PDF=3D"" > .else > PLIST_SUB+=3D STL2PDF=3D"@comment " > .endif >=20 > NO_BUILD=3D YES >=20 > post-install: > .if ${PORT_OPTIONS:MPYCAIRO} > @${INSTALL_MAN} ${WRKSRC}/stl2pdf.1 ${MANPREFIX}/man/man1 > @${MV} ${PREFIX}/bin/stl2pdf.py ${PREFIX}/bin/stl2pdf > .else > @${RM} -f ${PREFIX}/bin/stl2pdf.py > @${RM} -f ${MANPREFIX}/man/man1/stl2pdf.1* > .endif > @${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-in= fo ${PYTHON_SITELIBDIR}/${PYDISTUTILS_EGGINFO} >=20 > .include > ------------ port Makefile ---------------- >=20 > I've looked at other ports makefiles and see no obvious defects. Help? >=20 > 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) You found a nice bug. The options file is read the thing is that the UNIQUENAME is changed is py-py-stl when the optionsfile is read and it is py27-py-stl when it is wri= tten. I don't know why yet, I'll fix it asap. regards, Bapt --dc+cDN39EJAMEtIO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/Lwn0ACgkQ8kTtMUmk6EytwACgnsifIqmgNwtOdiRS0Kun1Ny4 HxgAnAj2Omg5gQGqlJI/F6madG31/O9w =zuV9 -----END PGP SIGNATURE----- --dc+cDN39EJAMEtIO--