make.conf options and poudriere

Matthew Seaman matthew at FreeBSD.org
Fri Jan 20 10:29:36 UTC 2017


On 2017/01/20 09:50, Victor Sudakov wrote:
> I'm trying to set per-port specific options as written in
> https://forums.freebsd.org/threads/52871/
> 
> For example, I have tried:
> "net-mgmt_flow-tools_UNSET= GCC"
> and 
> "net-mgmt_flow-tools_UNSET= USE_GCC"
> 
> but the port still requires lang/gcc. However, if I comment out
> "USE_GCC" directly in the net-mgmt/flow-tools/Makefile, it works for me.
> 
> What am I doing wrong? I would like to be able to set/unset this
> variable for different sets in poudriere, without editing the ports's
> Makefile itself.

Settings like 'net-mgmt_flow-tools_UNSET= GCC' only apply to the options
defined by the port, and net-mgmt/flow-tools doesn't define a 'GCC' option.

Where the port Makefile says:

USE_GCC=any

it means the port will (in preference order)

   * use the version of gcc specified in DEFAULT_VERSIONS -- this
     defaults to gcc-4.9 at the moment

   * use an installed version of gcc from ports, where it checks each of
     the versions available from ports, preferring the oldest available
     one.

   * uses gcc from base

There is no longer any option to use DEFAULT_VERSIONS to specify the
base system gcc, since gcc is no longer in base for any supported version.

However, if you find that net-mgmt/flow-tools will compile and run
successfully with the system Clang, please submit a PR to have the
'USE_GCC' line deleted.

	Cheers,

	Matthew



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20170120/fbc4c228/attachment.sig>


More information about the freebsd-hackers mailing list