Control: retitle -1 Add udeb support to libtinfo5

On Sat, Apr 2, 2016 at 6:42 PM, Sven Joachim <[email protected]> wrote:
>
> I had come to the same conclusion.  For better or worse, packages are
> not only built in minimal chroots, so screen had better be fixed not to
> gain the extraneous dependencies if libncurses5-dev or libutempter-dev
> are installed on the build system.  I have filed bugs #819781 and
> #819789 for that purpose, you're welcome to tackle them.

Thanks for the two reports above!
Things will be easier if these two gets resolved.

And here's patch v4.

Changes v2:
 - add udeb supoort to libncurses5
Changes v3:
 - add "Priority: extra" to udeb in debian/control
 - fix typo when calling dh_makeshlibs
Changes v4:
 - remove udeb support for libncurses5, since it's not required by screen-udeb

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 17B3ACB1
From 46932b5d1a19dd8613be590e65d0d78ec114e102 Mon Sep 17 00:00:00 2001
From: Roger Shimizu <[email protected]>
Date: Sun, 27 Mar 2016 23:15:51 +0900
Subject: [PATCH] Add udeb support to libtinfo5

---
 debian/changelog              |  7 +++++++
 debian/control                | 13 +++++++++++++
 debian/libtinfo5-udeb.install |  2 ++
 debian/rules                  |  2 +-
 4 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 debian/libtinfo5-udeb.install

diff --git a/debian/changelog b/debian/changelog
index a02785a..6810fa1 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
+
+ -- Roger Shimizu <[email protected]>  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..253e66e 100644
--- a/debian/control
+++ b/debian/control
@@ -27,6 +27,19 @@ 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
+Priority: extra
+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}
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..4316d8d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -471,7 +471,7 @@ 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-ti) -V "$(package-ti) $(sodepver)" --add-udeb=$(package-ti)-udeb -- -c4
 	dh_makeshlibs -p$(package-lib) -V "$(package-lib) $(sodepver)" -- -c4
 	dh_makeshlibs -p$(package-libw) -V "$(package-libw) $(sodepver)" -- -c4
 ifneq ($(build_32),)
-- 
2.8.0.rc3

Reply via email to