Package: mmm-mode
Version: 0.5.8-2
Severity: important
Tags: +patch

Dear Maintainer,

Code added to fix #985874 by removing symlinks under
/usr/share/xemacs21/site-lisp also removes shipped cl-lib.el.

This causes cl-lib to be removed if xemacs21-mule is updated and makes
byte compilation fail under xemacs. Other mmm-mode stuff byte
compilation also fail under xemacs.

# apt install --reinstall xemacs21-mule
...
Remove mmm-mode for xemacs21
install/mmm-mode: Handling removal of emacsen flavor xemacs21
install/mmm-mode: purging byte-compiled files for xemacs21
...
Install mmm-mode for xemacs21
install/mmm-mode: Handling install of emacsen flavor xemacs21
install/mmm-mode: byte-compiling for xemacs21
Compiling /usr/share/xemacs21/site-lisp/mmm-mode/cl-lib.el...
>>Error occurred processing cl-lib.el: Opening input file: No such file or 
>>directory, /usr/share/xemacs21/site-lisp
/mmm-mode/cl-lib.el
...
and failures for other mmm-stuff

Removal should be more selective, please consider attached patch,
whicn only removes mmm- prefixed stuff.

Regards,

-- 
Agustin
From 41dcab0f875b40b6c4bfd14d94c010bc9e6a3dd0 Mon Sep 17 00:00:00 2001
From: Agustin Martin Domingo <agmar...@debian.org>
Date: Fri, 25 Mar 2022 12:14:06 +0100
Subject: [PATCH] mmm-mode.emacsen-remove: Do not remove cl-lib.el when
 removing xemacs symlinks.

Signed-off-by: Agustin Martin Domingo <agmar...@debian.org>
---
 debian/mmm-mode.emacsen-remove | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/mmm-mode.emacsen-remove b/debian/mmm-mode.emacsen-remove
index 6dac131..4f1b32a 100644
--- a/debian/mmm-mode.emacsen-remove
+++ b/debian/mmm-mode.emacsen-remove
@@ -9,7 +9,7 @@ rm -rf /usr/share/${FLAVOR}/site-lisp/mmm-mode/*.elc
 
 # xemacs has symlinks for the source files, which need to go
 if [ "$FLAVOR" != "emacs" ]; then
-    rm -rf /usr/share/${FLAVOR}/site-lisp/mmm-mode/
+    rm -f /usr/share/${FLAVOR}/site-lisp/mmm-mode/mmm-*.el
 fi
 
 exit 0;
-- 
2.35.1

Reply via email to