[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#741420: bzip2: Add libbz2-udeb needed by recent hurd



Package: bzip2
Version: 1.0.6-5
Severity: wishlist
Tags: d-i patch
User: debian-hurd@lists.debian.org
Usertags: hurd

  hurd-udeb:hurd-i386 Depends on libbz2-1.0 [ hurd-i386 ] < none > ( none ) can't be satisfied!
  hurd-libs0.3-udeb:hurd-i386 Depends on libbz2-1.0 [ hurd-i386 ] < none > ( none ) can't be satisfied!

Attached patch adds library udeb needed by recent hurd versions.

Thanks for considering.

diff --git a/debian/control b/debian/control
index 3b9fac8..2999034 100644
--- a/debian/control
+++ b/debian/control
@@ -57,6 +57,28 @@ Description: high-quality block-sorting file compressor library - development
  The archive file format of bzip2 (.bz2) is incompatible with that of its
  predecessor, bzip (.bz).
 
+Package: libbz2-udeb
+Package-Type: udeb
+Architecture: any
+Priority: optional
+Section: debian-installer
+Description: high-quality block-sorting file compressor library - udeb
+ Shared library for use with the Debian installer.
+ .
+ bzip2 is a freely available, patent free, high-quality data compressor.
+ It typically compresses files to within 10% to 15% of the best available
+ techniques, whilst being around twice as fast at compression and six
+ times faster at decompression.
+ .
+ bzip2 compresses files using the Burrows-Wheeler block-sorting text
+ compression algorithm, and Huffman coding.  Compression is generally
+ considerably better than that achieved by more conventional
+ LZ77/LZ78-based compressors, and approaches the performance of the PPM
+ family of statistical compressors.
+ .
+ The archive file format of bzip2 (.bz2) is incompatible with that of its
+ predecessor, bzip (.bz).
+
 Package: bzip2
 Priority: standard
 Section: utils
diff --git a/debian/rules b/debian/rules
index 3a889d1..40069b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -161,15 +161,22 @@ binary-arch: build
 	mv debian/tmp/lib/libbz2.a debian/tmp-dev/usr/lib/$(DEB_HOST_MULTIARCH)/
 	mv debian/tmp/include debian/tmp-dev/usr/include
 	
-
 	# Library package
 	install -d debian/tmp-lib/lib/$(DEB_HOST_MULTIARCH)
 	for i in $$(ls debian/tmp/lib/libbz2.so*); do \
-	  (set -x; echo $$i; mv $$i debian/tmp-lib/lib/$(DEB_HOST_MULTIARCH)/); \
+	  (set -x; echo $$i; cp $$i debian/tmp-lib/lib/$(DEB_HOST_MULTIARCH)/); \
 	done
 	ln -s libbz2.so.1.0.4 debian/tmp-lib/lib/$(DEB_HOST_MULTIARCH)/libbz2.so.1
 	chmod -x debian/tmp-lib/lib/$(DEB_HOST_MULTIARCH)/*
 
+	# UDEB package
+	install -d debian/tmp-lib-udeb/lib/$(DEB_HOST_MULTIARCH)
+	for i in $$(ls debian/tmp/lib/libbz2.so*); do \
+	  (set -x; echo $$i; mv $$i debian/tmp-lib-udeb/lib/$(DEB_HOST_MULTIARCH)/); \
+	done
+	ln -s libbz2.so.1.0.4 debian/tmp-lib-udeb/lib/$(DEB_HOST_MULTIARCH)/libbz2.so.1
+	chmod -x debian/tmp-lib-udeb/lib/$(DEB_HOST_MULTIARCH)/*
+
 	# Binary package
 	install -d debian/tmp-run
 	mv debian/tmp/bin debian/tmp-run/bin
@@ -224,15 +231,18 @@ binary-arch: build
 	  fi; \
 	done
 	$(DEBSTRIP) --strip-unneeded -R .note -R .comment \
-	  debian/tmp-lib/lib/$(DEB_HOST_MULTIARCH)/*.so*
+	  debian/tmp-lib*/lib/$(DEB_HOST_MULTIARCH)/*.so*
 	$(DEBSTRIP) --strip-debug debian/tmp-dev/usr/lib/$(DEB_HOST_MULTIARCH)/*.a
 
 	# Control files
-	install -d debian/tmp-{lib,dev,run}/DEBIAN
+	install -d debian/tmp-{lib,lib-udeb,dev,run}/DEBIAN
 	cp debian/shlibs debian/tmp-lib/DEBIAN/shlibs
+	cp debian/shlibs debian/tmp-lib-udeb/DEBIAN/shlibs
 
 	dpkg-shlibdeps debian/tmp-lib/lib/$(DEB_HOST_MULTIARCH)/*.so*
 	dpkg-gencontrol -isp -Pdebian/tmp-lib -plibbz2-1.0
+	dpkg-shlibdeps -tudeb debian/tmp-lib-udeb/lib/$(DEB_HOST_MULTIARCH)/*.so*
+	dpkg-gencontrol -isp -Pdebian/tmp-lib-udeb -plibbz2-udeb
 	rm debian/substvars
 	dpkg-gencontrol -isp -Pdebian/tmp-dev -plibbz2-dev
 	dpkg-shlibdeps debian/tmp-run/bin/*
@@ -249,6 +259,7 @@ binary-arch: build
 	# Add md5sums
 	$(call gen_md5sums,run)
 	$(call gen_md5sums,lib)
+	$(call gen_md5sums,lib-udeb)
 	$(call gen_md5sums,dev)
 
 	# Fix perms
@@ -258,6 +269,7 @@ binary-arch: build
 	# Buildit
 	dpkg --build debian/tmp-run ..
 	dpkg --build debian/tmp-lib ..
+	dpkg --build debian/tmp-lib-udeb ../libbz2-udeb_$(DEBVERSION)_$(DEB_HOST_ARCH).udeb
 	dpkg --build debian/tmp-dev ..
 
 ifneq (,$(build64-stamp))
diff --git a/debian/shlibs b/debian/shlibs
index 888387b..568f551 100644
--- a/debian/shlibs
+++ b/debian/shlibs
@@ -1 +1,2 @@
 libbz2	1.0	libbz2-1.0
+udeb: libbz2 1.0 libbz2-1.0-udeb

Reply to: