Pull request for branch yem/host-packages
From: "Yann E. MORIN" <[email protected]>
Hello All!
This series adds parted as a host package. This will allow (eg.) post-image scripts to use parted.
Changes v2 -> v3: (Jerzy)
- Fix bad copy-paste in commit log
Changes v1 -> v2: (Thomas)
- don't depend on host-lvm2
- so don't add host-lvm2
- relax dependencies on lvm2/readline for target package
- fix typoes in commit log
Regards,
Yann E. MORIN.
The following changes since commit ea9e0fe309b55268c966424d5a686b07390d2e48:
opus: fix configure issue with ARM optimization when /bin/sh isn't bash (2013-12-08 11:08:12 +0100)
are available in the git repository at:
git://gitorious.org/buildroot/buildroot.git yem/host-packages
for you to fetch changes up to 6d03580b33ebf76667c4afe24ac1df563061f9f7:
package/parted: add a host variant (2013-12-08 12:42:12 +0100)
----------------------------------------------------------------
Yann E. MORIN (3):
package/parted: relax dependency on lvm2 package/parted: relax dependency on readline package/parted: add a host variant
package/Config.in.host | 1 + package/parted/Config.in | 4 ---- package/parted/Config.in.host | 6 ++++++ package/parted/parted.mk | 22 +++++++++++++++++++++- 4 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 package/parted/Config.in.host
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/3 package/parted: relax dependency on lvm2
From: "Yann E. MORIN" <[email protected]>
parted can be configured without support for LVM volumes, so we can relax the dependency on lvm2, and make it an optional feature.
Remove now no-longer needed dependency on MMU because of lvm2.
(Based on a code-snippet from Thomas.)
--- package/parted/Config.in | 3 --- package/parted/parted.mk | 9 ++++++++- 2 files changed, 8 insertions(+), 4 deletions(-)
package/parted/Config.in +0 -3
@@ -2,8 +2,6 @@ config BR2_PACKAGE_PARTED bool "parted" depends on BR2_LARGEFILE depends on BR2_USE_WCHAR - depends on BR2_USE_MMU # lvm2 - select BR2_PACKAGE_LVM2 select BR2_PACKAGE_READLINE select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID
@@ -13,5 +11,4 @@ config BR2_PACKAGE_PARTED http://www.gnu.org/software/parted/ comment "parted needs a toolchain w/ largefile, wchar" - depends on BR2_USE_MMU depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
package/parted/parted.mk +8 -1
@@ -7,9 +7,16 @@ PARTED_VERSION = 3.1 PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz PARTED_SITE = $(BR2_GNU_MIRROR)/parted -PARTED_DEPENDENCIES = readline util-linux lvm2 +PARTED_DEPENDENCIES = readline util-linux PARTED_INSTALL_STAGING = YES PARTED_LICENSE = GPLv3+ PARTED_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_LVM2),y) +PARTED_DEPENDENCIES += lvm2 +PARTED_CONF_OPT += --enable-device-mapper +else +PARTED_CONF_OPT += --disable-device-mapper +endif + $(eval $(autotools-package))
Signature · 1 line
1.8.1.2
PATCH 2/3 package/parted: relax dependency on readline
In reply to Yann E. MORINFrom: "Yann E. MORIN" <[email protected]>
parted can be configured without support for readline (ie. can be not interactive), so we can relax the dependency on readline, and make it an optional feature.
(Based on a code-snippet from Thomas.)
--- package/parted/Config.in | 1 - package/parted/parted.mk | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-)
package/parted/Config.in +0 -1
@@ -2,7 +2,6 @@ config BR2_PACKAGE_PARTED bool "parted" depends on BR2_LARGEFILE depends on BR2_USE_WCHAR - select BR2_PACKAGE_READLINE select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID help
package/parted/parted.mk +8 -1
@@ -7,11 +7,18 @@ PARTED_VERSION = 3.1 PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz PARTED_SITE = $(BR2_GNU_MIRROR)/parted -PARTED_DEPENDENCIES = readline util-linux +PARTED_DEPENDENCIES = util-linux PARTED_INSTALL_STAGING = YES PARTED_LICENSE = GPLv3+ PARTED_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_READLINE),y) +PARTED_DEPENDENCIES += readline +PARTED_CONF_OPT += --with-readline +else +PARTED_CONF_OPT += --without-readline +endif + ifeq ($(BR2_PACKAGE_LVM2),y) PARTED_DEPENDENCIES += lvm2 PARTED_CONF_OPT += --enable-device-mapper
Signature · 1 line
1.8.1.2
PATCH 3/3 package/parted: add a host variant
In reply to Yann E. MORINFrom: "Yann E. MORIN" <[email protected]>
Useful for for-build scripts to call parted, eg. to generate partition tables and such automatically.
Since the primary goal is to use parted within scripts, we do not need readline, so it is forcibly disabled.
Also, it does look unlikely that we need to manipulate LVM volumes, so we forcibly disable support for the device-mapper.
--- package/Config.in.host | 1 + package/parted/Config.in.host | 6 ++++++ package/parted/parted.mk | 6 ++++++ 3 files changed, 13 insertions(+) create mode 100644 package/parted/Config.in.host
package/Config.in.host +1 -0
@@ -10,6 +10,7 @@ source "package/lpc3250loader/Config.in.host" source "package/mtools/Config.in.host" source "package/omap-u-boot-utils/Config.in.host" source "package/openocd/Config.in.host" +source "package/parted/Config.in.host" source "package/sam-ba/Config.in.host" source "package/sunxi-tools/Config.in.host" source "package/uboot-tools/Config.in.host"
package/parted/Config.in.host new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_HOST_PARTED + bool "host parted" + help + parted, the GNU partition resizing program + + http://www.gnu.org/software/parted/
package/parted/parted.mk +6 -0
@@ -26,4 +26,10 @@ else PARTED_CONF_OPT += --disable-device-mapper endif +HOST_PARTED_DEPENDENCIES = host-util-linux +HOST_PARTED_CONF_OPT += \ + --without-readline \ + ----disable-device-mapper \ + $(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 1 line
1.8.1.2