Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2012 11:55:54 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: OPTIONS framework unwell? Additional ports installed unexpectedly
Message-ID:  <20120602095554.GU85232@ithaqua.etoilebsd.net>
In-Reply-To: <20120602035757.GB4052@rwpc13.mby.riverwillow.net.au>
References:  <20120602035757.GB4052@rwpc13.mby.riverwillow.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--aZ/0/p6gSDXwzas7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jun 02, 2012 at 01:57:58PM +1000, John Marshall wrote:
> I just had a whole bunch of ports install unexpectedly.
>=20
>   portmaster -D -r png-1.4.11
>=20
> One of the ports that pulled in for rebuilding was graphics/php5-gd.
> That's fair enough, and it is depended on by lang/php5-extensions, so
> that got pulled in too.  That's fine, but then php5-extensions pulled in
> all of the other "default" extensions to *install* - all of the ones a
> have deselected in my config.
>=20
> =3D=3D=3D>>> Done updating ports that depend on png-1.4.11=20
>=20
> =3D=3D=3D>>> The following actions were performed:
> 	Upgrade of png-1.4.11 to png-1.5.10
> 	Upgrade of gd-2.0.35_7,1 to gd-2.0.35_8,1
> 	Upgrade of p5-GD-2.46 to p5-GD-2.46_1
> 	Installation of archivers/php5-phar (php5-phar-5.4.3)
> 	Installation of databases/php5-pdo_sqlite (php5-pdo_sqlite-5.4.3)
> 	Installation of databases/php5-sqlite3 (php5-sqlite3-5.4.3)
> 	Installation of devel/php5-json (php5-json-5.4.3)
> 	Installation of devel/php5-tokenizer (php5-tokenizer-5.4.3)
> 	Re-installation of php5-gd-5.4.3
> 	Installation of security/php5-filter (php5-filter-5.4.3)
> 	Installation of sysutils/php5-posix (php5-posix-5.4.3)
> 	Installation of textproc/php5-simplexml (php5-simplexml-5.4.3)
> 	Installation of textproc/php5-xmlreader (php5-xmlreader-5.4.3)
> 	Installation of textproc/php5-xmlwriter (php5-xmlwriter-5.4.3)
> 	Re-installation of php5-extensions-1.7
> 	Upgrade of rrdtool-1.2.30_1 to rrdtool-1.2.30_2
> 	Upgrade of webalizer-geoip-2.23.5 to webalizer-geoip-2.23.5_1
>=20
> So, what happened?  Those extensions OPTIONS are all disabled in my
> config.
>=20
> rwsrv03# cd /usr/ports/lang/php5-extensions
> rwsrv03# make showconfig
> =3D=3D=3D> The following configuration options are available for php5-ext=
ensions-1.7:
>      BCMATH=3Doff: "bc style precision math functions"
>      BZ2=3Doff: "bzip2 library support"
>      CALENDAR=3Don: "calendar conversion support"
>      CTYPE=3Don: "ctype functions"
>      CURL=3Doff: "CURL support"
>      DBA=3Doff: "dba support"
>      DOM=3Don: "DOM support"
>      EXIF=3Doff: "EXIF support"
>      FILEINFO=3Doff: "fileinfo support"
>      FILTER=3Doff: "input filter support"
>      FTP=3Doff: "FTP support"
>      GD=3Don: "GD library support"
>      GETTEXT=3Don: "gettext library support"
>      GMP=3Doff: "GNU MP support"
>      HASH=3Don: "HASH Message Digest Framework"
>      ICONV=3Don: "iconv support"
>      IMAP=3Doff: "IMAP support"
>      INTERBASE=3Doff: "Interbase 6 database support (Firebird)"
>      JSON=3Doff: "JavaScript Object Serialization support"
>      LDAP=3Don: "OpenLDAP support"
>      MBSTRING=3Don: "multibyte string support"
>      MCRYPT=3Doff: "Encryption support"
>      MSSQL=3Doff: "MS-SQL database support"
>      MYSQL=3Don: "MySQL database support"
>      MYSQLI=3Don: "MySQLi database support"
>      ODBC=3Doff: "ODBC support"
>      OPENSSL=3Don: "OpenSSL support"
>      PCNTL=3Doff: "pcntl support (CLI only)"
>      PDF=3Doff: "PDFlib support (implies GD)"
>      PDO=3Don: "PHP Data Objects Interface (PDO)"
>      PDO_SQLITE=3Doff: "PDO sqlite driver"
>      PGSQL=3Don: "PostgreSQL database support"
>      PHAR=3Doff: "phar support"
>      POSIX=3Doff: "POSIX-like functions"
>      PSPELL=3Doff: "pspell support"
>      READLINE=3Don: "readline support (CLI only)"
>      RECODE=3Doff: "recode support"
>      SESSION=3Don: "session support"
>      SHMOP=3Doff: "shmop support"
>      SIMPLEXML=3Doff: "simplexml support"
>      SNMP=3Doff: "SNMP support"
>      SOAP=3Doff: "SOAP support"
>      SOCKETS=3Doff: "sockets support"
>      SQLITE3=3Doff: "sqlite3 support"
>      SYBASE_CT=3Doff: "Sybase database support"
>      SYSVMSG=3Doff: "System V message support"
>      SYSVSEM=3Doff: "System V semaphore support"
>      SYSVSHM=3Doff: "System V shared memory support"
>      TIDY=3Doff: "TIDY support"
>      TOKENIZER=3Doff: "tokenizer support"
>      WDDX=3Doff: "WDDX support (implies XML)"
>      XML=3Don: "XML support"
>      XMLREADER=3Doff: "XMLReader support"
>      XMLRPC=3Doff: "XMLRPC-EPI support"
>      XMLWRITER=3Doff: "XMLWriter support"
>      XSL=3Don: "XSL support (Implies DOM)"
>      ZIP=3Doff: "ZIP support"
>      ZLIB=3Don: "ZLIB support"
> =3D=3D=3D> Use 'make config' to modify these settings
>=20
> rwsrv03#=20
> rwsrv03# cat /var/db/ports/php5-extensions/options
> # This file is auto-generated by 'make config'.
> # Options for php5-extensions-1.7
> _OPTIONS_READ=3Dphp5-extensions-1.7
> _FILE_COMPLETE_OPTIONS_LIST=3DBCMATH BZ2 CALENDAR CTYPE CURL DBA DOM EXIF=
 FILEINFO FILTER FTP GD GETTEXT GMP HASH ICONV IMAP INTERBASE JSON LDAP MBS=
TRING MCRYPT MSSQL MYSQL MYSQLI ODBC OPENSSL PCNTL PDF PDO PDO_SQLITE PGSQL=
 PHAR POSIX PSPELL READLINE RECODE SESSION SHMOP SIMPLEXML SNMP SOAP SOCKET=
S SQLITE3 SYBASE_CT SYSVMSG SYSVSEM SYSVSHM TIDY TOKENIZER WDDX XML XMLREAD=
ER XMLRPC XMLWRITER XSL ZIP ZLIB
> OPTIONS_FILE_UNSET+=3DBCMATH
> OPTIONS_FILE_UNSET+=3DBZ2
> OPTIONS_FILE_SET+=3DCALENDAR
> OPTIONS_FILE_SET+=3DCTYPE
> OPTIONS_FILE_UNSET+=3DCURL
> OPTIONS_FILE_UNSET+=3DDBA
> OPTIONS_FILE_SET+=3DDOM
> OPTIONS_FILE_UNSET+=3DEXIF
> OPTIONS_FILE_UNSET+=3DFILEINFO
> OPTIONS_FILE_UNSET+=3DFILTER
> OPTIONS_FILE_UNSET+=3DFTP
> OPTIONS_FILE_SET+=3DGD
> OPTIONS_FILE_SET+=3DGETTEXT
> OPTIONS_FILE_UNSET+=3DGMP
> OPTIONS_FILE_SET+=3DHASH
> OPTIONS_FILE_SET+=3DICONV
> OPTIONS_FILE_UNSET+=3DIMAP
> OPTIONS_FILE_UNSET+=3DINTERBASE
> OPTIONS_FILE_UNSET+=3DJSON
> OPTIONS_FILE_SET+=3DLDAP
> OPTIONS_FILE_SET+=3DMBSTRING
> OPTIONS_FILE_UNSET+=3DMCRYPT
> OPTIONS_FILE_UNSET+=3DMSSQL
> OPTIONS_FILE_SET+=3DMYSQL
> OPTIONS_FILE_SET+=3DMYSQLI
> OPTIONS_FILE_UNSET+=3DODBC
> OPTIONS_FILE_SET+=3DOPENSSL
> OPTIONS_FILE_UNSET+=3DPCNTL
> OPTIONS_FILE_UNSET+=3DPDF
> OPTIONS_FILE_SET+=3DPDO
> OPTIONS_FILE_UNSET+=3DPDO_SQLITE
> OPTIONS_FILE_SET+=3DPGSQL
> OPTIONS_FILE_UNSET+=3DPHAR
> OPTIONS_FILE_UNSET+=3DPOSIX
> OPTIONS_FILE_UNSET+=3DPSPELL
> OPTIONS_FILE_SET+=3DREADLINE
> OPTIONS_FILE_UNSET+=3DRECODE
> OPTIONS_FILE_SET+=3DSESSION
> OPTIONS_FILE_UNSET+=3DSHMOP
> OPTIONS_FILE_UNSET+=3DSIMPLEXML
> OPTIONS_FILE_UNSET+=3DSNMP
> OPTIONS_FILE_UNSET+=3DSOAP
> OPTIONS_FILE_UNSET+=3DSOCKETS
> OPTIONS_FILE_UNSET+=3DSQLITE3
> OPTIONS_FILE_UNSET+=3DSYBASE_CT
> OPTIONS_FILE_UNSET+=3DSYSVMSG
> OPTIONS_FILE_UNSET+=3DSYSVSEM
> OPTIONS_FILE_UNSET+=3DSYSVSHM
> OPTIONS_FILE_UNSET+=3DTIDY
> OPTIONS_FILE_UNSET+=3DTOKENIZER
> OPTIONS_FILE_UNSET+=3DWDDX
> OPTIONS_FILE_SET+=3DXML
> OPTIONS_FILE_UNSET+=3DXMLREADER
> OPTIONS_FILE_UNSET+=3DXMLRPC
> OPTIONS_FILE_UNSET+=3DXMLWRITER
> OPTIONS_FILE_SET+=3DXSL
> OPTIONS_FILE_UNSET+=3DZIP
> OPTIONS_FILE_SET+=3DZLIB
> rwsrv03#=20
>=20
> They're set in the port's Makefile *before* the OPTIONS stuff but that
> hasn't been a problem until the OPTIONS framework rediscovered itself.
>=20
> rwsrv03# grep ^WITH_ /usr/ports/lang/php5-extensions/Makefile
> WITH_CTYPE=3D	yes
> WITH_DOM=3D	yes
> WITH_FILTER=3D	yes
> WITH_HASH=3D	yes
> WITH_ICONV=3D	yes
> WITH_JSON=3D	yes
> WITH_PDO=3D	yes
> WITH_PDO_SQLITE=3Dyes
> WITH_PHAR=3D	yes
> WITH_POSIX=3D	yes
> WITH_SESSION=3D	yes
> WITH_SIMPLEXML=3D	yes
> WITH_SQLITE3=3D	yes
> WITH_TOKENIZER=3D	yes
> WITH_XML=3D	yes
> WITH_XMLREADER=3D	yes
> WITH_XMLWRITER=3D	yes
> rwsrv03#=20
>=20
> rwsrv03# ident /usr/ports/Mk/*options* /usr/ports/lang/php5-extensions/Ma=
kefile
> /usr/ports/Mk/bsd.options.desc.mk:
>      $FreeBSD: ports/Mk/bsd.options.desc.mk,v 1.49 2012/06/01 13:16:33 ba=
pt Exp $
>=20
> /usr/ports/Mk/bsd.options.mk:
>      $FreeBSD: ports/Mk/bsd.options.mk,v 1.7 2012/06/01 09:06:15 bapt Exp=
 $
>=20
> /usr/ports/Mk/bsd.port.options.mk:
>      $FreeBSD: ports/Mk/bsd.port.options.mk,v 1.3 2012/05/23 08:17:49 miw=
i Exp $
>=20
> /usr/ports/lang/php5-extensions/Makefile:
>      $FreeBSD: ports/lang/php5-extensions/Makefile,v 1.25 2012/05/16 07:3=
6:12 ale Exp $
>=20
> rwsrv03# grep '^\.include .*options' /usr/ports/lang/php5-extensions/Make=
file
> .include <bsd.port.options.mk>
>=20
> I'm sorry I don't have time to go delving deeper just now but thought
> I'd at least mention what I found.
>=20
> Thank you to all of those of you who spend so much time on ports and the
> ports infrastructure.
>=20
> --=20
> John Marshall

Thanks for reporting, apparently there might be a bug in the code that
regenerate the WITH_/WITHOUT_ stuff needed by the old options stuff.

regards,
Bapt

--aZ/0/p6gSDXwzas7
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAk/J4yoACgkQ8kTtMUmk6Eyf4wCghiN12iIeBD15DagtyJrpe0k6
FlgAn2Fn9KVriQ18h00rygsTtKFLVzL/
=i7du
-----END PGP SIGNATURE-----

--aZ/0/p6gSDXwzas7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120602095554.GU85232>