Package: libmecab-dev
Version: 0.996-14+b12
Severity: normal
Hello,
Thank you for maintaining the package. I appreciate your effort very much.
Though trivial, it seems that mecab-config --dicdir prints the wrong directory.
Expected:
$ mecab-config --dicdir
/var/lib/mecab/dic
$
Actual:
$ mecab-config --dicdir
/usr/lib/x86_64-linux-gnu/mecab/dic
$
This caused a problem for an application that uses mecab-config in its
test/build scripts.
The following patch fixed the problem for me.
I hope the official package will be fixed as well when you have time.
--
diff --git a/debian/patches/mecab_config_dicdir
b/debian/patches/mecab_config_dicdir
new file mode 100644
index 0000000..547f451
--- /dev/null
+++ b/debian/patches/mecab_config_dicdir
@@ -0,0 +1,11 @@
+--- a/mecab-config.in
++++ b/mecab-config.in
+@@ -91,7 +91,7 @@ while test $# -gt 0; do
+ ;;
+
+ --dicdir)
+- echo @libdir@/mecab/dic
++ echo /var/lib/mecab/dic
+ ;;
+
+ --inc-dir)
diff --git a/debian/patches/series b/debian/patches/series
index cb08687..aa09a4c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
remove-urchin.patch
0006-fix-typo.patch
fix_python_wrapper
+mecab_config_dicdir
--
-- System Information:
Debian Release: 11.5
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (80,
'testing'), (70, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-16-amd64 (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libmecab-dev depends on:
ii libmecab2 0.996-14+b12
libmecab-dev recommends no packages.
libmecab-dev suggests no packages.
-- no debconf information
--
Hisashi Morita <[email protected]>