Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 241 by lidaobing: ./configure --libexecdir=anotherdir 时无法正常工
作
http://code.google.com/p/ibus/issues/detail?id=241
What version of the product are you using? On what operating system?
OS (Linux distributions, UNIX or ...):
iBus version: 1.1.0.20090205-0ubuntu1
Python version:
dbus version:
dbus-python version:
gtk version (if bug is about gtk applications):
qt version (if bug is about qt applications):
Hello,
在制作 ubuntu 时遇到一个小问题,过来报告一下:
gconf/gconf.xml.in 中使用如下的代码来定义可执行文件的位置:
<exec>@prefix@/libexec/ibus-gconf</exec>
在 ./configure --libexecdir=anotherdir 配置下编译安装后,由于无法找到正确的
可执行文件的位置而使 ibus 启动失败
曾尝试改为如下一行来解决问题
<exec>@libexecdir@/ibus-gconf</exec>
但仍然失败,替换后的代码变成
<exec>${prefix}/libexec/ibus-gconf</exec>
使用 ./configure --libexecdir=... 是 Debian/Ubuntu 系打包的缺省行为, 参见
[1].
我在打包时会考虑对 .xml.in 打补丁,直接固化最终地址来解决这个问题。
[1]
http://git.debian.org/?p=debhelper/debhelper.git;a=blob;f=dh_auto_configure;hb=HEAD#l76
有两个建议的解决方案: (推荐第一个)
1. 将 gconf/Makefile.am 中的 libexec_PROGRAMS 改为 pkglib_PROGRAMS, 然后把
gconf.xml.in 中的 <exec>@prefix@/libexec/ibus-gconf</exec> 改为
<exec>@prefix@/lib/@PACKAGE@/ibus-gconf</exec> (关于 pkglib_, 参见 automake
的帮助)
2. 在 configure.ac 中将 libexecdir 求值使之不再包含变量, 最后用 AC_SUBST 替
换 (这个方法不知道是否有用)
ui/gtk/gtkpanel.xml.in 有类似的问题,不再重复
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
-~----------~----~----~----~------~----~------~--~---