Bug#1134106: latex-cjk-common: emacs reports: Error while loading 50latex-cjk-common: Symbol’s value as variable is void: flavor

Kai Tetzlaff <[email protected]> Thu, 16 Apr 2026 15:32:28 +0200
Newsgroups gmane.linux.debian.devel.tetex
Message-ID <177634634851.582712.17683659406018183044.reportbug__17982.8558162384$1776347132$gmane$org@annapurna.tetzco.de>
Package: latex-cjk-common
Version: 4.8.5-3
Severity: normal
Tags: patch

Dear Maintainer,

starting emacs with either of the latex-cjk-common, latex-cjk-thai packages
installed, results in the following errors in the *Messages* buffer:

Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Error while loading 50latex-cjk-common: Symbol’s value as variable is void: flavor
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...
Error while loading 50latex-cjk-thai: Symbol’s value as variable is void: flavor

I have attached a patch which fixes the issue.

BR, Kai

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (990, 'testing'), (300, 'unstable'), (80, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.19.11+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages latex-cjk-common depends on:
ii  emacsen-common      3.0.8
ii  libc6               2.42-14
ii  libkpathsea6        2025.20250727.75242+ds-5+b2
ii  tex-common          6.20
ii  texlive-font-utils  2025.20260124-1
ii  texlive-latex-base  2025.20260124-1

latex-cjk-common recommends no packages.

latex-cjk-common suggests no packages.

-- no debconf information
deb-cjk.patch (text/plain, 1.3 KB)
diff --git a/debian/latex-cjk-common.emacsen-startup b/debian/latex-cjk-common.emacsen-startup
index ab41cc9..c6ed4f3 100644
--- a/debian/latex-cjk-common.emacsen-startup
+++ b/debian/latex-cjk-common.emacsen-startup
@@ -12,7 +12,7 @@
 ;; installed in a subdirectory of the respective site-lisp directory.
 ;; We have to add this to the load-path:
 (let ((package-dir (concat "/usr/share/"
-                           (symbol-name flavor)
+                           (symbol-name debian-emacs-flavor)
                            "/site-lisp/latex-cjk-common")))
   (when (file-directory-p package-dir)
         (setq load-path (cons package-dir load-path))))
diff --git a/debian/latex-cjk-thai.emacsen-startup b/debian/latex-cjk-thai.emacsen-startup
index c865b42..2916a79 100644
--- a/debian/latex-cjk-thai.emacsen-startup
+++ b/debian/latex-cjk-thai.emacsen-startup
@@ -12,7 +12,7 @@
 ;; installed in a subdirectory of the respective site-lisp directory.
 ;; We have to add this to the load-path:
 (let ((package-dir (concat "/usr/share/"
-                           (symbol-name flavor)
+                           (symbol-name debian-emacs-flavor)
                            "/site-lisp/latex-cjk-thai")))
   (when (file-directory-p package-dir)
         (setq load-path (cons package-dir load-path))))