svn commit: trunk/busybox/patches

landley at busybox.net landley at busybox.net
Thu May 4 19:57:38 UTC 2006


Author: landley
Date: 2006-05-04 12:57:34 -0700 (Thu, 04 May 2006)
New Revision: 14998

Log:
There aren't any bzip2 based RPMs.  If people want to experiment with new
packaging formats, there's ipkg and such...


Removed:
   trunk/busybox/patches/rpm2cpio_bzip2.patch


Changeset:
Deleted: trunk/busybox/patches/rpm2cpio_bzip2.patch
===================================================================
--- trunk/busybox/patches/rpm2cpio_bzip2.patch	2006-05-04 19:52:28 UTC (rev 14997)
+++ trunk/busybox/patches/rpm2cpio_bzip2.patch	2006-05-04 19:57:34 UTC (rev 14998)
@@ -1,63 +0,0 @@
-diff -ur busybox/archival/Config.in busybox/archival/Config.in
---- busybox/archival/Config.in	Sun May 23 09:15:37 2004
-+++ busybox/archival/Config.in	Sun May 23 09:15:58 2004
-@@ -127,6 +127,14 @@
- 	help
- 	  Converts an RPM file into a CPIO archive.
- 
-+config CONFIG_FEATURE_RPM2CPIO_BZIP2
-+	bool "  Support bzip2 decompression"
-+	default n
-+	depends on CONFIG_RPM2CPIO
-+	help
-+	  If you enable this option you'll be able to extract
-+	  rpms compressed with bzip2.
-+
- config CONFIG_RPM
- 	bool "rpm"
- 	default n
-diff -ur busybox/archival/libunarchive/Makefile.in busybox/archival/libunarchive/Makefile.in
---- busybox/archival/libunarchive/Makefile.in	Sun May 23 09:15:04 2004
-+++ busybox/archival/libunarchive/Makefile.in	Sun May 23 09:16:42 2004
-@@ -65,6 +65,7 @@
- LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES)
- LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o
- LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o
-+LIBUNARCHIVE-$(CONFIG_FEATURE_RPM2CPIO_BZIP2) += decompress_bunzip2.o
- LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o
- LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o
- LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o
-diff -ur busybox/archival/rpm2cpio.c busybox/archival/rpm2cpio.c
---- busybox/archival/rpm2cpio.c	Sun May 23 09:15:04 2004
-+++ busybox/archival/rpm2cpio.c	Sun May 23 09:19:03 2004
-@@ -91,14 +91,26 @@
- 	skip_header(rpm_fd);
- 
- 	bb_xread_all(rpm_fd, &magic, 2);
--	if ((magic[0] != 0x1f) || (magic[1] != 0x8b)) {
--		bb_error_msg_and_die("Invalid gzip magic");
-+	if ((magic[0] == 0x1f) || (magic[1] == 0x8b)) {
-+		check_header_gzip(rpm_fd);
-+		if (inflate_gunzip(rpm_fd, fileno(stdout)) != 0)
-+			bb_error_msg("Error inflating (gzip)");
- 	}
- 
--	check_header_gzip(rpm_fd);
--	if (inflate_gunzip(rpm_fd, STDOUT_FILENO) != 0) {
--		bb_error_msg("Error inflating");
-+	if ((magic[0] == 'B') && (magic[1] == 'Z')) {
-+#ifdef CONFIG_FEATURE_RPM2CPIO_BZIP2
-+		/* return to position before magic (eek..!) */
-+		lseek(rpm_fd, -2, SEEK_CUR);
-+		if(uncompressStream(rpm_fd, fileno(stdout)) != 0)
-+			bb_error_msg("Error inflating (bzip2)");
-+#else
-+		bb_error_msg_and_die("bzip2 not supported");
-+#endif
- 	}
-+
-+	else
-+		bb_error_msg_and_die("not gzip or bzip2 compressed");
-+  
- 
- 	close(rpm_fd);




More information about the busybox-cvs mailing list