[MacPorts] #55116: hunspell-en_* @2017.08.24_1 do not build on 10.5.8

MacPorts noreply at macports.org
Thu Oct 19 00:11:55 UTC 2017


#55116: hunspell-en_* @2017.08.24_1 do not build on 10.5.8
--------------------------+---------------------------
 Reporter:  udbraumann    |      Owner:
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:  leopard perl  |       Port:  hunspell-en_*
--------------------------+---------------------------
 While upgrading `hunspell-dict-en_US` from `2006-02-07_0` to
 `2006-02-07_1` which in fact will upgrade to `hunspell-en_US
 @2017.08.24_1` I had this trouble:

 {{{
 ...
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_textproc_hunspell-en/hunspell-
 en_US/work/scowl-2017.08.24/sp
 eller" && ./make-hunspell-dict -all
 :info:build prep
 :info:build creating en_US.dic
 :info:build Can't locate object method "newdir" via package "File::Temp"
 at ../speller/munch-list line 47, <F> line 1.
 :info:build Can't locate object method "newdir" via package "File::Temp"
 at ../speller/munch-list line 47, <F> line 1.
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_textproc_hunspell-en/hunspell-en_US/work/scowl-2017.0
 8.24/speller" && ./make-hunspell-dict -all
 :info:build Exit code: 255
 :error:build Failed to build hunspell-en_US: command execution failed
 ...
 }}}

 Looking closer at the problem I found that inside
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_textproc_hunspell-en/hunspell-
 en_US/work/scowl-2017.08.24/speller/munch-list` the system's ancient
 `/usr/bin/perl` is being called:

 {{{
 $/usr/bin/perl -version

 This is perl, v5.8.8 built for darwin-thread-multi-2level
 (with 4 registered patches, see perl -V for more detail)

 Copyright 1987-2006, Larry Wall
 ...
 }}}

 However, in the `main.log` (attached) I found that the presence of a much
 newer MacPorts-provided `perl` is being checked:

 {{{
 ...
 :debug:main No need to upgrade! perl5.24 5.24.2_0 >= perl5.24 5.24.2_0
 ...
 }}}

 What I did was the following hack: I replaced the very first line inside
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_textproc_hunspell-en/hunspell-
 en_US/work/scowl-2017.08.24/speller/munch-list` from

 {{{
 #!/usr/bin/perl
 }}}
 to
 {{{
 #!/opt/local/bin/perl
 }}}

 This kind of hack will work for all SCOWL based hunspell english
 dictionaries, e.g. `hunspell-en_CA`, `hunspell-en_GB` and so on.

--
Ticket URL: <https://trac.macports.org/ticket/55116>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list