$ portversion -v | grep '<'
[Reading data from pkg(8) ... - 682 packages found - done]
webalizer-2.23.8_16 < needs updating (port has 2.23.8_18)
「portupgrade」します。
portupgrade -Rr webalizer
すると。
[Reading data from pkg(8) ... - 682 packages found - done]
make: "/usr/ports/www/webalizer/Makefile" line 143: Malformed conditional (${WEBALIZER_LANG} != japanese)
make: Fatal errors encountered -- cannot continue
** Makefile possibly broken: www/webalizer:
** Please report this to the maintainer for www/webalizer
make: stopped in /usr/ports/www/webalizer
/usr/local/sbin/portupgrade:1575:in 'get_pkgname': Makefile broken (MakefileBrokenError)
from /usr/local/sbin/portupgrade:637:in 'block (4 levels) in main'
from /usr/local/sbin/portupgrade:621:in 'each'
from /usr/local/sbin/portupgrade:621:in 'block (3 levels) in main'
from /usr/local/sbin/portupgrade:594:in 'catch'
from /usr/local/sbin/portupgrade:594:in 'block (2 levels) in main'
from /usr/local/lib/ruby/3.1/optparse.rb:1627:in 'block (2 levels) in parse_in_order'
from /usr/local/lib/ruby/3.1/optparse.rb:1622:in 'catch'
from /usr/local/lib/ruby/3.1/optparse.rb:1622:in 'block in parse_in_order'
from /usr/local/lib/ruby/3.1/optparse.rb:1559:in 'catch'
from /usr/local/lib/ruby/3.1/optparse.rb:1559:in 'parse_in_order'
from /usr/local/lib/ruby/3.1/optparse.rb:1553:in 'order!'
from /usr/local/lib/ruby/3.1/optparse.rb:1544:in 'order'
from /usr/local/sbin/portupgrade:571:in 'block in main'
from /usr/local/lib/ruby/3.1/optparse.rb:1102:in 'initialize'
from /usr/local/sbin/portupgrade:238:in 'new'
from /usr/local/sbin/portupgrade:238:in 'main'
from /usr/local/sbin/portupgrade:2380:in '<main>'
ちゅうことになります。
3. 調査
どうやら、またぞろ、オプションが変わったようです。
オプションを見てみようとすると。
cd /usr/ports/www/webalizer
make config
こんなことになります。
make: "/usr/ports/www/webalizer/Makefile" line 143: Malformed conditional (${WEBALIZER_LANG} != japanese)
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/ports/www/webalizer
まぁ、リセットするしかないですね。
cd /usr/ports/www/webalizer
make rmconfig
make config
make[1]: "/usr/ports/www/webalizer/Makefile" line 143: Malformed conditional (${WEBALIZER_LANG} != japanese)
make[1]: Fatal errors encountered -- cannot continue
make[1]: stopped in /usr/ports/www/webalizer
*** Error code 1
Stop.
make: stopped in /usr/ports/www/webalizer
vi /usr/ports/www/webalizer/Makefile
.if ${PORT_OPTIONS:MWEBALIZER_CONV}
.if ${WEBALIZER_LANG} != japanese
BROKEN= no conversion from UTF-8 needed
.endif
# The patch file is written by URASHIMA Akira
# see http://tyche.pu-toyama.ac.jp/~a-urasim/webalizer/
EXTRA_PATCHES+= ${FILESDIR}/webalizer-a-urasim_2.patch
.endif