[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1036748: marked as done (unblock: libricohcamerasdk/1.1.0-4)



Your message dated Sun, 28 May 2023 16:25:54 +0000
with message-id <E1q3JDO-0015IY-C0@respighi.debian.org>
and subject line unblock libricohcamerasdk
has caused the Debian Bug report #1036748,
regarding unblock: libricohcamerasdk/1.1.0-4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1036748: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1036748
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package libricohcamerasdk

[ Reason ]
Due to some magic in debhelper/ldconfig a link to nowhere remained on the computer.
This link will be removed in postinst/postrm now.

[ Impact ]
The user will keep a link to a non existing file on his computer.

[ Tests ]
As there is no code change, no new test was added.

[ Risks ]
There should be no risks for this leaf package in non-free.

[ Checklist ]
  [x] all changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in testing

unblock libricohcamerasdk/1.1.0-4
diff -Nru libricohcamerasdk-1.1.0/debian/changelog libricohcamerasdk-1.1.0/debian/changelog
--- libricohcamerasdk-1.1.0/debian/changelog	2022-05-18 23:30:36.000000000 +0200
+++ libricohcamerasdk-1.1.0/debian/changelog	2023-05-18 11:30:36.000000000 +0200
@@ -1,3 +1,10 @@
+libricohcamerasdk (1.1.0-4) unstable; urgency=medium
+
+  * add postrm/postinst script to remove bad link
+    (Closes: #1035795)
+
+ -- Thorsten Alteholz <debian@alteholz.de>  Thu, 18 May 2023 11:30:36 +0200
+
 libricohcamerasdk (1.1.0-3) unstable; urgency=medium
 
   * manual build on: amd64 armhf
diff -Nru libricohcamerasdk-1.1.0/debian/libricohcamerasdk.postinst libricohcamerasdk-1.1.0/debian/libricohcamerasdk.postinst
--- libricohcamerasdk-1.1.0/debian/libricohcamerasdk.postinst	1970-01-01 01:00:00.000000000 +0100
+++ libricohcamerasdk-1.1.0/debian/libricohcamerasdk.postinst	2023-05-18 11:30:36.000000000 +0200
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+set +e
+
+linkfile=$(ls -1 /usr/lib/*/libRicohCameraSDKCpp.so 2> /dev/null)
+readlinkfile=""
+if [ ! -z "$linkfile" ]; then
+  readlinkfile=$(readlink $linkfile 2> /dev/null)
+fi
+
+set -e
+
+case "$1" in
+    configure)
+	# we shall not have a link from libRicohCameraSDKCpp.so to libRicohCameraSDKCpp.so.1.1.0
+	if [ -L "$linkfile" ]; then
+		if [ "$readlinkfile" = "libRicohCameraSDKCpp.so.1.1.0" ]; then
+			echo "D: wrong link detected, remove it again"
+			rm $linkfile
+		fi
+	fi
+	;;
+    abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff -Nru libricohcamerasdk-1.1.0/debian/libricohcamerasdk.postrm libricohcamerasdk-1.1.0/debian/libricohcamerasdk.postrm
--- libricohcamerasdk-1.1.0/debian/libricohcamerasdk.postrm	1970-01-01 01:00:00.000000000 +0100
+++ libricohcamerasdk-1.1.0/debian/libricohcamerasdk.postrm	2023-05-18 11:30:36.000000000 +0200
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+set +e
+
+linkfile=$(ls -1 /usr/lib/*/libRicohCameraSDKCpp.so 2> /dev/null)
+readlinkfile="" 
+if [ ! -z "$linkfile" ]; then
+  readlinkfile=$(readlink $linkfile 2> /dev/null)
+fi
+
+set -e
+
+
+case "$1" in
+    purge|remove)
+	# we shall not have a link from libRicohCameraSDKCpp.so to libRicohCameraSDKCpp.so.1.1.0
+	if [ -L "$linkfile" ]; then
+		if [ "$readlinkfile" = "libRicohCameraSDKCpp.so.1.1.0" ]; then
+			echo "D: wrong link detected, remove it again"
+			rm $linkfile
+		fi
+	fi
+	;;
+    upgrade|failed-upgrade)
+	;;
+    *)
+	echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

--- End Message ---
--- Begin Message ---
Unblocked.

--- End Message ---

Reply to: