View Full Version : With what options was a port built?
abarmot
November 20th, 2008, 06:10
How can I know with what options was MySQL built, for example?
Thanks.
lme@
November 20th, 2008, 07:28
cd $portsdir && make showconfig
abarmot
November 20th, 2008, 07:40
thanks for a quick reply!
i tried 2 ways:
s1# cd /usr/ports && make showconfig
make: don't know how to make showconfig. Stop
and the second shows nothing...
s1# cd /usr/ports/databases/mysql50-server && make showconfig
what wrong?
lme@
November 20th, 2008, 08:23
There is nothing wrong.
mysql50-server does not use the OPTIONS framework (the blue selection menu) when you compile the port. 'make showconfig' shows you the OPTIONS that were set.
For ports that don't use OPTIONS you can try to run 'make configure' so that the distsfile's own configure script is run. You often see the enabled configure options then.
s-tlk
November 20th, 2008, 09:06
Perhaps a look in the Makefile, especially the CONFIGURE_ARGS reveal what you wanna know?
If it is not there what are you looking for, then you have to run configure and look in the config.log file, like Ime described it before. :)
Infracaninophile
November 20th, 2008, 10:02
For ports like mysql that don't use the OPTIONS framework, and even some ports that do use OPTIONS (like www/apache22) or that have extra knobs to twiddle than are covered by OPTIONS, I recommend recording all your configuration info in /etc/make.conf -- like this:
.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET=utf8
WITH_XCHARSET=none
WITH_COLLATION=utf8_unicode_ci
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
WITH_INNODB=yes
WITH_ARCHIVE=yes
WITH_FEDERATED=yes
WITH_NDB=yes
WITH_CSV=yes
.endif
This way, whenever you upgrade, you'll get a nicely repeatable result.
Mel_Flynn
November 21st, 2008, 04:41
Still there's something to be said for recording flags in /var/db/pkg, especially when it's installed via binary package, rather then compiled port.
It would be a mega-patch though, cause every port would have to list the switches it supports.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.