• Bug#1099292: t-code: FTBFS: make[2]: *** [Makefile:481: mazegaki.dic] E

    From Santiago Vila@21:1/5 to All on Sat Mar 1 22:10:04 2025
    Package: src:t-code
    Version: 2:2.3.1-10
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    (unwind-protect (progn (insert-file-contents (tcode-path-for-read fWrong type argument: obarrayp, [nil nil nil nil nil nil nil nil nil nil ...]
    ile)) (let ((n (count-lines (point-min) (point-max))) (i 0)) (while (not (eobp)) (if (= 0 (logand i 1023)) (message "kihon-yomi: %d/%d" i n)) (tc-mkmzdic-put-string (buffer-substring (point) (progn (end-of-line) (point)))) (forward-line) (setq i (1+ i))))
    ) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
    (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (tcode-path-for-read file)) (let ((n (count-lines (point-min) (point-max))) (i 0)) (while (not (eobp)) (if (= 0 (logand i 1023)) (message "kihon-yomi: %d/%d" i n)
    ) (tc-mkmzdic-put-string (buffer-substring (point) (progn (end-of-line) (point)))) (forward-line) (setq i (1+ i))))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
    (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (tcode-path-for-read file)) (let ((n (count-lines (point-min) (point-max))) (i 0)) (while (not (eobp)) (if
    (= 0 (logand i 1023)) (message "kihon-yomi: %d/%d" i n)) (tc-mkmzdic-put-string (buffer-substring (point) (progn (end-of-line) (point)))) (forward-line) (setq i (1+ i))))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
    tc-mkmzdic-put-kihon-yomi("pd_kihon.yom")
    (let ((coding-system-for-read 'euc-jp) (coding-system-for-write 'euc-jp-unix)) (if (and (file-exists-p outfile) (not (y-or-n-p (format "file %s already exists. Overwrite?" outfile)))) (error "Canceled.")) (tc-mkmzdic-init-status 'cannot-input) (
    message "reading certain files") (tc-mkmzdic-set-status-from-files certains 'certain) (message "reading uncertain files") (tc-mkmzdic-set-status-from-files uncertains 'uncertain) (tc-mkmzdic-init-obarray 300000) (message "parsing kihon-yomi") (tc-mkmzdic-
    put-kihon-yomi kihon-yomi) (tc-mkmzdic-final-status) (message "sorting kanji") (tc-mkmzdic-sort-kanji) (message "reading additional dics") (while mazedics (tc-mkmzdic-put-file (car mazedics)) (setq mazedics (cdr mazedics))) (let ((temp-buffer (generate-
    new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (tc-mkmzdic-map-insert-yomi) (goto-char (point-min)) (while (search-forward "—/" nil t) (replace-match "/" nil t)) (write-region (point-min) (poi
    nt-max) outfile)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))) (tc-mkmzdic-final-obarray))
    tc-mkmzdic("mazegaki.dic" nil ("t225.dat" "t300.dat" "t400.dat" "t450.dat" "t575.dat" "t675.dat" "t900.dat" "t1200.dat" "t1353.dat") "pd_kihon.yom" "greece.maz" "itaiji.maz" "jukujiku.maz")
    tcode-make-mazegaki-dictionary()
    (let (tcode-init-file-name set-auto-coding-function) (load "tc-pre-base") (provide 'tc-pre) (setq tcode-site-data-directory nil) (load "tc-setup") (setq tcode-data-directory nil) (progn (setq tcode-mazegaki-certains nil) (setq tcode-mazegaki-uncertains
    (list "t225.dat" "t300.dat" "t400.dat" "t450.dat" "t575.dat" "t675.dat" "t900.dat" "t1200.dat" "t1353.dat"))) (tcode-make-mazegaki-dictionary))
    load-with-code-conversion("/<<PKGBUILDDIR>>/mazegaki/mk-mzdic" "/<<PKGBUILDDIR>>/mazegaki/mk-mzdic" nil t)
    command-line-1(("-l" "./mk-mzdic"))
    command-line()
    normal-top-level()
    make[2]: *** [Makefile:481: mazegaki.dic] Error 255
    make[2]: Leaving directory '/<<PKGBUILDDIR>>/mazegaki'
    make[1]: *** [Makefile:356: all-recursive] Error 1
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_build: error: make -j1 returned exit code 2
    make: *** [debian/rules:19: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202503/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:t-code, so that this is still
    visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kentaro HAYASHI@21:1/5 to All on Tue Mar 11 05:00:02 2025
    Control: tags -1 patch

    It might be fixed by:

    diff -ur t-code-2.3.1.orig/lisp/tc-mkmzdic.el
    t-code-2.3.1/lisp/tc-mkmzdic.el ---
    t-code-2.3.1.orig/lisp/tc-mkmzdic.el 2002-09-26
    11:22:50.000000000 +0900 +++ t-code-2.3.1/lisp/tc-mkmzdic.el
    2025-03-11 12:50:23.000000000 +0900 @@ -107,7 +107,7 @@ (defvar tc-mkmzdic-obarray nil)
    (defun tc-mkmzdic-init-obarray (size)
    - (setq tc-mkmzdic-obarray (make-vector size nil)))
    + (setq tc-mkmzdic-obarray (make-vector size 0)))

    (defun tc-mkmzdic-final-obarray ()
    (setq tc-mkmzdic-obarray nil))

    Regards,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Mar 11 05:00:02 2025
    Processing control commands:

    tags -1 patch
    Bug #1099292 [src:t-code] t-code: FTBFS: make[2]: *** [Makefile:481: mazegaki.dic] Error 255
    Added tag(s) patch.

    --
    1099292: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099292
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Mar 11 14:10:01 2025
    This is a multi-part message in MIME format...

    Your message dated Tue, 11 Mar 2025 13:04:52 +0000
    with message-id <E1trzHw-004cca-0L@fasolo.debian.org>
    and subject line Bug#1099292: fixed in t-code 2:2.3.1-11
    has caused the Debian Bug report #1099292,
    regarding t-code: FTBFS: make[2]: *** [Makefile:481: mazegaki.dic] Error 255
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1099292: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099292
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 1 Mar 2025 21:03:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-121.4 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,
    PP_MIME_FAKE_ASCII_TEXT,SPF_HELO_PASS,SPF_NONE,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 120; hammy, 150; neutral, 116; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*sanvila, 0.000-+--H*rp:U*sanvila Return-path: <sanvila@debian.org>
    Received: from mailly.debian.org ([2001: