Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 maxima (5.30.0-1) unstable; urgency=low
 .
   * New upstream release
   * Bug fix: "Do not depend on tex-common", thanks to Elrond (Closes:
     #694049).
Author: Camm Maguire <camm@debian.org>
Bug-Debian: http://bugs.debian.org/694049

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- maxima-5.30.0.orig/src/cl-info.lisp
+++ maxima-5.30.0/src/cl-info.lisp
@@ -52,6 +52,8 @@
 
 ; ------------------ search help topics ------------------
 
+(defvar maxima::*maxima-index-dir* nil)
+
 (defun load-primary-index ()
   ;; Load the index, but make sure we use a sensible *read-base*.
   ;; See bug 1951964.  GCL doesn't seem to have
@@ -59,7 +61,7 @@
   ;; with-standard-io-syntax too much for what we want?
   (let*
     ((subdir-bit (or maxima::*maxima-lang-subdir* "."))
-     (path-to-index (maxima::combine-path maxima::*maxima-infodir* subdir-bit "maxima-index.lisp")))
+     (path-to-index (maxima::combine-path (or maxima::*maxima-index-dir* maxima::*maxima-infodir*) subdir-bit "maxima-index.lisp")))
     #-gcl
     (with-standard-io-syntax (load path-to-index))
     #+gcl
