Patchwork [v2] busybox: Add flock utility to default configuration.

login
register
mail settings
Submitter Peter Tworek
Date Feb. 3, 2012, 11:56 p.m.
Message ID <1328313391-9282-1-git-send-email-tworaz666@gmail.com>
Download mbox | patch
Permalink /patch/20689/
State New
Headers show

Comments

Peter Tworek - Feb. 3, 2012, 11:56 p.m.
Flock is required by pm-utils package to function properly
(/usr/lib/pm-utils/functions). It's shipped in both busybox and
util-linux. Both versions work fine with pm-utils. Enabling it
in busybox seems like simplest solution for the problem.

On armv5t this adds 2905b to busybox binary size:
-rwxr-xr-x 1 tworaz tworaz 2325856 Feb  4 00:43 busybox.flock
-rwxr-xr-x 1 tworaz tworaz 2322951 Feb  4 00:46 busybox.no-flock

Signed-off-by: Peter Tworek <tworaz666@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
---
 meta/recipes-core/busybox/busybox-1.19.3/defconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-core/busybox/busybox-1.19.3/defconfig b/meta/recipes-core/busybox/busybox-1.19.3/defconfig
index b474ad4..fa9c078 100644
--- a/meta/recipes-core/busybox/busybox-1.19.3/defconfig
+++ b/meta/recipes-core/busybox/busybox-1.19.3/defconfig
@@ -540,7 +540,7 @@  CONFIG_FEATURE_FDISK_WRITABLE=y
 # CONFIG_FEATURE_GPT_LABEL is not set
 # CONFIG_FEATURE_FDISK_ADVANCED is not set
 # CONFIG_FINDFS is not set
-# CONFIG_FLOCK is not set
+CONFIG_FLOCK=y
 # CONFIG_FREERAMDISK is not set
 CONFIG_FSCK_MINIX=y
 # CONFIG_MKFS_EXT2 is not set