From: universe II <universeii@gmx.de>
To: buildroot@busybox.net
Subject: [Buildroot] Add cpio package to make rpm work
Date: Fri, 21 Aug 2015 14:15:18 +0200 [thread overview]
Message-ID: <55D71656.7040704@gmx.de> (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
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))
next reply other threads:[~2015-08-21 12:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-21 12:15 universe II [this message]
2015-08-21 12:50 ` [Buildroot] Add cpio package to make rpm work Vicente Olivert Riera
2015-08-21 13:35 ` universe II
2015-08-23 14:53 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55D71656.7040704@gmx.de \
--to=universeii@gmx.de \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox