naokiri / cskk

SKK (Simple Kana Kanji henkan) library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cskkのdebパッケージ

naokiri opened this issue · comments

cskkのdebパッケージ

https://github.com/naokiri/fcitx5-cskk でテストしたが、

Error: libcskk.so.0: cannot open shared object file: No such file or directory

となるのでビルド時にバージョニングsymlinkを張って使っていた場合は配布物にもバージニングsymlinkが必要。
cargo-deb では kornelski/cargo-deb#44 にあるとおり symlink を含められないため、無理やりではあるがDEBIAN/post-install等でsymlinkを作るか、バージョニングを諦めるかしなければならない。

今現在0.x.yのバージョンではsemverに従っているが、cのライブラリはsemverのなかった時代で.0は互換性がなくとも常に0と扱われてしまうのでv1まではバージョニングを無視する方針とする。

sonameについて混乱があった。通常のビルド時と違い、cargo-cでビルドした時には自動的にhttps://github.com/lu-zero/cdylib-link-lines/ を使って、あるいは同等のやりかたでso.${major}をsonameとしている。これはversioningをfalseにしていても変わらない。

$ readelf -d target/x86_64-unknown-linux-gnu/debug/libcskk.so | grep SONAME
 0x000000000000000e (SONAME)             Library soname: [libcskk.so.0]

pkgconfig等のことを考えるとcargo-c依存を無くすのはあまりやりたくないので、so.${major} ファイルをなんとか生成あるいは含める方針を考える。