トップ 最新 追記

Orz日記 by Akio Morita

ToDo:

  • 15 SAD Fit[]回りの障害事例の解析
  • 10 smart pointer版PEGクラスの再実装(Left Recursionまわり)
2006|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|06|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|07|08|09|10|11|12|
2013|01|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|06|07|08|10|12|
2016|01|02|03|05|06|08|10|11|
2017|01|02|03|04|05|06|07|09|10|11|12|
2018|01|02|03|04|06|07|08|09|10|11|12|
2019|01|03|04|05|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|09|10|11|12|
2024|01|02|03|04|05|06|07|08|09|10|11|12|
2025|01|02|03|04|05|06|07|

2025-07-10 [長年日記]

_ [FreeBSD]ibusでXIM EUC-JP localeを動かすパッチ

ibus-1.5.32で動かなくなっているXIM EUC-JP locale(ja-ktermで必要)を動かすパッチのまとめ

  • 本質は、post-patchターゲットで行っているibus Issue 2547のロールバック
  • util/IMdkit/i18nOffsetCache.c側の修正は、realloc時のoffset_cache->capacityの扱いがおかしい部分の修正
--- textproc/ibus/Makefile.orig
+++ textproc/ibus/Makefile
@@ -108,6 +108,10 @@ PLIST_SUB+=       COMPDIR=""
 PLIST_SUB+=   COMPDIR="@comment "
 .endif

+post-patch:
+      # Rollback https://github.com/ibus/ibus/issues/2547 for ja_JP.eucJP locale XIM on ja-kterm
+      ${REINPLACE_CMD} -e 's/gdk_init/gtk_init/' ${WRKSRC}/client/x11/main.c
+
 post-configure:
       # Clean pre-generated source code, which may not match the options selected.
       ${MAKE} -C ${WRKSRC}/ui/gtk3 maintainer-clean-generic
--- /dev/null  2025-07-10 11:37:47.184390000 +0900
+++ textproc/ibus/files/patch-i18nOffsetCache  2025-07-03 17:34:38.139498000 +0900
@@ -0,0 +1,15 @@
+--- util/IMdkit/i18nOffsetCache.c.orig        2025-04-08 21:57:26.000000000 +0900
++++ util/IMdkit/i18nOffsetCache.c     2025-07-03 17:34:35.553162000 +0900
+@@ -84,10 +84,10 @@
+
+     if (++offset_cache->size > offset_cache->capacity) {
+         Xi18nAtomOffsetPair *pair = (Xi18nAtomOffsetPair *) realloc (data,
+-                offset_cache->capacity * sizeof (Xi18nAtomOffsetPair));
+-        offset_cache->capacity *= OFFSET_CACHE_GROWTH_FACTOR;
++                offset_cache->capacity * OFFSET_CACHE_GROWTH_FACTOR * sizeof (Xi18nAtomOffsetPair));
+         if (pair) {
+             offset_cache->data = pair;
++            offset_cache->capacity *= OFFSET_CACHE_GROWTH_FACTOR;
+         } else {
+             offset_cache->data = data;
+             --offset_cache->size;

カテゴリー: Admin | Emacs | EPICS | Fortran | FreeBSD | GCC | hgsubversion | IPv6 | KEKB | LHC | Lisp | LLVM | MADX | Ryzen | SAD | samba | tDiary | unix | WWW | YaSAI | お仕事 | イベント | 出張 | 宴会 | 数学 | 艦これ | 買いもの | 追記 | 雑記