Package: libtextwrap
Severity: wishlist
Tags: patch
Tags: d-i

The debian installer includes the libtextwrap library since cdebconf
uses it to wrap text. We have always included this library by copying it
from the system where debian-installer is built. We're in the process of
trying to clean all such things up, and so I have made the attached
patch, which creates a libtextwrap1-udeb package.

Note that this patch removes your debian/libtextwrap1.shlibs file, since
the presense of that file was preventing dh_makeshlibs from generating a
sylibs file. The dh_makeshlibs call you have in your debian/rules
produces a file with this content:

libtextwrap 1 libtextwrap1

Which is different from the current shlibs for the package:

libtextwrap 1 libtextwrap1 (>> 0.01-0)

I don't know if this versioned dependency is really needed, if it is
needed, then your rules file should pass -V to dh_makeshlibs.

The reason this shlibs stuff matters is because my patch uses
dh_makeshlibs to add a "udeb:" line to your shlibs file. This will cause
udebs build against it to have a dependeny on the new libtextwrap1-deb.


(By the way, I noticed that the clean rule of this package does not
delete all the files produced by autoconf during the build of the
package. You might want to clean that up.)

-- 
see shy jo
diff -ur --new-file old/libtextwrap-0.1/debian/control 
libtextwrap-0.1/debian/control
--- old/libtextwrap-0.1/debian/control  2006-03-27 17:06:07.000000000 -0500
+++ libtextwrap-0.1/debian/control      2006-03-27 16:15:34.000000000 -0500
@@ -2,7 +2,7 @@
 Section: libs
 Priority: important
 Maintainer: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4), libtool (> 1.5.2-1), automake1.7, autoconf
+Build-Depends: debhelper (>= 5.0.26), libtool (> 1.5.2-1), automake1.7, 
autoconf
 Standards-Version: 3.6.2
 
 Package: libtextwrap-dev
@@ -42,3 +42,11 @@
  (like Chinese and Japanese).
  .
   Homepage http://libtextwrap.sourceforge.net/
+
+Package: libtextwrap1-udeb
+Section: debian-installer
+Priority: optional
+Architecture: any
+Depends: ${shlibs:Depends} ${misc:Depends}
+XC-Package-Type: udeb
+Description: text-wrapping library with i18n - runtime udeb
diff -ur --new-file old/libtextwrap-0.1/debian/libtextwrap1-udeb.install 
libtextwrap-0.1/debian/libtextwrap1-udeb.install
--- old/libtextwrap-0.1/debian/libtextwrap1-udeb.install        1969-12-31 
19:00:00.000000000 -0500
+++ libtextwrap-0.1/debian/libtextwrap1-udeb.install    2006-03-27 
16:15:47.000000000 -0500
@@ -0,0 +1,2 @@
+usr/lib/libtextwrap.so.1
+usr/lib/libtextwrap.so.1.0.0
diff -ur --new-file old/libtextwrap-0.1/debian/libtextwrap1.shlibs 
libtextwrap-0.1/debian/libtextwrap1.shlibs
--- old/libtextwrap-0.1/debian/libtextwrap1.shlibs      2006-03-27 
17:06:07.000000000 -0500
+++ libtextwrap-0.1/debian/libtextwrap1.shlibs  1969-12-31 19:00:00.000000000 
-0500
@@ -1 +0,0 @@
-libtextwrap 1 libtextwrap1 (>> 0.01-0)
diff -ur --new-file old/libtextwrap-0.1/debian/rules 
libtextwrap-0.1/debian/rules
--- old/libtextwrap-0.1/debian/rules    2006-03-27 17:06:07.000000000 -0500
+++ libtextwrap-0.1/debian/rules        2006-03-27 16:57:41.000000000 -0500
@@ -77,7 +77,7 @@
        dh_strip
        dh_compress
        dh_fixperms
-       dh_makeshlibs
+       dh_makeshlibs --add-udeb=libtextwrap1-udeb
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol

Attachment: signature.asc
Description: Digital signature

Reply via email to