Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#55116 closed defect (fixed)

hunspell-en_* @2017.08.24_1 do not build on 10.5.8

Reported by: udbraumann Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard Cc:
Port: hunspell-en

Description

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.

Attachments (1)

main.log (21.0 KB) - added by udbraumann 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by udbraumann

Attachment: main.log added

comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)

Owner: set to Schamschula
Status: newassigned

Good catch! Unfortunately, there are a large number of perl scripts here.

I'll fix them all...

comment:2 Changed 7 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In 5e2a5d3a9b88c269e52de3e80a3e2ca555ef3588/macports-ports:

hunspell-en: use MacPorts perl

Closes: #55116

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Keywords: perl removed
Port: hunspell-en added; hunspell-en_* removed
Note: See TracTickets for help on using tickets.