[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:08324] Bug#JP/544: marked as done (xdic installation doesn't correctly create gene.dic)
Takao KAWAMURA <kawamura@debian.or.jp>さんの Fri, 11 Sep 1998 15:11:50 +0900 (JST)付けの
message-id <m0zHMQw-0007Z0C@xxxxxxxxxxxxxxxxxxxxxx>
subject Bug#JP/544: xdic installation doesn't correctly create gene.dic
のメッセージにより以下のバグ報告は「処理済」とされました。
もし、間違ったバグ報告を「処理済」にしてしまった場合は
必要に応じてバグ報告を再発行し、そして/または、ただちに問題を修正してください。
(注: これは Debian JP Bug Tracking System が発行している
自動応答メッセージで、debian-users メイリングリストにも送られています。
あなたがシステム管理者で、このメッセージが何について書かれている
かよくわからないのでしたら、どこかに深刻なメールシステムの誤設定がある
ことを示しています。すぐに私まで連絡をいただけないでしょうか)
(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
--
Debian JP Bug Tracking System / owner@bugs.debian.or.jp
Received: from nu.ike.tottori-u.ac.jp (root@xxxxxxxxxxxxxxxxxxxxxx [160.15.35.20])
by master.debian.or.jp (8.9.1a+3.0W/3.6W-Debian-JP-980308) with ESMTP id PAA22781
for <544-done@bugs.debian.or.jp>; Fri, 11 Sep 1998 15:11:51 +0900
Date: Fri, 11 Sep 1998 15:11:50 +0900 (JST)
From: Takao KAWAMURA <kawamura@debian.or.jp>
X-Mailer: cmail 2.59.12 on GNU Emacs 20.2.2 / Mule 3.0 (MOMIJINOGA)
References: <19980911144212H.sen_ml@xxxxxxxxxxx>
To: 544-done@bugs.debian.or.jp
In-reply-to: sen_ml@xxxxxxxxxxx's message of "Fri, 11 Sep 1998 14:42:12 +0900"
<19980911144212H.sen_ml@xxxxxxxxxxx>
Subject: Re: Bug#JP/544: xdic installation doesn't correctly create gene.dic
MIME-Version: 1.0 (generated by SEMI 1.8.4 - "Takaoka")
Content-Type: text/plain; charset=US-ASCII
> During installation of xdic, the user is given the opportunity to
> create a gene.dic file (that is, not use any existing gene.dic files).
> Choosing to create a new gene.dic file failed as follows:
Fixed in version 1.5p2-2.
> Suggested fix:
>
> -Determine an appropriate sed script.
> -Try to detect whether perl is installed, if it is, use perl.
> (perhaps, xdic can 'suggest' perl?) Since it appears that
> many debian systems use perl, checking for it seems reasonable.
> -If perl is not installed, use an appropriate sed script.
Thank you for your suggestion but I didn't use perl. I don't
like it. :-)
--
T. Kawamura
Return-Path: <sen_ml@xxxxxxxxxxx>
From: sen_ml@xxxxxxxxxxx
To: submit@bugs.debian.or.jp
Subject: xdic installation doesn't correctly create gene.dic
X-Mailer: Mew version 1.93pre2 on Emacs 20.2 / Mule 3.0 (MOMIJINOGA)
X-URL: http://www.findmail.com/
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <19980911144212H.sen_ml@xxxxxxxxxxx>
Date: Fri, 11 Sep 1998 14:42:12 +0900
X-Dispatcher: imput version 980901(IM100pre4)
Lines: 72
Package: xdic
Version: 1.5p1-1
During installation of xdic, the user is given the opportunity to
create a gene.dic file (that is, not use any existing gene.dic files).
Choosing to create a new gene.dic file failed as follows:
Setting up xdic (1.5p1-1) ...
You have /usr/share/dict/gene.dic already. Do you use it? [Y/n]: n
Please enter the directory which has gene95.lzh or gene95.tar.gz.
Or, enter `none' if you want to abort the installation.
Where? : /tmp
Building /usr/share/dict/gene.dic from /tmp/gene95.lzh ... sed: -e expression #1, char 28: Unterminated `y' command
/var/lib/dpkg/info/xdic.postinst: line 69: 1228 Broken pipe $COMMAND gene.txt
1229 | nkf -S -e
1230 Done(1) | sed -e "
1,${IGNORELINES}d
s/ / /
//
y/
/ /
n
//"
1231 Done | sort -f >$DICT
done.
Copying the relevant portions of the xdic.postinst script and using
jsed (in the sed-ja package) instead of sed created the appropriate
gene.dic file.
Relevant portion of xdic.postinst:
echo -n "Building $DICT from $ARC ... "
$COMMAND gene.txt | \
nkf -S -e | \
sed -e "
1,${IGNORELINES}d
s/ / /
s/^M//
y/
/ /
n
s/^M//" | \
sort -f > $DICT
chmod 644 $DICT
echo "done."
(N.B. this text was copied and pasted, so tabs (and other characters)
may not have survived.)
Suggested fix:
-Determine an appropriate sed script.
-Try to detect whether perl is installed, if it is, use perl.
(perhaps, xdic can 'suggest' perl?) Since it appears that
many debian systems use perl, checking for it seems reasonable.
-If perl is not installed, use an appropriate sed script.
System details:
-Linux 2.0.35
-slink (w/ files from slink-jp)
-libc.so.5 (libc.so.5.4.38) and libc.so.6 (libc-2.0.7.so)
Additional notes:
-Installation was performed via dselect as well as dpkg -i, w/ the
same results. (This note is only here because the instructions for
reporting a bug request it.)
-The same problem was experienced w/ version 1.4-1 in hamm.