Skip to contentSkip to conversation

Add cpio package to make rpm work

Buildroot universe II 3 participants 4 messages Aug 21, 2015 – Aug 23, 2015

lore
Share & tools
lore
#0 lore raw

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

package/Config.in 2015-08-21 13:27:27.000000000 +0200 renamed from package/Config.in 2015-03-01 22:26:12.000000000 +0100 +3 -0
diff -Naur a/package/Config.in b/package/Config.in
@@ -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
package/cpio/Config.in 2015-08-21 12:59:36.000000000 +0200 renamed from package/cpio/Config.in 1970-01-01 01:00:00.000000000 +0100 +9 -0
diff -Naur a/package/cpio/Config.in b/package/cpio/Config.in
@@ -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.
package/cpio/cpio.mk 2015-08-21 13:15:22.000000000 +0200 renamed from package/cpio/cpio.mk 1970-01-01 01:00:00.000000000 +0100 +11 -0
diff -Naur a/package/cpio/cpio.mk b/package/cpio/cpio.mk
@@ -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))
#2 lore raw

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:

Quoted 15 lines

Dear Andreas,

Quoted 1 line · universe II

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 at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw
In reply to universe II

Hello Andreas,

Quoted 10 lines · universe II

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

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com