Control: reassign 979458 src:jed 1:0.99.19-8
Control: reassign 979459 src:jed 1:0.99.19-8
Control: severity 979458 serious
Control: severity 979459 serious
Control: tags 979458 + patch
Control: tags 979459 + patch
Control: merge 979458 979459

With the upload of version 5.3-1 of the package debianutils, the tempfile command is definitively gone from Debian. This means that installation of the jed, jed-common, and xjed packages does not succeed in bookworm, since their postinst scripts invoke tempfile.

I am hereby reassigning the Bugs #979458 and #979459, which were assigned to the binary jed and jed-common packages, to the jed source package. I am also merging this two bug reports and rising their severity level to serious.

The trivial patch that fixes the problem is attached to this message.

Best,

Rafael Laboissière

P.S.: Note that removing the jed-common package from a bookworm system also fails because the tempfile command is used in the prerm maintainer script. Here is a simple recipe for doing it successfully:

    sudo ln -sf /bin/mktemp /usr/bin/tempfile ;  sudo apt remove jed-common ; 
sudo rm /usr/bin/tempfile
diff --git a/debian/jed-common.postinst b/debian/jed-common.postinst
index 415dbde..96b204a 100644
--- a/debian/jed-common.postinst
+++ b/debian/jed-common.postinst
@@ -7,7 +7,7 @@ set -e
 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 --git a/debian/jed-common.prerm b/debian/jed-common.prerm
index 296fd78..ca3e677 100644
--- a/debian/jed-common.prerm
+++ b/debian/jed-common.prerm
@@ -5,7 +5,7 @@ set -e
 case "$1" in
     remove|upgrade|deconfigure)
 
-        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=$?
diff --git a/debian/jed.postinst b/debian/jed.postinst
index 96bb2f9..f3ca2fa 100644
--- a/debian/jed.postinst
+++ b/debian/jed.postinst
@@ -12,7 +12,7 @@ case "$1" in
     	--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 --git a/debian/xjed.postinst b/debian/xjed.postinst
index 2648220..47ed8a0 100644
--- a/debian/xjed.postinst
+++ b/debian/xjed.postinst
@@ -12,7 +12,7 @@ case "$1" in
     	--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/ \

Reply via email to