* [Buildroot] Add cpio package to make rpm work
@ 2015-08-21 12:15 universe II
2015-08-21 12:50 ` Vicente Olivert Riera
2015-08-23 14:53 ` Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: universe II @ 2015-08-21 12:15 UTC (permalink / raw)
To: buildroot
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
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))
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] Add cpio package to make rpm work
2015-08-21 12:15 [Buildroot] Add cpio package to make rpm work universe II
@ 2015-08-21 12:50 ` Vicente Olivert Riera
2015-08-21 13:35 ` universe II
2015-08-23 14:53 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-08-21 12:50 UTC (permalink / raw)
To: buildroot
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Add cpio package to make rpm work
2015-08-21 12:15 [Buildroot] Add cpio package to make rpm work universe II
2015-08-21 12:50 ` Vicente Olivert Riera
@ 2015-08-23 14:53 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-08-23 14:53 UTC (permalink / raw)
To: buildroot
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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-23 14:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21 12:15 [Buildroot] Add cpio package to make rpm work universe II
2015-08-21 12:50 ` Vicente Olivert Riera
2015-08-21 13:35 ` universe II
2015-08-23 14:53 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox