Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2012 13:57:58 +1000
From:      John Marshall <john.marshall@riverwillow.com.au>
To:        freebsd-ports@freebsd.org
Subject:   OPTIONS framework unwell? Additional ports installed unexpectedly
Message-ID:  <20120602035757.GB4052@rwpc13.mby.riverwillow.net.au>

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

--XF85m9dhOBO43t/C
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I just had a whole bunch of ports install unexpectedly.

  portmaster -D -r png-1.4.11

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.

=3D=3D=3D>>> Done updating ports that depend on png-1.4.11=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

So, what happened?  Those extensions OPTIONS are all disabled in my
config.

rwsrv03# cd /usr/ports/lang/php5-extensions
rwsrv03# make showconfig
=3D=3D=3D> The following configuration options are available for php5-exten=
sions-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

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 F=
ILEINFO FILTER FTP GD GETTEXT GMP HASH ICONV IMAP INTERBASE JSON LDAP MBSTR=
ING MCRYPT MSSQL MYSQL MYSQLI ODBC OPENSSL PCNTL PDF PDO PDO_SQLITE PGSQL P=
HAR POSIX PSPELL READLINE RECODE SESSION SHMOP SIMPLEXML SNMP SOAP SOCKETS =
SQLITE3 SYBASE_CT SYSVMSG SYSVSEM SYSVSHM TIDY TOKENIZER WDDX XML XMLREADER=
 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

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.

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

rwsrv03# ident /usr/ports/Mk/*options* /usr/ports/lang/php5-extensions/Make=
file
/usr/ports/Mk/bsd.options.desc.mk:
     $FreeBSD: ports/Mk/bsd.options.desc.mk,v 1.49 2012/06/01 13:16:33 bapt=
 Exp $

/usr/ports/Mk/bsd.options.mk:
     $FreeBSD: ports/Mk/bsd.options.mk,v 1.7 2012/06/01 09:06:15 bapt Exp $

/usr/ports/Mk/bsd.port.options.mk:
     $FreeBSD: ports/Mk/bsd.port.options.mk,v 1.3 2012/05/23 08:17:49 miwi =
Exp $

/usr/ports/lang/php5-extensions/Makefile:
     $FreeBSD: ports/lang/php5-extensions/Makefile,v 1.25 2012/05/16 07:36:=
12 ale Exp $

rwsrv03# grep '^\.include .*options' /usr/ports/lang/php5-extensions/Makefi=
le
=2Einclude <bsd.port.options.mk>

I'm sorry I don't have time to go delving deeper just now but thought
I'd at least mention what I found.

Thank you to all of those of you who spend so much time on ports and the
ports infrastructure.

--=20
John Marshall

--XF85m9dhOBO43t/C
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAk/Jj0UACgkQw/tAaKKahKIFmwCgiGooYitqmc2Xmdhl9NXZGmB0
MgYAnAyuRNRNFgBMRz78ieet9uGwuLR5
=3jQD
-----END PGP SIGNATURE-----

--XF85m9dhOBO43t/C--



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