Package: src:xemacs21
Version: 21.4.24-10
Tags: patch
Dear xemacs maintainer,
`prerm-base` uses Perl to check if various xemacs21 subpackages are
installed. Using `perl` in maintscripts is problematic because Perl may
no longer be installed in the future by the time the user removes or
purges the various xemacs21 subpackages (see
<https://wiki.debian.org/Proposals/EssentialOnDiet>.)
The specific use of `perl` in `prerm-base` can be easily replaced with
an equivalent `sed` invocation, see the attached patch.
Regards,
diff --git a/debian/prerm-base b/debian/prerm-base
index 73fd7e9..f1beb10 100644
--- a/debian/prerm-base
+++ b/debian/prerm-base
@@ -9,7 +9,7 @@ fi
# installed.
ALREADY=0
for i in mule nomule mule-canna-wnn gnome-mule gnome-nomule
gnome-mule-canna-wnn ; do
- STAT=`dpkg -s xemacs@MAJVERSION@-$i 2>/dev/null | perl -ne 'next if
$_ !~ m/^Status/; $_ =~ s/^Status:\s*(.*)/$1/; print;'`
+ STAT=$(dpkg -s xemacs@MAJVERSION@-$i 2>/dev/null | sed -ne
'/^Status:\s*/ s///p')
if [ "REPLACE_ME" != "$i" -a "$STAT" = "install ok installed" ] ; then
ALREADY=1
fi
--
Gioele Barabucci