Package: base-files
Version: 12.4+deb12u1
Followup-For: Bug #1039979
Control: tags -1 patch

I attach a patch to change absolute symlinks to relative symlinks, which would 
fix this bugreport if you choose to do so.
>From d08818adfe64f768fb31da1a3b095ff30bd3105a Mon Sep 17 00:00:00 2001
From: Your Name <y...@example.com>
Date: Fri, 4 Aug 2023 10:40:28 +0000
Subject: [PATCH] use relative links

---
 debian/postinst.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/postinst.in b/debian/postinst.in
index 0ad4ce3..dc00e49 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -74,8 +74,8 @@ if [ "$1" = "configure" ] && [ "$2" = "" ]; then
     ln -s ../mail "$DPKG_ROOT/var/spool/mail"
   fi
   install_directory run/lock 1777 root
-  migrate_directory /var/run /run
-  migrate_directory /var/lock /run/lock
+  migrate_directory /var/run ../run
+  migrate_directory /var/lock ../run/lock
 
   install_local_dir /usr/local
   install_local_dir /usr/local/share
-- 
2.39.2

Reply via email to