Subject: [PATCH 2/6] d/: rename udeb install files to match udeb package names

From: Igor Krpanic <[email-masked]>
Date: Sun, 9 Aug 2026 13:18:00 +0200

dh_install expects debian/<package>.install, but the files were named
after a lib*linux-udeb scheme, so the library udebs were built empty.
Install the libraries from the multiarch path instead of the old
.libs/ build tree paths, and add libzfs_core to libzfs7-udeb (the
tools link against it).

Signed-off-by: Igor Krpanic <[email-masked]>
---
 debian/clean                                              | 8 ++++----
 debian/libnvpair3-udeb.install.in                         | 1 +
 debian/libnvpair3linux-udeb.install.in                    | 1 -
 debian/libuutil3-udeb.install.in                          | 1 +
 debian/libuutil3linux-udeb.install.in                     | 1 -
 debian/libzfs7-udeb.install.in                            | 2 ++
 debian/libzfs7linux-udeb.install.in                       | 1 -
 debian/libzfsbootenv1linux-udeb.install.in                | 1 -
 debian/libzpool7-udeb.install.in                          | 1 +
 debian/libzpool7linux-udeb.install.in                     | 1 -
 ...{zfsutils-linux-udeb.install => zfsutils-udeb.install} | 0
 ...nux-udeb.isinstallable => zfsutils-udeb.isinstallable} | 0
 12 files changed, 9 insertions(+), 9 deletions(-)
 create mode 100644 debian/libnvpair3-udeb.install.in
 delete mode 100644 debian/libnvpair3linux-udeb.install.in
 create mode 100644 debian/libuutil3-udeb.install.in
 delete mode 100644 debian/libuutil3linux-udeb.install.in
 create mode 100644 debian/libzfs7-udeb.install.in
 delete mode 100644 debian/libzfs7linux-udeb.install.in
 delete mode 100644 debian/libzfsbootenv1linux-udeb.install.in
 create mode 100644 debian/libzpool7-udeb.install.in
 delete mode 100644 debian/libzpool7linux-udeb.install.in
 rename debian/{zfsutils-linux-udeb.install => zfsutils-udeb.install} (100%)
 rename debian/{zfsutils-linux-udeb.isinstallable => zfsutils-udeb.isinstallable} (100%)

diff --git a/debian/clean b/debian/clean
index f88d8ee5..2375dc90 100644
--- a/debian/clean
+++ b/debian/clean
@@ -4,12 +4,12 @@ contrib/pyzfs/build/
 contrib/pyzfs/libzfs_core/__pycache__/
 contrib/pyzfs/libzfs_core/bindings/__pycache__/
 contrib/pyzfs/pyzfs.egg-info/
-debian/libnvpair3linux-udeb.install
+debian/libnvpair3-udeb.install
 debian/libnvpair3linux.install
-debian/libuutil3linux-udeb.install
+debian/libuutil3-udeb.install
 debian/libuutil3linux.install
-debian/libzfs7linux-udeb.install
+debian/libzfs7-udeb.install
 debian/libzfs7linux.install
 debian/libzfslinux-dev.install
-debian/libzpool7linux-udeb.install
+debian/libzpool7-udeb.install
 debian/libzpool7linux.install
diff --git a/debian/libnvpair3-udeb.install.in b/debian/libnvpair3-udeb.install.in
new file mode 100644
index 00000000..fce54227
--- /dev/null
+++ b/debian/libnvpair3-udeb.install.in
@@ -0,0 +1 @@
+usr/lib/@DEB_HOST_MULTIARCH@/libnvpair.so.*
diff --git a/debian/libnvpair3linux-udeb.install.in b/debian/libnvpair3linux-udeb.install.in
deleted file mode 100644
index 915c2451..00000000
--- a/debian/libnvpair3linux-udeb.install.in
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/@DEB_HOST_MULTIARCH@/libnvpair/.libs/libnvpair.so.*[0-9]	usr/lib/@DEB_HOST_MULTIARCH@
diff --git a/debian/libuutil3-udeb.install.in b/debian/libuutil3-udeb.install.in
new file mode 100644
index 00000000..bb333867
--- /dev/null
+++ b/debian/libuutil3-udeb.install.in
@@ -0,0 +1 @@
+usr/lib/@DEB_HOST_MULTIARCH@/libuutil.so.*
diff --git a/debian/libuutil3linux-udeb.install.in b/debian/libuutil3linux-udeb.install.in
deleted file mode 100644
index 33385939..00000000
--- a/debian/libuutil3linux-udeb.install.in
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/@DEB_HOST_MULTIARCH@/libuutil/.libs/libuutil.so.*[0-9]
diff --git a/debian/libzfs7-udeb.install.in b/debian/libzfs7-udeb.install.in
new file mode 100644
index 00000000..a9054c14
--- /dev/null
+++ b/debian/libzfs7-udeb.install.in
@@ -0,0 +1,2 @@
+usr/lib/@DEB_HOST_MULTIARCH@/libzfs.so.*
+usr/lib/@DEB_HOST_MULTIARCH@/libzfs_core.so.*
diff --git a/debian/libzfs7linux-udeb.install.in b/debian/libzfs7linux-udeb.install.in
deleted file mode 100644
index 855fcedc..00000000
--- a/debian/libzfs7linux-udeb.install.in
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/@DEB_HOST_MULTIARCH@/libzfs/.libs/libzfs.so.*[0-9]
diff --git a/debian/libzfsbootenv1linux-udeb.install.in b/debian/libzfsbootenv1linux-udeb.install.in
deleted file mode 100644
index c7daeb8f..00000000
--- a/debian/libzfsbootenv1linux-udeb.install.in
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/@DEB_HOST_MULTIARCH@/libzfsbootenv/.libs/libzfsbootenv.so.*[0-9]	usr/lib/@DEB_HOST_MULTIARCH@
diff --git a/debian/libzpool7-udeb.install.in b/debian/libzpool7-udeb.install.in
new file mode 100644
index 00000000..0e087a27
--- /dev/null
+++ b/debian/libzpool7-udeb.install.in
@@ -0,0 +1 @@
+usr/lib/@DEB_HOST_MULTIARCH@/libzpool.so.*
diff --git a/debian/libzpool7linux-udeb.install.in b/debian/libzpool7linux-udeb.install.in
deleted file mode 100644
index 759d0624..00000000
--- a/debian/libzpool7linux-udeb.install.in
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/@DEB_HOST_MULTIARCH@/libzpool/.libs/libzpool.so.*[0-9]
diff --git a/debian/zfsutils-linux-udeb.install b/debian/zfsutils-udeb.install
similarity index 100%
rename from debian/zfsutils-linux-udeb.install
rename to debian/zfsutils-udeb.install
diff --git a/debian/zfsutils-linux-udeb.isinstallable b/debian/zfsutils-udeb.isinstallable
similarity index 100%
rename from debian/zfsutils-linux-udeb.isinstallable
rename to debian/zfsutils-udeb.isinstallable
-- 
2.47.3