Control: retitle -1 Add udeb support to libtinfo5 and libncurses5

Dear Sven,

Really appreciate your review and comments!
I addressed your concern, and here's patch v2.

Changes v2:
- add udeb supoort to libncurses5
- change install.in to install for udeb
- add "--add-udeb" option to dh_makeshlibs in debian/rules
- remove no use arch for udeb in debian/control

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 17B3ACB1
From 16a4000c8fbf052796e399302a79812f270fa8ed Mon Sep 17 00:00:00 2001
From: Roger Shimizu <rogershim...@gmail.com>
Date: Sun, 27 Mar 2016 23:15:51 +0900
Subject: [PATCH] Add udeb support to libtinfo5 and libncurses5

---
 debian/changelog                |  7 +++++++
 debian/control                  | 24 ++++++++++++++++++++++++
 debian/libncurses5-udeb.install |  4 ++++
 debian/libtinfo5-udeb.install   |  2 ++
 debian/rules                    |  4 ++--
 5 files changed, 39 insertions(+), 2 deletions(-)
 create mode 100644 debian/libncurses5-udeb.install
 create mode 100644 debian/libtinfo5-udeb.install

diff --git a/debian/changelog b/debian/changelog
index a02785a..55ea615 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ncurses (6.0+20160319-2) UNRELEASED; urgency=medium
+
+  [ Roger Shimizu ]
+  * Add udeb support to libtinfo5 and libncurses5
+
+ -- Roger Shimizu <rogershim...@gmail.com>  Sat, 26 Mar 2016 18:22:36 +0900
+
 ncurses (6.0+20160319-1) unstable; urgency=medium
 
   * New upstream patchlevel.
diff --git a/debian/control b/debian/control
index a740fa2..5de67a4 100644
--- a/debian/control
+++ b/debian/control
@@ -27,6 +27,18 @@ Description: shared low-level terminfo library for terminal handling
  .
  This package contains the shared low-level terminfo library.
 
+Package: libtinfo5-udeb
+Package-Type: udeb
+Section: debian-installer
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: shared low-level terminfo library for terminal handling - udeb
+ The ncurses library routines are a terminal-independent method of
+ updating character screens with reasonable optimization.
+ .
+ This package contains the stripped-down udeb version of shared low-level
+ terminfo library.
+
 Package: libncurses5
 Architecture: any
 Pre-Depends: ${misc:Pre-Depends}
@@ -40,6 +52,18 @@ Description: shared libraries for terminal handling
  This package contains the shared libraries necessary to run programs
  compiled with ncurses.
 
+Package: libncurses5-udeb
+Package-Type: udeb
+Section: debian-installer
+Architecture: any
+Depends: libtinfo5-udeb (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: shared libraries for terminal handling -udeb
+ The ncurses library routines are a terminal-independent method of
+ updating character screens with reasonable optimization.
+ .
+ This package contains the stripped-down udeb version of shared libraries
+ necessary to run programs compiled with ncurses.
+
 Package: libtinfo-dev
 Architecture: any
 Section: libdevel
diff --git a/debian/libncurses5-udeb.install b/debian/libncurses5-udeb.install
new file mode 100644
index 0000000..162fb52
--- /dev/null
+++ b/debian/libncurses5-udeb.install
@@ -0,0 +1,4 @@
+usr/lib/*/libncurses.so.*
+usr/lib/*/libpanel.so.*
+usr/lib/*/libform.so.*
+usr/lib/*/libmenu.so.*
diff --git a/debian/libtinfo5-udeb.install b/debian/libtinfo5-udeb.install
new file mode 100644
index 0000000..c6aa24a
--- /dev/null
+++ b/debian/libtinfo5-udeb.install
@@ -0,0 +1,2 @@
+usr/lib/*/libtinfo.so.*
+usr/lib/*/libtic.so.*
diff --git a/debian/rules b/debian/rules
index e1f67dc..063495c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -471,8 +471,8 @@ endif
 	dh_compress -s -N$(package-examples)
 	dh_fixperms -s
 	dh_link -s
-	dh_makeshlibs -p$(package-ti) -V "$(package-ti) $(sodepver)" -- -c4
-	dh_makeshlibs -p$(package-lib) -V "$(package-lib) $(sodepver)" -- -c4
+	dh_makeshlibs -p$(package-ti) -V "$(package-ti) $(sodepver)" --add-udeb=$(package-ti)-udeb -- -c4
+	dh_makeshlibs -p$(package-lib) -V "$(package-lib) $(sodepver)" --add-udeb=$(package-ti)-udeb -- -c4
 	dh_makeshlibs -p$(package-libw) -V "$(package-libw) $(sodepver)" -- -c4
 ifneq ($(build_32),)
 	dh_makeshlibs -p$(package-ti-32) -V "$(package-ti-32) $(sodepver)" -- -c4
-- 
2.8.0.rc3

Reply via email to