ports/164587: [maintainer update] textproc/ibus: update gtk.immodules when installed from package
Henry Hu
henry.hu.sh at gmail.com
Sat Jan 28 19:50:08 UTC 2012
>Number: 164587
>Category: ports
>Synopsis: [maintainer update] textproc/ibus: update gtk.immodules when installed from package
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 28 19:50:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Henry Hu
>Release: FreeBSD 8.2-STABLE
>Organization:
Columbia University
>Environment:
FreeBSD laptop.henryhu.net 8.2-STABLE FreeBSD 8.2-STABLE #4: Thu Aug 4 08:36:25 CST 2011 root@:/usr/obj/usr/src/sys/MYKERNEL i386
>Description:
Thanks to Yuri(yuri at rawbw) for reporting the problem:
When installing with "make install", the /usr/local/etc/gtk-2.0/gtk.immodules file is correctly updated. However, when installed from the package, it is not updated.
The reason is that the update command is only written in post-install section of Makefile and is not present in pkg-plist.
>How-To-Repeat:
1. Install ibus from the package.
2. Try to use it in "gnome-terminal" or other GTK programs.
3. You cannot switch on ibus.
>Fix:
Patch attached.
Patch attached with submission follows:
diff -ruN --exclude=CVS --exclude=.svn /tmp/cvstmp/ports/textproc/ibus/Makefile /usr/ports/textproc/ibus/Makefile
--- /tmp/cvstmp/ports/textproc/ibus/Makefile 2012-01-28 14:09:11.000000000 -0500
+++ /usr/ports/textproc/ibus/Makefile 2012-01-28 14:32:49.000000000 -0500
@@ -7,7 +7,7 @@
PORTNAME= ibus
PORTVERSION= 1.4.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
diff -ruN --exclude=CVS --exclude=.svn /tmp/cvstmp/ports/textproc/ibus/pkg-plist /usr/ports/textproc/ibus/pkg-plist
--- /tmp/cvstmp/ports/textproc/ibus/pkg-plist 2012-01-28 14:09:11.000000000 -0500
+++ /usr/ports/textproc/ibus/pkg-plist 2012-01-28 14:10:58.000000000 -0500
@@ -326,5 +326,7 @@
@dirrm include/ibus-1.0
@dirrmtry etc/xdg/autostart
@dirrmtry etc/xdg
+%%GTK3%%@exec gtk-query-immodules-3.0 --update-cache
+ at exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
%%GTK3%%@unexec gtk-query-immodules-3.0 --update-cache
@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list