diff mbox

Add cpio package to make rpm work

Message ID 55D71656.7040704@gmx.de
State Rejected
Headers show

Commit Message

universe II Aug. 21, 2015, 12:15 p.m. UTC
Dear all,
I configured buildroot to add the rpm package to my target system, but I 
ran into a problem when executing rpm on the target system. Reason is, 
that a lot of rpms a packaged using the binary format of cpio. But the 
busybox builtin cpio only supports "newc" and "crc" format. Therefore 
the cpio package is necessary when rpm should be able to handle rpms in 
binary format. The following patch add the cpio package to buildroot.

Regards,
Andreas

Comments

Vicente Olivert Riera Aug. 21, 2015, 12:50 p.m. UTC | #1
Dear Andreas,

On 08/21/2015 01:15 PM, universe II wrote:
> The following patch add the cpio package to buildroot.Regards,

we already have a cpio package in Buildroot:

http://git.buildroot.net/buildroot/tree/package/cpio

Regards,

Vincent.
universe II Aug. 21, 2015, 1:35 p.m. UTC | #2
Dear Vincent,
thanks for the information. I don't have git access at work, so I used 
the latest release (2015.05) and this one did not include cpio. That's 
the reason I wasn't aware of the fact that in the meanwhile someone else 
did the same than me.

Regards,
Andreas

Am 21.08.2015 um 14:50 schrieb Vicente Olivert Riera:
> Dear Andreas,
>
> On 08/21/2015 01:15 PM, universe II wrote:
>> The following patch add the cpio package to buildroot.Regards,
> we already have a cpio package in Buildroot:
>
> http://git.buildroot.net/buildroot/tree/package/cpio
>
> Regards,
>
> Vincent.
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Thomas Petazzoni Aug. 23, 2015, 2:53 p.m. UTC | #3
Hello Andreas,

On Fri, 21 Aug 2015 14:15:18 +0200, universe II wrote:
> Dear all,
> I configured buildroot to add the rpm package to my target system, but I 
> ran into a problem when executing rpm on the target system. Reason is, 
> that a lot of rpms a packaged using the binary format of cpio. But the 
> busybox builtin cpio only supports "newc" and "crc" format. Therefore 
> the cpio package is necessary when rpm should be able to handle rpms in 
> binary format. The following patch add the cpio package to buildroot.
> 
> Regards,
> Andreas

As indicated by Vicente, we already have a cpio package in Buildroot.
So I've marked your patch as Rejected in our patch tracking system.

Best regards,

Thomas
diff mbox

Patch

diff -Naur a/package/Config.in b/package/Config.in
--- a/package/Config.in 2015-03-01 22:26:12.000000000 +0100
+++ b/package/Config.in 2015-08-21 13:27:27.000000000 +0200
@@ -105,6 +105,9 @@ 
         source "package/binutils/Config.in"
         source "package/bsdiff/Config.in"
         source "package/bustle/Config.in"
+if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+       source "package/cpio/Config.in"
+endif
         source "package/cppunit/Config.in"
         source "package/cvs/Config.in"
  if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
diff -Naur a/package/cpio/Config.in b/package/cpio/Config.in
--- a/package/cpio/Config.in    1970-01-01 01:00:00.000000000 +0100
+++ b/package/cpio/Config.in    2015-08-21 12:59:36.000000000 +0200
@@ -0,0 +1,9 @@ 
+config BR2_PACKAGE_CPIO
+       bool "cpio"
+       help
+         cpio copies files into or out of a cpio or tar archive.
+         This cpio version supports more formats (especially the
+         binary format) than the version provided bybusybox.
+         Note: Make sure to disable cpio in busybox because the
+               busybox cpio version will be found first according
+               to PATH variable.
diff -Naur a/package/cpio/cpio.mk b/package/cpio/cpio.mk
--- a/package/cpio/cpio.mk      1970-01-01 01:00:00.000000000 +0100
+++ b/package/cpio/cpio.mk      2015-08-21 13:15:22.000000000 +0200
@@ -0,0 +1,11 @@ 
+################################################################################
+#
+# cpio
+#
+################################################################################
+
+CPIO_VERSION = 2.11
+CPIO_SOURCE = cpio-$(CPIO_VERSION).tar.bz2
+CPIO_SITE =http://www.gnu.org/software/cpio
+
+$(eval $(autotools-package))