Bug 206191 - german/hunspell: Does not build, when LANG=de_DE.UTF-8
Summary: german/hunspell: Does not build, when LANG=de_DE.UTF-8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Sunpoet Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-13 10:56 UTC by Rainer Hurling
Modified: 2016-01-17 13:15 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (office)


Attachments
patch to make the build of german/hunspell independend from locale settings (264 bytes, patch)
2016-01-13 10:56 UTC, Rainer Hurling
no flags Details | Diff
patch to make the build of german/hunspell independend from locale settings (272 bytes, patch)
2016-01-13 11:17 UTC, Rainer Hurling
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling 2016-01-13 10:56:40 UTC
Created attachment 165492 [details]
patch to make the build of german/hunspell independend from locale settings

I am not able to build german/hunspell for some time now:


[..snip..]
cat hunspell-capmain-plus_de_CH.tmp.unfiltered-list.tmp | ( sed -f ./bin/dic2iso | aspell --encoding=iso8859-1 --lang=de_CH --local-data-dir=./aspell expand ) > hunspell-capmain-plus_de_CH.tmp.unfiltered-list-expanded.tmp
sed -f ./bin/dic2iso < hunspell-capmain-plus_de_CH.tmp.unfiltered-list-expanded.tmp |sed "s/qq//g" | nl | hunspell `hunspell -h 2>&1 | grep -q "hunspell \\-i" && echo "-i latin1"` -d hunspell/de_CH_small -L > hunspell-capmain-plus_de_CH.tmp.unknown.tmp
error: line 1: missing or bad word count in the dic file
Hash Manager Error : 4
sed "s/^ *\([0-9]*\)\t.*$/\1/" hunspell-capmain-plus_de_CH.tmp.unknown.tmp > hunspell-capmain-plus_de_CH.tmp.list-unknown-lines.tmp
./bin/extractlines.pl hunspell-capmain-plus_de_CH.tmp.list-unknown-lines.tmp hunspell-capmain-plus_de_CH.tmp.unfiltered-list.tmp > hunspell-capmain-plus_de_CH.tmp.tmp
./bin/hunspell-capmain hunspell-capmain-plus_de_CH.tmp.tmp | sed -f ./bin/iso2dic > hunspell-capmain-plus_de_CH.tmp
sed: 3: ./bin/iso2dic: RE error: illegal byte sequence
+ INFILE=hunspell-capmain-plus_de_CH.tmp.tmp
+ test -z hunspell-capmain-plus_de_CH.tmp.tmp
+ grep $'^[A-Z\304\326\334\311]' hunspell-capmain-plus_de_CH.tmp.tmp
+ grep -v -- --x
+ ./bin/myspellfixprefix.pl
+ ./bin/lcfirst.pl
+ sed 's:$:/ozm: ; s:/\(.*\)/:/\1: ; s:--x::'
+ echo
Makefile:341: die Regel für Ziel „hunspell-capmain-plus_de_CH.tmp“ scheiterte
gmake[2]: *** [hunspell-capmain-plus_de_CH.tmp] Fehler 1
gmake[2]: Verzeichnis „/usr/ports/german/hunspell/work/igerman98-20151222“ wird verlassen
===> Compilation failed unexpectedly.


This error was reported some years ago in a mail[1] and as bug #175423, but seems not definitely solved?

As far as I can see, it is a problem with the locale environment, especially with some LANG= settings, for example with LANG=de_DE.UTF-8. Probably, it occurs on from the latest UTF changes in base?

If I unset LANG= or set it to LANG=C, all builts fine. The appended patch solved the problem for at least my german locale settings.

My boxes run a very recent FreeBSD 11.0-CURRENT amd64.


[1] http://lists.freebsd.org/pipermail/freebsd-office/2011-August/000084.html
Comment 1 Rainer Hurling 2016-01-13 11:17:36 UTC
Created attachment 165493 [details]
patch to make the build of german/hunspell independend from locale settings

Oops, sorry. Forgot to also change LC_ALL to 'C'. Without this, it does not build for me.
Comment 2 commit-hook freebsd_committer 2016-01-17 13:13:25 UTC
A commit references this bug:

Author: sunpoet
Date: Sun Jan 17 13:12:51 UTC 2016
New revision: 406368
URL: https://svnweb.freebsd.org/changeset/ports/406368

Log:
  - Make build process independent from locale setting

  PR:		206191
  Submitted by:	Rainer Hurling <rhurlin@gwdg.de>
  Sponsored by:	PortsCamp Taiwan

Changes:
  head/german/hunspell/Makefile
Comment 3 Sunpoet Po-Chuan Hsieh freebsd_committer 2016-01-17 13:15:34 UTC
Committed. Thanks!