Skip to contentSkip to conversation

busybox: Add flock utility to default configuration.

PATCH Superseded Peter Tworek 3 participants 4 messages Feb 2, 2012 – Feb 8, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox: Add flock utility to default configuration.

Flock is required by 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 simpliest solution for the problem.

---
 meta/recipes-core/busybox/busybox-1.19.3/defconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-core/busybox/busybox-1.19.3/defconfig +1 -1
index b474ad4..fa9c078 100644
@@ -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
Signature · 1 line
1.7.3.4
Reviewed-by on v1 1/1
#1 lore raw

Am Donnerstag, den 02.02.2012, 21:21 +0100 schrieb Peter Tworek:

Quoted 1 line

Flock is required by by pm-utils package to function properly

One »by« too much.

Quoted 3 lines

(/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 simpliest solution for the problem.

simplest

Quoted 10 lines
---
 meta/recipes-core/busybox/busybox-1.19.3/defconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-core/busybox/busybox-1.19.3/defconfig +0 -0
index b474ad4..fa9c078 100644

meta/recipes-core/busybox/busybox-1.19.3/defconfig CONFIG_FEATURE_FDISK_WRITABLE=y · line 546

Quoted 8 lines
meta/recipes-core/busybox/busybox-1.19.3/defconfig +1 -1
@@ -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

People are always interested in the size changes of the package when such programs are added to the default configuration. Do you have such numbers?

Thanks,

Paul

#2 lore raw
Quoted 3 lines · Paul Menzel

Am Donnerstag, den 02.02.2012, 21:21 +0100 schrieb Peter Tworek:

Quoted 1 line

Flock is required by by pm-utils package to function properly

One »by« too much.

Fixed in v2, thanks.

Quoted 5 lines
Quoted 4 lines

(/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 simpliest solution for the problem.

simplest

Thanks, fixed in v2.

Quoted 6 lines
Quoted 6 lines
---
  meta/recipes-core/busybox/busybox-1.19.3/defconfig |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 16 lines

meta/recipes-core/busybox/busybox-1.19.3/defconfig CONFIG_FEATURE_FDISK_WRITABLE=y · line 546

Quoted 13 lines
meta/recipes-core/busybox/busybox-1.19.3/defconfig +1 -1
index b474ad4..fa9c078 100644
@@ -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

People are always interested in the size changes of the package when such programs are added to the default configuration. Do you have such numbers?

Added some data to v2. On armv5t it makes busybox binary larger by ~2.8k

Quoted 7 lines

Thanks,

Paul

#3 lore raw
In reply to Peter Tworek
Quoted 15 lines · Peter Tworek

Flock is required by 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 simpliest solution for the problem.

---
  meta/recipes-core/busybox/busybox-1.19.3/defconfig |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-core/busybox/busybox-1.19.3/defconfig +0 -0
index b474ad4..fa9c078 100644

meta/recipes-core/busybox/busybox-1.19.3/defconfig CONFIG_FEATURE_FDISK_WRITABLE=y · line 546

Quoted 8 lines
meta/recipes-core/busybox/busybox-1.19.3/defconfig +1 -1
@@ -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

Merged this one into OE-core, missed the v2 version with updated comment

Sorry and Thanks
Sau!