[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:47640] Text::MeCab の deb 化



こんにちは。松田陽一@三鷹です。

sarge で Text::MeCab を deb 化したく、以下のサイトの記述を参考に、

    リンク名 半袖野郎 blog.hansode.org:[Debian] Encode-Detect-0.01
        URL: http://blog.hansode.org/archives/50667473.html       

以下の手順を行いました。
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
$ DEBEMAIL=yoh@xxxxxxxx dh-make-perl --cpan Text::MeCab
$ mv -v Text-MeCab-0.13 libtext-mecab-perl-0.13
`Text-MeCab-0.13' -> `libtext-mecab-perl-0.13'
$ cd libtext-mecab-perl-0.13
$ vi debian/rules
8a9
> include /usr/share/dpatch/dpatch.make
$ vi debian/control
11c11
> Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends},
---
< Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, dpatch
$ mv Makefile.PL /tmp/.
$ perl -pi -e 's,libq-unknown--perl,libtext-mecab-perl,g' debian/*
$ dpatch-edit-patch patch 99_makefile-pl
dpatch-edit-patch: * /home/yoh/work/libtext-mecab-perl-0.13/debian/patches/99_makefile-pl.dpatch does not exist, it will be created as a new dpatch.
dpatch-edit-patch: * Cleaning /home/yoh/work/libtext-mecab-perl-0.13
dh_testdir
dh_testroot
# Add commands to clean up after the build process here
/usr/bin/perl Build distclean
Can't open perl script "Build": そのようなファイルやディレクトリはありません
make: [clean] エラー 2 (無視されました)
dh_clean build-stamp install-stamp
dpatch  deapply-all
rm -rf patch-stamp patch-stampT debian/patched
dpatch-edit-patch: Warning: * No base-patch supplied, not applying any patches.
dpatch-edit-patch: * Copying /home/yoh/work/libtext-mecab-perl-0.13 to work directory.

dpatch-edit-patch:

Now launching an interactive shell in your work directory. Edit your files.
When you are done, exit the shell. When you exit the shell, your patch will be
automatically updated based on the changes in your work directory.

If you wish to abort the process, exit the shell such that it returns an exit
code of "230". This is typically done by exiting the shell with the command
'exit 230'.
$ cp /tmp/Makefile.PL ./.
$ perl -pi -e 's,unknown,Text::MeCab,' Makefile.PL
$ exit
exit
dpatch-edit-patch: * Creating new patch /home/yoh/work/libtext-mecab-perl-0.13/debian/patches/99_makefile-pl.dpatch
dpatch-edit-patch: Warning: debian/patches/00template not exist, using hardcoded default.
dpatch-edit-patch: /home/yoh/work/libtext-mecab-perl-0.13/debian/patches/99_makefile-pl.dpatch created.
$ dpkg-buildpackage -uc -us -rfakeroot
dpkg-buildpackage: source package is libtext-mecab-perl
dpkg-buildpackage: source version is 0.13-1
dpkg-buildpackage: source maintainer is MATSUDA Yoh-ichi <yoh@xxxxxxxx>
dpkg-buildpackage: host architecture is i386
 fakeroot debian/rules clean
dh_testdir
dh_testroot
# Add commands to clean up after the build process here
/usr/bin/perl Build distclean
Can't open perl script "Build": そのようなファイルやディレクトリはありません
make: [clean] エラー 2 (無視されました)
dh_clean build-stamp install-stamp
 dpkg-source -b libtext-mecab-perl-0.13
dpkg-source: building libtext-mecab-perl using existing libtext-mecab-perl_0.13.orig.tar.gz
dpkg-source: building libtext-mecab-perl in libtext-mecab-perl_0.13-1.diff.gz
dpkg-source: warning: ignoring deletion of file Makefile.PL
dpkg-source: building libtext-mecab-perl in libtext-mecab-perl_0.13-1.dsc
 debian/rules build
dh_testdir
# Add commands to compile the package here
/usr/bin/perl Build.PL installdirs=vendor
Path to mecab config? [/usr/bin/mecab-config]
detected mecab version 0.93
Using compiler flags '-DMECAB_MAJOR_VERSION=0 -DMECAB_MINOR_VERSION=93'...
Using linker flags '-L/usr/lib -lmecab -lstdc++'...
Text::MeCab needs to know what encoding you built your dictionary with
to properly execute tests.

Encoding of your mecab dictionary? (shift_jis, euc-jp, utf8) [euc-jp] utf8
Using utf8 as your dictionary encoding
Creating custom builder _build/lib/MyModuleBuilder.pm in _build/lib
Checking whether your kit is complete...
Warning: the following files are missing in your kit:
        Makefile.PL
Please inform the author.
Creating new 'Build' script for 'Text-MeCab' version '0.13'
OPTIMIZE="-Wall -g -O2" /usr/bin/perl Build
lib/Text/MeCab.pm -> blib/lib/Text/MeCab.pm
lib/Text/MeCab.xs -> lib/Text/MeCab.c
cc -Isrc -I/usr/lib/perl/5.8/CORE -fPIC -DMECAB_MAJOR_VERSION=0 -DMECAB_MINOR_VERSION=93 -Wall -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o lib/Text/MeCab.o lib/Text/MeCab.c
ExtUtils::Mkbootstrap::Mkbootstrap('lib/Text/MeCab')
cc -shared -L/usr/local/lib -o blib/arch/auto/Text/MeCab/MeCab.so lib/Text/MeCab.o -L/usr/lib -lmecab -lstdc++
lib/Text/MeCab/Node.pod -> blib/lib/Text/MeCab/Node.pod
Manifying blib/lib/Text/MeCab.pm -> blib/libdoc/Text::MeCab.3pm
Manifying blib/lib/Text/MeCab/Node.pod -> blib/libdoc/Text::MeCab::Node.3pm
touch build-stamp
 fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
# Add commands to install the package into debian/ACKAGE_NAME here
/usr/bin/perl Build test
t/01-sanity....ok
t/02-basic.....ok 1/0Failed to create mecab instance at /home/yoh/work/libtext-mecab-perl-0.13/blib/lib/Text/MeCab.pm line 53.
# Looks like your test died just after 1.
t/02-basic.....dubious
        Test returned status 255 (wstat 65280, 0xff00)
        after all the subtests completed successfully
t/03-free......Failed to create mecab instance at /home/yoh/work/libtext-mecab-perl-0.13/blib/lib/Text/MeCab.pm line 53.
# Looks like your test died just after 1.
t/03-free......dubious
        Test returned status 255 (wstat 65280, 0xff00)
        after all the subtests completed successfully
t/04-dclone....Failed to create mecab instance at /home/yoh/work/libtext-mecab-perl-0.13/blib/lib/Text/MeCab.pm line 53.
# Looks like your test died just after 1.
t/04-dclone....dubious
        Test returned status 255 (wstat 65280, 0xff00)
        after all the subtests completed successfully
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/02-basic.t   255 65280     1    0   0.00%  ??
t/03-free.t    255 65280     1    0   0.00%  ??
t/04-dclone.t  255 65280     1    0   0.00%  ??
Failed 3/4 test scripts, 25.00% okay. 0/44 subtests failed, 100.00% okay.
make: *** [install-stamp] エラー 255
$
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
以上、エラーメッセージの意味がよく判らず、何をどうしたらいいのか
判らず、手詰りになってしまいました。
どなたか、このエラーを解消する方策を判る方はいらっしゃいませんか。
--
日本語spam展示博覧会開催中
http://www.flcl.org/~yoh/spam/jp/
松田 陽一(yoh)
mailto:yoh@xxxxxxxx
http://www.flcl.org/~yoh/diary/