[Bug 277496] editors/tamago: Build failure and run-time error with latest Emacs 30

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 05 Mar 2024 02:51:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277496

            Bug ID: 277496
           Summary: editors/tamago: Build failure and run-time error with
                    latest Emacs 30
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs@FreeBSD.org
          Reporter: yasu@freebsd.org
             Flags: maintainer-feedback?(hrs@FreeBSD.org)
          Assignee: hrs@FreeBSD.org

After editors/emacs-devel is updated to 30.0.50.20240301,3, build of
devel_full and devel_nox flavors fails as following

----------------------------------------------------------------------
if test "/usr/local/bin/emacs-30.0.50" != "no"; then  am__dir=.
am__subdir_includes='';  case canna.elc in */*)  am__dir=`echo 'canna.elc' |
sed 's,/[^/]*$,,'`;  am__subdir_includes="-L $am__dir -L ./$am__dir";  esac; 
test -d "$am__dir" || /bin/mkdir -p "$am__dir" || exit 1; 
/usr/local/bin/emacs-30.0.50 --batch  -q -no-site-file -no-init-file 
--eval="(setq load-path (append (list (expand-file-name \"..\")) load-path))" 
--eval="(load \"docomp.el\")"   $am__subdir_includes -L . -L .  --eval "(defun
byte-compile-dest-file (f) \"/tmp/canna.elc\")"  --eval "(unless
(byte-compile-file \"canna.el\") (kill-emacs 1))";  if [ -f "/tmp/canna.elc" ];
then  cp /tmp/canna.elc canna.elc && rm -f /tmp/canna.elc;  fi;  else :; fi
Loading
/usr0/freebsd/ports/work/usr/ports/editors/tamago/work-devel_nox/tamago-4.0.6.0.20041122.19.15/docomp.el
(source)...
Package cl is deprecated

In toplevel form:
canna.el:1:1: Warning: file has no `lexical-binding' directive on its first
line
canna.el:33:11: Error: Wrong type argument: obarrayp, [nil nil nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil]
*** Error code 1
----------------------------------------------------------------------

If editors/tamago is alreay installed and editors/emacs-devel is
upgraded afterward, following runtime error happens when Tamago is
invoded by typing C-\.

----------------------------------------------------------------------
Wrong type argument: obarrayp, [nil nil nil nil nil nil nil nil nil nil ...]
----------------------------------------------------------------------

And following backtrace is displayed if debugger is enabled with
toggle-debug-on-error.

----------------------------------------------------------------------
Debugger entered--Lisp error: (wrong-type-argument obarrayp [nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
nil nil nil nil nil nil ...])
  intern(" " [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
nil nil nil nil nil nil nil nil nil nil nil nil nil nil ...])
 
byte-code("\306\307\310\311\"\311\211\30\31\32\33\13\203H\0\13@@\21\13@A\20\13A\23\10\203C\0\312\313\10@@!\f\"\10@AL\210\312\314\11!\313\10@A!P\15\"\10@@L\210\10A\211\20\204\36\0\n\210\202\13\0,\311\207"
[pair lang hash table its-full-half-table its-half-full-table ((Japanese (12288
. 32) (65292 . 44) (65294 . 46) (12289 . 44) (12290 . 46) (65306 . 58) (65307 .
59) (65311 . 63) (65281 . 33) (180 . 39) (65344 . 96) (65342 . 94) (65343 . 95)
(65507 . 126) (12540 . 45) (8212 . 45) (8208 . 45) (65295 . 47) (65340 . 92)
(12316 . 126) (65372 . 124) (8216 . 96) (8217 . 39) (8220 . 34) (8221 . 34)
(65288 . 40) (65289 . 41) (65339 . 91) (65341 . 93) (65371 . 123) (65373 . 125)
(12296 . 60) (12297 . 62) (65291 . 43) (8722 . 45) (65309 . 61) (65308 . 60)
(65310 . 62) (8242 . 39) (8243 . 34) (65509 . 92) (65284 . 36) (65285 . 37)
(65283 . 35) (65286 . 38) (65290 . 42) (65312 . 64) (65296 . 48) (65297 . 49)
...) (Chinese-GB (12288 . 32) (65292 . 44) (65294 . 46) (12289 . 44) (12290 .
46) (65306 . 58) (65307 . 59) (65311 . 63) (65281 . 33) (65344 . 96) (65342 .
94) (65343 . 95) (65507 . 126) (8213 . 45) (65295 . 47) (65340 . 92) (65374 .
126) (65372 . 124) (8216 . 96) (8217 . 39) (8220 . 34) (8221 . 34) (65288 . 40)
(65289 . 41) (65339 . 91) (65341 . 93) (65371 . 123) (65373 . 125) (65291 . 43)
(65293 . 45) (65309 . 61) (65308 . 60) (65310 . 62) (65287 . 39) (65282 . 34)
(65509 . 36) (65285 . 37) (65283 . 35) (65286 . 38) (65290 . 42) (65312 . 64)
(65296 . 48) (65297 . 49) (65298 . 50) (65299 . 51) (65300 . 52) (65301 . 53)
(65302 . 54) (65303 . 55) ...) (Chinese-CNS (12288 . 32) (65292 . 44) (65294 .
46) (12289 . 44) (12290 . 46) (65306 . 58) (65307 . 59) (65311 . 63) (65281 .
33) (8245 . 39) (8242 . 96) (65087 . 94) (65343 . 95) (8254 . 126) (65123 . 45)
(65295 . 47) (65340 . 92) (8725 . 47) (65128 . 92) (8764 . 126) (65372 . 124)
(8216 . 96) (8217 . 39) (12317 . 34) (12318 . 34) (8220 . 34) (8221 . 34)
(65288 . 40) (65289 . 41) (12308 . 91) (12309 . 93) (65117 . 91) (65118 . 93)
(65371 . 123) (65373 . 125) (65115 . 123) (65116 . 125) (12296 . 60) (12297 .
62) (65291 . 43) (65293 . 45) (65309 . 61) (65308 . 60) (65310 . 62) (65284 .
36) (65285 . 37) (65283 . 35) (65286 . 38) (65290 . 42) ...) (Korean (12288 .
32) (65292 . 44) (65294 . 46) (65306 . 58) (65307 . 59) (65311 . 63) (65281 .
33) (8217 . 39) (8216 . 96) (65342 . 94) (65343 . 95) (65507 . 126) (8213 . 45)
(173 . 45) (65295 . 47) (65340 . 92) (8764 . 126) (65372 . 124) (8216 . 96)
(8217 . 39) (8220 . 34) (8221 . 34) (65288 . 40) (65289 . 41) (65339 . 91)
(65341 . 93) (65371 . 123) (65373 . 125) (12296 . 60) (12297 . 62) (65291 . 43)
(65293 . 45) (65309 . 61) (65308 . 60) (65310 . 62) (65287 . 39) (65282 . 34)
(65510 . 92) (65284 . 36) (65285 . 37) (65283 . 35) (65286 . 38) (65290 . 42)
(65312 . 64) (65296 . 48) (65297 . 49) (65298 . 50) (65299 . 51) (65300 . 52)
...)) make-vector 100 nil intern char-to-string symbol-name] 5)
  require(its)
 
byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\306\307\310\"\207"
[require its menudiag egg-mlh egg-cnv egg-com add-hook kill-emacs-hook
egg-kill-emacs-function] 3)
  require(egg)
 
byte-code("\300\301!\210\300\302!\210\303\304\305\306\307\301%\210\310\311\305\312\307\304\313\314&\7\210\310\315\316\317\307\304\313\320&\7\210\310\321\305\322\307\304\313\323&\7\210\324\325\326\"\207"
[require egg egg-edep custom-declare-group anthy-egg nil "Anthy interface for
Tamago 4." :group custom-declare-variable anthy-egg-use-utf8
("/usr/local/share/emacs/30.0.50/site-lisp/egg/egg/anthy.elc" . 86) :type
(choice (const :tag "Use UTF8" t) (const :tag "No use UTF8" nil))
anthy-egg-input-method-list '("japanese-egg-anthy")
("/usr/local/share/emacs/30.0.50/site-lisp/egg/egg/anthy.elc" . 138) (repeat
(string :format "Input method: %v\n" :size 0))
anthy-egg-use-chinese-korean-server
("/usr/local/share/emacs/30.0.50/site-lisp/egg/egg/anthy.elc" . 183) (choice
(const :tag "Use Anthy with Chinese and/or Korean servers" t) (const :tag "No
use" nil)) setplist anthy-egg-conversion-backend (egg-start-conversion
anthy-egg-convert egg-get-bunsetsu-source anthy-egg-get-bunsetsu-source
egg-get-bunsetsu-converted anthy-egg-get-bunsetsu-converted egg-list-candidates
anthy-egg-get-candidates egg-decide-candidate anthy-egg-select-candidate
egg-change-bunsetsu-length anthy-egg-resize-segment egg-end-conversion
anthy-egg-commit egg-special-candidate anthy-egg-special-candidate
egg-word-registration anthy-egg-word-registration egg-get-source-language
anthy-egg-get-source-language egg-get-converted-language
anthy-egg-get-converted-language)] 8)
  egg-activate-anthy("japanese-egg-anthy" its-select-hiragana)
  activate-input-method("japanese-egg-anthy")
  toggle-input-method(nil 1)
  funcall-interactively(toggle-input-method nil 1)
  command-execute(toggle-input-method)
----------------------------------------------------------------------

I investigated the problem and reported it to upstream.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69536

But they say this isn't bug of Emacs and we should fix the error by
changing source code of Tamago.

-- 
You are receiving this mail because:
You are the assignee for the bug.