Skip to contentSkip to conversation

tar: add Config.in.host

PATCH New Markus Mayer 2 participants 2 messages Feb 15, 2019 – Feb 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tar: add Config.in.host

Add a config option to build tar for the host, so the user can choose to build it, even if Buildroot wouldn't do so ordinarily.

---

Since Buildroot can only work with three tar version (1.27-1.29), the likelihood that system tar is too old or too new is quite high -- and increasing. Ubuntu 16.04 and 18.04 ship with an acceptabe version of tar. As of Ubuntu 18.10, system tar is already too recent.

Our main build machines are Ubuntu 16.04, but we need to support other platforms. We need build machines of different flavours to be able to build buildroot without requiring an Internet connection, using only pre-downloaded package tar-balls (downloaded during the master build).

We can't rely that the tar sources have been downloaded automatically based on what was detected on the master build machine, because it may not require host-tar while a different build machine might.

A manual config option will give us the choice to build and bundle host-tar regardless of what Buildroot finds on the master.

 package/Config.in.host     | 1 +
 package/tar/Config.in.host | 8 ++++++++
 2 files changed, 9 insertions(+)
 create mode 100644 package/tar/Config.in.host
package/Config.in.host +1 -0
index b4c501a33b32..6fa37c33732b 100644
@@ -60,6 +60,7 @@ menu "Host utilities"
 	source "package/squashfs/Config.in.host"
 	source "package/sunxi-tools/Config.in.host"
 	source "package/swig/Config.in.host"
+	source "package/tar/Config.in.host"
 	source "package/tegrarcm/Config.in.host"
 	source "package/ti-cgt-pru/Config.in.host"
 	source "package/uboot-tools/Config.in.host"
package/tar/Config.in.host new file +8 -0
new file mode 100644
index 000000000000..ef3bdf30de89
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_HOST_TAR
+	bool "host tar"
+	help
+	  A program that saves many files together into a single tape
+	  or disk archive, and can restore individual files from the
+	  archive.
+
+	  http://www.gnu.org/software/tar/
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 tar: add Config.in.host

Hello Markus,

Quoted 16 lines · On Fri, 15 Feb 2019 15:20:06 -0800 Markus Mayer <[email protected]> wrote:

Add a config option to build tar for the host, so the user can choose to build it, even if Buildroot wouldn't do so ordinarily.

---

Since Buildroot can only work with three tar version (1.27-1.29), the likelihood that system tar is too old or too new is quite high -- and increasing. Ubuntu 16.04 and 18.04 ship with an acceptabe version of tar. As of Ubuntu 18.10, system tar is already too recent.

Our main build machines are Ubuntu 16.04, but we need to support other platforms. We need build machines of different flavours to be able to build buildroot without requiring an Internet connection, using only pre-downloaded package tar-balls (downloaded during the master build).

Quoted 6 lines

We can't rely that the tar sources have been downloaded automatically based on what was detected on the master build machine, because it may not require host-tar while a different build machine might.

A manual config option will give us the choice to build and bundle host-tar regardless of what Buildroot finds on the master.

This use case is already solved by the option BR2_FORCE_HOST_BUILD, introduced recently in commit 3f1b965bc36c64f83c962e373f7b5fe1245e3355, with the exception that BR2_FORCE_HOST_BUILD solves the issue for all host packages, not just for host-tar.

Best regards,

Thomas Petazzoni

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com