From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Camm Maguire <camm@debian.org>
Date: Feb, 22 2026 21:06:34 +0000
Subject: [PATCH] <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.

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

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-<Vendor>: <vendor-bugtracker-url>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>

--- maxima-5.49.0+dsfg.orig/src/cl-info.lisp
+++ maxima-5.49.0+dsfg/src/cl-info.lisp
@@ -256,8 +256,8 @@
 (defun load-info-hashtables (dir-name deffn-defvr-pairs section-pairs
 			     ;; In Debian, lsp index file must be in different directory from info files
 			     &aux (dir-name
-				   (or (when (equal (pathname (concatenate 'string maxima::*maxima-index-dir* "/"))
-						    dir-name)
+				   (or (when (equal (pathname-directory maxima::*maxima-index-dir*)
+						    (remove "." (pathname-directory dir-name) :test 'string=))
 					 (maxima::combine-path maxima::*maxima-infodir* ""))
 				       dir-name)))
   (if (and (zerop (length section-pairs)) 
