introducing util-linux-ng as replacement for util-linux
PATCH 1/2 introducing util-linux-ng as replacement for util-linux
From: Marcus Osdoba <[email protected]>
mark util-linux as deprecated since next version (util-linux-ng) is available some basic components of utillinuxng can be switched of (--disable-<> in configure step) this patch uses version 2.17.2 of util-linux-ng
--- package/Config.in | 1 + ...0001-replace-bcopy-bzero-index-and-rindex.patch | 418 ++++++++++++++++++++ .../0002-Allow-linking-with-uClibc.patch | 26 ++ package/util-linux-ng/Config.in | 47 +++ package/util-linux-ng/util-linux-ng.mk | 57 +++ package/util-linux/Config.in | 1 + 6 files changed, 550 insertions(+), 0 deletions(-) create mode 100644 package/util-linux-ng/0001-replace-bcopy-bzero-index-and-rindex.patch create mode 100644 package/util-linux-ng/0002-Allow-linking-with-uClibc.patch create mode 100644 package/util-linux-ng/Config.in create mode 100644 package/util-linux-ng/util-linux-ng.mk
package/Config.in +1 -0
@@ -472,6 +472,7 @@ source "package/psmisc/Config.in" source "package/sysklogd/Config.in" source "package/sysvinit/Config.in" source "package/util-linux/Config.in" +source "package/util-linux-ng/Config.in" endif endmenu
package/util-linux-ng/0001-replace-bcopy-bzero-index-and-rindex.patch new file +418 -0
418 lines not on this page · raw message
package/util-linux-ng/0002-Allow-linking-with-uClibc.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 7973232b86fd16cbcee3bf5e743392c8a452d085 Mon Sep 17 00:00:00 2001 +From: Daniel Mierswa <impulze@...> +Date: Mon, 17 Aug 2009 07:21:35 +0200 +Subject: [PATCH 2/2] Allow linking with uClibc + +uClibc uses lseek64 as llseek, so use it. +--- + shlibs/blkid/src/llseek.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/shlibs/blkid/src/llseek.c b/shlibs/blkid/src/llseek.c +index 5bd0e51..75b7d24 100644 +--- a/shlibs/blkid/src/llseek.c ++++ b/shlibs/blkid/src/llseek.c +@@ -30,7 +30,7 @@ + + #ifdef __linux__ + +-#if defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE) ++#if defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE) || defined(__UCLIBC__) + + #define my_llseek lseek64 + +-- +1.6.4 +
package/util-linux-ng/Config.in new file +47 -0
47 lines not on this page · raw message
package/util-linux-ng/util-linux-ng.mk new file +57 -0
57 lines not on this page · raw message
package/util-linux/Config.in +1 -0
@@ -3,6 +3,7 @@ config BR2_PACKAGE_UTIL-LINUX select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE depends on BR2_INET_RPC + depends on BR2_DEPRECATED help Various useful/essential Linux utilities.
Signature · 1 line
1.7.1
PATCH 2/2 updated xfsprogs to 3.1.3 which depends on libuuid (either provided by e2fsprogs or util-linux-ng)
From: Marcus Osdoba <[email protected]>
development notes:
- make sure not to use lib64 and
show way how to integrate gettext with BR2 dependencies;
- shared libs patch is not neccessary for usage on target (tested positive with armv5te)
- the libuuid of e2fsprogs runs fine with xfsprogs, too;
it is possible to run xfsprogs with libuuid from e2fsprogs xor util-linux-ng;
--- package/util-linux-ng/Config.in | 3 + package/util-linux-ng/util-linux-ng.mk | 7 +- package/xfsprogs/Config.in | 8 ++- package/xfsprogs/xfsprogs.mk | 118 ++++++++------------------------ 4 files changed, 40 insertions(+), 96 deletions(-)
package/util-linux-ng/Config.in +3 -0
@@ -13,6 +13,9 @@ comment "util-linux-ng requires a toolchain with PROGRAM_INVOCATION support" comment "util-linux-ng requires a toolchain with LARGEFILE support" depends on !BR2_LARGEFILE +comment "UUID library support already activated outside util-linux-ng" + depends on ( BR2_PACKAGE_UTIL_LINUX_NG_LIBUUID && BR2_PACKAGE_E2FSPROGS_LIBUUID ) + if BR2_PACKAGE_UTIL_LINUX_NG comment "utils selection"
package/util-linux-ng/util-linux-ng.mk +4 -3
@@ -7,7 +7,6 @@ UTIL_LINUX_NG_VERSION=2.17.2 UTIL_LINUX_NG_MAJORVERSION=2.17 UTIL_LINUX_NG_SITE=$(BR2_KERNEL_MIRROR)/linux/utils/util-linux-ng/v$(UTIL_LINUX_NG_MAJORVERSION) UTIL_LINUX_NG_SOURCE=util-linux-ng-$(UTIL_LINUX_NG_VERSION).tar.bz2 -#UTIL_LINUX_NG_INSTALL_STAGING = YES UTIL_LINUX_NG_CONF_OPT=--disable-use-tty-group \ --enable-shared \ --without-libiconv-prefix \
@@ -16,10 +15,12 @@ UTIL_LINUX_NG_CONF_OPT=--disable-use-tty-group \ --disable-nls \ --disable-schedutils \ --disable-doc - -UTIL_LINUX_NG_DEPENDENCIES=e2fsprogs UTIL_LINUX_NG_LIBTOOL_PATCH = NO +ifeq ($(BR2_PACKAGE_E2FSPROGS),y) + UTIL_LINUX_NG_DEPENDENCIES=e2fsprogs +endif + # make util-linux-ng win over links to busybox binary ifeq ($(BR2_PACKAGE_BUSYBOX),y) UTIL_LINUX_NG_DEPENDENCIES+=busybox
package/xfsprogs/Config.in +5 -3
@@ -3,13 +3,15 @@ comment "Note that xfsprogs needs a toolchain with UCLIBC_SV4_DEPRECATED and UCL depends on BR2_PACKAGE_XFSPROGS comment "xfsprogs requires a toolchain with LARGEFILE support" - depends on !BR2_LARGEFILE + depends on !BR2_LARGEFILE + +comment "xfsprogs requires at least on UUID library (from e2fsprogs or from util-linux-ng)" + depends on !( BR2_PACKAGE_UTIL_LINUX_NG_LIBUUID || BR2_PACKAGE_E2FSPROGS_LIBUUID ) config BR2_PACKAGE_XFSPROGS bool "xfsprogs" depends on BR2_LARGEFILE - select BR2_PACKAGE_E2FSPROGS - select BR2_PACKAGE_E2FSPROGS_LIBUUID + depends on ( BR2_PACKAGE_UTIL_LINUX_NG_LIBUUID || BR2_PACKAGE_E2FSPROGS_LIBUUID ) help The XFS file system utilities and libraries
package/xfsprogs/xfsprogs.mk +28 -90
124 lines not on this page · raw message
Signature · 1 line
1.7.1