* Rafael Laboissière <[email protected]> [2021-08-24 08:45]:
[…]
The trivial patch that fixes the problem is attached to this message.
Please, consider rather the patch that is attached to the present
message. The jed-common.prerm script must honor the failed-upgrade
argument, since the script in version 1:0.99.19-8 will fail on upgrade.
In order to remove the jed package from their systems, users will have to
upgrade it to 1:0.99.19-9 previously.
Best,
Rafael Laboissière
diff -Nru jed-0.99.19/debian/jed-common.postinst jed-0.99.19/debian/jed-common.postinst
--- jed-0.99.19/debian/jed-common.postinst 2014-06-09 22:54:57.000000000 -0300
+++ jed-0.99.19/debian/jed-common.postinst 2021-08-25 04:34:25.000000000 -0300
@@ -7,7 +7,7 @@
case "$1" in
configure)
- TEMP=$(tempfile)
+ TEMP=$(mktemp)
printf "Running /usr/share/jed/compile/jed-common..."
if ! /usr/share/jed/compile/jed-common install >$TEMP 2>&1; then
diff -Nru jed-0.99.19/debian/jed-common.prerm jed-0.99.19/debian/jed-common.prerm
--- jed-0.99.19/debian/jed-common.prerm 2014-06-09 22:54:57.000000000 -0300
+++ jed-0.99.19/debian/jed-common.prerm 2021-08-25 04:35:10.000000000 -0300
@@ -3,9 +3,9 @@
set -e
case "$1" in
- remove|upgrade|deconfigure)
+ remove|upgrade|deconfigure|failed-upgrade)
- TEMP=$(tempfile)
+ TEMP=$(mktemp)
printf "Running /usr/share/jed/compile/jed-common..."
RET=0
/usr/share/jed/compile/jed-common remove >$TEMP 2>&1 || RET=$?
@@ -18,9 +18,6 @@
;;
- failed-upgrade)
- ;;
-
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
diff -Nru jed-0.99.19/debian/jed.postinst jed-0.99.19/debian/jed.postinst
--- jed-0.99.19/debian/jed.postinst 2014-06-09 22:54:57.000000000 -0300
+++ jed-0.99.19/debian/jed.postinst 2021-08-25 04:34:25.000000000 -0300
@@ -12,7 +12,7 @@
--install /usr/bin/jed-script jed-script /usr/bin/jed 50 \
--slave /usr/share/man/man1/jed-script.1.gz jed-script.1.gz /usr/share/man/man1/jed.1.gz;
- TEMP=$(tempfile)
+ TEMP=$(mktemp)
RET=0
printf "Updating precompiled files..."
run-parts --exit-on-error --arg=install /usr/share/jed/compile/ \
diff -Nru jed-0.99.19/debian/xjed.postinst jed-0.99.19/debian/xjed.postinst
--- jed-0.99.19/debian/xjed.postinst 2014-06-09 22:54:57.000000000 -0300
+++ jed-0.99.19/debian/xjed.postinst 2021-08-25 04:34:25.000000000 -0300
@@ -12,7 +12,7 @@
--install /usr/bin/jed-script jed-script /usr/bin/xjed 40 \
--slave /usr/share/man/man1/jed-script.1.gz jed-script.1.gz /usr/share/man/man1/xjed.1.gz;
- TEMP=$(tempfile)
+ TEMP=$(mktemp)
RET=0
printf "Updating precompiled files..."
run-parts --exit-on-error --arg=install /usr/share/jed/compile/ \