On Sunday 10 February 2008, Frans Pop wrote: > Give libnewt0.52 a proper shlibs file changing the dependencies to > 'libnewt-udeb' and add an empty libnewt-udeb package in the newt source > package so that dependencies can be satisfied. Just to make sure that it's archived somewhere, here's a patch for newt that adds a udeb (with the library) and generates a correct shlibs file. I need to do some testing with it before submitting the patch.
diff -u newt-0.52.2/debian/control newt-0.52.2/debian/control --- newt-0.52.2/debian/control +++ newt-0.52.2/debian/control @@ -67,6 +67,17 @@ to provide extra functionality. This package contains the shared library for programs that have been built with newt. +Package: libnewt-udeb +Architecture: any +Section: debian-installer +Priority: extra +Depends: ${shlibs:Depends}, ${misc:Depends} +XC-Package-Type: udeb +Description: toolkit for text mode windowing with slang + Newt is a windowing toolkit for text mode built from the slang library. + . + This is the library package for use in debian-installer. + Package: whiptail Architecture: any Section: utils diff -u newt-0.52.2/debian/rules newt-0.52.2/debian/rules --- newt-0.52.2/debian/rules +++ newt-0.52.2/debian/rules @@ -17,6 +17,7 @@ PYVERS=$(shell pyversions -vr debian/control) LIB_PKG=libnewt$(SONAME) +LIB_UDEB=libnewt-udeb DEV_PKG=libnewt-dev PIC_PKG=libnewt-pic TCL_PKG=newt-tcl @@ -97,7 +98,7 @@ binary-indep: -binary-arch: $(LIB_PKG) $(DEV_PKG) $(PIC_PKG) $(TCL_PKG) $(PYTHON_PKG) $(WHIPTAIL_PKG) +binary-arch: $(LIB_PKG) $(LIB_UDEB) $(DEV_PKG) $(PIC_PKG) $(TCL_PKG) $(PYTHON_PKG) $(WHIPTAIL_PKG) $(LIB_PKG): build dh_testdir @@ -108,7 +109,7 @@ $(MAKE) -C $(BUILD_TREE)/po prefix=/usr \ DESTDIR=../../../debian/$@ HAVE_XGETTEXT=yes install dh_strip -p $@ - dh_makeshlibs -p $@ + dh_makeshlibs -p $@ --add-udeb libnewt-udeb dh_shlibdeps -L $(LIB_PKG) -l debian/$@/usr/lib dh_installdocs -p $@ -p $@ $(BUILD_TREE)/newt.spec dh_link -p $@ /usr/lib/libnewt.so.$(VERSION) /usr/lib/libnewt.so.$(SONAME) @@ -123,6 +124,22 @@ dh_md5sums -p $@ dh_builddeb -p $@ +$(LIB_UDEB): build + dh_testdir + dh_testroot + dh_installdirs -p $@ + dh_install -p $@ --sourcedir=$(BUILD_TREE) + dh_strip -p $@ + dh_shlibdeps -L $(LIB_PKG) -l debian/$@/usr/lib + dh_link -p $@ /usr/lib/libnewt.so.$(VERSION) /usr/lib/libnewt.so.$(SONAME) + rm debian/$@/usr/lib/libnewt.so + dh_compress -p $@ + dh_installdeb -p $@ + dh_fixperms -p $@ + dh_gencontrol -p $@ + dh_md5sums -p $@ + dh_builddeb -p $@ + $(PIC_PKG): build dh_testdir dh_testroot diff -u newt-0.52.2/debian/changelog newt-0.52.2/debian/changelog --- newt-0.52.2/debian/changelog +++ newt-0.52.2/debian/changelog @@ -1,3 +1,9 @@ +newt (0.52.2-11.2~fjp) UNRELEASED; urgency=low + + * Add udeb package. + + -- Frans Pop <fjp@debian.org> Mon, 11 Feb 2008 23:34:15 +0100 + newt (0.52.2-11.1) unstable; urgency=medium * NMU only in patch2: unchanged: --- newt-0.52.2.orig/debian/libnewt-udeb.install +++ newt-0.52.2/debian/libnewt-udeb.install @@ -0,0 +1 @@ +libnewt.so* usr/lib
Attachment:
signature.asc
Description: This is a digitally signed message part.