Hi.
I was sort of annoyed by nano not working in debian-installer.
The result is the attached patch, which changes this.
As I'm just a random user of nano in debian-installer initrd, you probably want
to wait what someone of the debian-installer team has to say about this.
Especially, I don't know about the hardcoded dependency on libc6 and whether bug
#182042 obsoletes this bug.

Cheers

Thomas
diff -urN x/slang-1.4.5/debian/control slang-1.4.5/debian/control
--- x/slang-1.4.5/debian/control        Fri Feb 28 00:43:27 2003
+++ slang-1.4.5/debian/control  Fri Feb 28 00:28:11 2003
@@ -112,3 +112,15 @@
  on custom installation floppies and in embedded systems. Unless you're
  making one of those, you won't need this package.
  This packages has wide character support.
+
+Package: slang1a-utf8-udeb
+Section: debian-installer
+Priority: optional
+Architecture: any
+Depends: libc6-udeb
+Description: S-Lang library with utf8 support
+ This is a udeb, or a microdeb, of the S-Lang library with wide charater
+ support. As such it is the installer counterpart of slang1a-utf8.
+ You only need this package to support applications needing S-Lang during
+ the Debian installation process time and probably don't need to select it
+ manually for installation.
diff -urN x/slang-1.4.5/debian/rules slang-1.4.5/debian/rules
--- x/slang-1.4.5/debian/rules  Fri Feb 28 00:43:27 2003
+++ slang-1.4.5/debian/rules    Fri Feb 28 00:45:42 2003
@@ -1,4 +1,5 @@
 #!/usr/bin/make -f
+# udeb adaptation by Thomas Viehmann
 # Made with the aid of dh_make, by Craig Small
 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
 # This version is for a hypothetical package that builds an
@@ -19,6 +20,10 @@
 
 LIBSLANG=slang1
 LIBSLANG_UTF8=slang1a-utf8
+LIBSLANG_UTF8_UDEB=$(LIBSLANG_UTF8)-udeb
+
+DEBVERSION=$(shell dpkg-parsechangelog | grep '^Version: ' | sed -e 's/^Version: //')
+UDEBNAME=$(LIBSLANG_UTF8_UDEB)_$(DEBVERSION)_$(shell dpkg-architecture 
-qDEB_BUILD_GNU_CPU).udeb
 
 build: 
        true;
@@ -105,10 +110,12 @@
        (sed 's/@DEBIANUTF8ERRORCHECK@/#ifndef/' < debian/slang.h.extra.in; cat 
src/slang.h ) > `pwd`/debian/slang1-utf8-dev/usr/include/slang.h
        chmod 644 `pwd`/debian/slang1-utf8-dev/usr/include/slang.h
 
+       cp debian/slang1-utf8-dev/usr/lib/libslang.so.* 
debian/$(LIBSLANG_UTF8_UDEB)/lib/libslang.so.$(SOMAJOR)-UTF8.$(SOMINOR)
        mv debian/slang1-utf8-dev/usr/lib/libslang.so.* 
debian/slang1a-utf8/lib/libslang.so.$(SOMAJOR)-UTF8.$(SOMINOR)
 
        # The ldconfig symlink to make the library work ASAP.  This is not really 
required.
        cd debian/slang1a-utf8/lib ; ln -sf libslang.so.$(SOMAJOR)-UTF8.$(SOMINOR) 
libslang.so.$(SOMAJOR)-UTF8
+       cd debian/slang1a-utf8-udeb/lib ; ln -sf 
libslang.so.$(SOMAJOR)-UTF8.$(SOMINOR) libslang.so.$(SOMAJOR)-UTF8
 
        # Correct the .so link for slang1-utf8-dev library
        cd debian/slang1-utf8-dev/usr/lib ; ln -sf 
/lib/libslang.so.$(SOMAJOR)-UTF8.$(SOMINOR) libslang.so
@@ -120,8 +127,8 @@
 binary-arch: binary-nonutf8 binary-utf8
        dh_testdir -a
        dh_testroot -a
-       dh_installdocs -a
-       dh_installexamples -a
+       dh_installdocs -a -N$(LIBSLANG_UTF8_UDEB)
+       dh_installexamples -a -N$(LIBSLANG_UTF8_UDEB)
 
        cd debian/slang1-dev/usr/share/doc/slang1-dev/examples/ ; \
                mv demo/* . ; \
@@ -131,10 +138,10 @@
                mv Makefile.simple Makefile ; \
                rm -f config.status config.log configure configure.in
 
-       dh_installmenu -a
-       dh_installcron -a
-       dh_installmanpages -a
-       dh_installchangelogs -a changes.txt
+       dh_installmenu -a -N$(LIBSLANG_UTF8_UDEB)
+       dh_installcron -a -N$(LIBSLANG_UTF8_UDEB)
+       dh_installmanpages -a -N$(LIBSLANG_UTF8_UDEB)
+       dh_installchangelogs -a changes.txt -N$(LIBSLANG_UTF8_UDEB)
        dh_strip -a
        dh_compress -a
 
@@ -148,10 +155,15 @@
        dh_makeshlibs -p$(LIBSLANG_UTF8) -V "${LIBSLANG_UTF8} (>> 1.4.4-7.1)"
        dh_installdeb -a
        dh_shlibdeps -a
-       dh_gencontrol 
-
-       dh_md5sums -a
-       dh_builddeb -a
+       dh_gencontrol -a -N$(LIBSLANG_UTF8_UDEB)
+       dh_md5sums -a -N$(LIBSLANG_UTF8_UDEB)
+       dh_builddeb -a -N$(LIBSLANG_UTF8_UDEB)
+
+       # don't know how to do shlibdeps
+       # dh_shlibdeps
+       dh_gencontrol -a -p$(LIBSLANG_UTF8_UDEB) -- -fdebian/files~
+       dpkg-distaddfile $(UDEBNAME) debian-installer optional
+       dh_builddeb -p$(LIBSLANG_UTF8_UDEB) --filename=$(UDEBNAME)
 
 source diff:                                                                  
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
diff -urN x/slang-1.4.5/debian/slang1a-utf8-udeb.dirs 
slang-1.4.5/debian/slang1a-utf8-udeb.dirs
--- x/slang-1.4.5/debian/slang1a-utf8-udeb.dirs Thu Jan  1 01:00:00 1970
+++ slang-1.4.5/debian/slang1a-utf8-udeb.dirs   Thu Feb 27 23:18:48 2003
@@ -0,0 +1 @@
+lib

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to