I recently updated to the latest tag for puppet-portage (2.4.0) from 2.3.0, and I started running into a problem with how puppet-portage generates my make.conf file:
The problem was introduced by a change to ::portage::makeconf that changed $content from an empty string to undef in commit 45f367901483191a91e24b73c354c49cced019ab
I recently updated to the latest tag for puppet-portage (2.4.0) from 2.3.0, and I started running into a problem with how puppet-portage generates my make.conf file:
The line in question is added by
::portage::install
:Which calls
::portage::makeconf
:Which uses the
makeconf.conf.erb template with
::concat::fragment` from the 1.x stdlib:The problem was introduced by a change to
::portage::makeconf
that changed$content
from an empty string toundef
in commit 45f367901483191a91e24b73c354c49cced019abThe root cause is that
undef != ''
, so the template is applying the last branch of the conditional instead of the first branch.