Package: libpcre3
Version: 2:8.39-15
Tags: patch
User: helm...@debian.org
Usertags: dep17m2

Hi,

we want to finalize the /usr-merge transition by moving all aliased
files from / to /usr via DEP17 to avoid any negative effects arising
from aliasing. libpcre3 is involved, because installs a shared library
below /lib. I'm sending a patch, because it cannot be automatically
converted using dh-sequence-movetousr. Note that this patch must not be
uploaded to bookworm-backports or earlier as it would violate the
earlier file move moratorium there.

Helmut
diff --minimal -Nru pcre3-8.39/debian/changelog pcre3-8.39/debian/changelog
--- pcre3-8.39/debian/changelog 2022-12-22 17:45:21.000000000 +0100
+++ pcre3-8.39/debian/changelog 2024-02-09 16:13:23.000000000 +0100
@@ -1,3 +1,10 @@
+pcre3 (2:8.39-15.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move library to /usr. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 09 Feb 2024 16:13:23 +0100
+
 pcre3 (2:8.39-15) unstable; urgency=medium
 
   * Make currently-important packages optional as pcre3 is obsolete
diff --minimal -Nru pcre3-8.39/debian/dirs pcre3-8.39/debian/dirs
--- pcre3-8.39/debian/dirs      2022-12-22 17:45:21.000000000 +0100
+++ pcre3-8.39/debian/dirs      1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-usr/bin
-usr/sbin
diff --minimal -Nru pcre3-8.39/debian/rules pcre3-8.39/debian/rules
--- pcre3-8.39/debian/rules     2022-12-22 17:45:21.000000000 +0100
+++ pcre3-8.39/debian/rules     2024-02-09 16:12:49.000000000 +0100
@@ -93,10 +93,6 @@
        dh_install -a
        # This man page is in the main package, don't want it in -dev
        rm debian/libpcre3-dev/usr/share/man/man3/pcrepattern.3
-       # Move actual library to /lib
-       mkdir -p debian/libpcre3/lib/$(DEB_HOST_MULTIARCH)
-       mv debian/libpcre3/usr/lib/$(DEB_HOST_MULTIARCH)/libpcre.so.* 
debian/libpcre3/lib/$(DEB_HOST_MULTIARCH)
-       ln -sf /lib/$(DEB_HOST_MULTIARCH)/libpcre.so.3 
debian/libpcre3-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libpcre.so
        # we never need to reference the library path in pcre-config on
        # Debian, so clip it out so that the script will be multiarch-safe.
        sed -i -e"s,/$(DEB_HOST_MULTIARCH),,g" 
debian/libpcre3-dev/usr/bin/pcre-config

Reply via email to