Hello community,

here is the log from the commit of package words for openSUSE:Factory checked 
in at 2012-03-09 21:29:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/words (Old)
 and      /work/SRC/openSUSE:Factory/.words.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "words", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/words/words.changes      2012-02-15 
16:19:27.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.words.new/words.changes 2012-03-09 
21:29:34.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Mar  8 13:46:34 UTC 2012 - [email protected]
+
+- Fix sorting as the look(1) command expect sort option -f and -d
+  also convert Latin-1 umlauts into UTF-8 based (bnc#742812)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ words.spec ++++++
--- /var/tmp/diff_new_pack.DARYgQ/_old  2012-03-09 21:29:37.000000000 +0100
+++ /var/tmp/diff_new_pack.DARYgQ/_new  2012-03-09 21:29:37.000000000 +0100
@@ -73,11 +73,42 @@
 %setup -q -n scowl-%{version}
 
 %build
+spellings="american british canadian"
+LANG=POSIX
+export POSIX
+set +o posix
+#
+# Do resorting for look(1) command
+#
 test -d result/ || mkdir result
-chmod +x mk-list
-LC_CTYPE=en_US LC_CTYPE=en_US ./mk-list -v2 american 80 > result/american
-LC_CTYPE=en_GB LC_CTYPE=en_GB ./mk-list -v2 british  80 > result/british
-LC_CTYPE=en_CA LC_CTYPE=en_CA ./mk-list -v2 canadian 80 > result/canadian
+chmod u+x mk-list
+for s in $spellings
+do
+    case "$s" in
+    american*) LC_CTYPE=en_US.UTF-8 ;;
+    british*)  LC_CTYPE=en_GB.UTF-8 ;;
+    canadian*) LC_CTYPE=en_CA.UTF-8 ;;
+    esac
+    LC_COLLATE=$LC_CTYPE
+    export LC_CYPTE LC_COLLATE
+    > result/${s}.todo
+    #
+    # Fix sorting as the look(1) command expect sort option -f
+    # and -d. also convert Latin-1 umlauts into UTF-8 based.
+    #
+    ./mk-list -v2 ${s} 80 | iconv -f latin1 -t utf8 > >(sort -fdu -S10M -o 
result/${s} ; rm result/${s}.todo)
+done
+#
+# Wait on sorting FIFOs
+#
+for s in $spellings
+do
+    while test -e result/${s}.todo
+    do
+       usleep 50000
+    done
+    fsync result/${s}
+done
 
 %install
 mkdir -p %{buildroot}%{_datadir}/dict

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to