Bug#1062716:

2024-02-02 Thread Miriam Espana Acebal
Attaching patch.
-- 
Miriam España Acebal
Software Engineer II - Ubuntu PublicCloud/Server
Canonical Ltd.
From 938bd71e0e8af3d3c854e54a12f5fea7d1a5e63e Mon Sep 17 00:00:00 2001
From: Miriam Espana Acebal 
Date: Fri, 2 Feb 2024 14:19:36 +0100
Subject: [PATCH] * d/prerm, d/postinst: fix path according to /usr movement

---
 debian/postinst | 2 +-
 debian/prerm| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index e92a53d..456e73a 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -3,7 +3,7 @@
 set -e
 
 if [ "$1" = configure ]; then
-update-alternatives --install /bin/mt mt /bin/mt-gnu 10 \
+update-alternatives --install /usr/bin/mt mt /usr/bin/mt-gnu 10 \
   --slave \
 	/usr/share/man/man1/mt.1.gz mt.1.gz /usr/share/man/man1/mt-gnu.1.gz
 fi
diff --git a/debian/prerm b/debian/prerm
index 89490ea..08f3b39 100644
--- a/debian/prerm
+++ b/debian/prerm
@@ -3,5 +3,5 @@
 set -e
 
 if [ "$1" = remove ]; then
-update-alternatives --remove mt /bin/mt-gnu
+update-alternatives --remove mt /usr/bin/mt-gnu
 fi
-- 
2.40.1



Bug#1062716: update-alternatives: error: alternative path /bin/mt-gnu doesn't exist

2024-02-02 Thread Miriam España Acebal
Package: cpio
Version: 2.15+dfsg-1
Severity: important
Tags: patch
X-Debbugs-Cc: miriam.esp...@canonical.com

Dear Maintainer,

we found that latest version of cpio is breaking some tests 
(sbuild/unshare-qemuwrapper) for some packages in migration (i.e. openssh) for 
the next Ubuntu series, due to the following change:

  * Move files to /usr
Patch by Helmut Grohne 
Closes: #1059756

It seems the path should be refreshed accordingly to the movement to
/usr in the prerm and the postinst too.

I reported the bug 2052295 in Ubuntu [1]. I made a patch for it which was 
already applied in Ubuntu. I attach it here for your consideration in case if 
helps in Debian too.

Thanks in advance, 

Miriam (mirespace)
 
[1] https://bugs.launchpad.net/ubuntu/+source/cpio/+bug/2052295

-- no debconf information