util-linux: convert to autotarget and bump to 2.19.1
PATCH 1/1 util-linux: convert to autotarget and bump to 2.19.1
Signed-off-by Chih-Min Chao <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
--- package/util-linux/Config.in | 113 ++ package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch | 41 package/util-linux/util-linux-no-nls-fix.patch | 25 package/util-linux/util-linux-susv3-legacy.patch | 429 ---------- package/util-linux/util-linux-uclibc-build-fix.patch | 16 package/util-linux/util-linux-umount2-fix.patch | 20 package/util-linux/util-linux.mk | 180 ++-- 7 files changed, 230 insertions(+), 594 deletions(-)
package/util-linux/Config.in +112 -1
@@ -1,4 +1,4 @@ -config BR2_PACKAGE_UTIL-LINUX +config BR2_PACKAGE_UTIL_LINUX bool "util-linux" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
@@ -12,3 +12,114 @@ comment "util-linux requires a toolchain with RPC support" depends on !BR2_INET_RPC + +menu "util-linux tool support" + depends on BR2_PACKAGE_UTIL_LINUX + +############################################ +# default enabled and should be disabled by +# --disable-foo +# + +config BR2_PACKAGE_UTIL_LINUX_MOUNT + bool "build mount utilties" + default y + +config BR2_PACKAGE_UTIL_LINUX_FSCK + bool "build \"fsck\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_LIBUUID + bool "build libuuid and uuid utilities" + default y + +config BR2_PACKAGE_UTIL_LINUX_UUIDD + bool "build \"uuidd\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_LIBBLKID + bool "build libblkid and blkid utilities" + default y + +config BR2_PACKAGE_UTIL_LINUX_AGETTY + bool "build \"agetty\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_CRAMFS + bool "build \"fsck.cramfs, mkfs.cramfs\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT + bool "build \"switch_root\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT + bool "build \"pivot_root\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_FALLOCATE + bool "build \"fallocate\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_UNSHARE + bool "build \"unshare\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_RENAME + bool "build \"rename\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS + bool "build \"chrt, ionice, teskset\"" + default y + +config BR2_PACKAGE_UTIL_LINUX_WALL + bool "build \"wall\"" + default y + + +############################################ +# default disabled and should be enabled by +# --enable-foo +# +config BR2_PACKAGE_UTIL_LINUX_ARCH + bool "build \"arch\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_INIT + bool "build \"simpleinit, shutdown, initctl\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_KILL + bool "build \"kill\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_LAST + bool "build \"last\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_MESG + bool "build \"kill\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_PARTX + bool "build \"addpart, delpart, partx\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_RAW + bool "build \"raw\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_RESET + bool "build \"reset\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS + bool "build \"chfn, chsh, login, newgrp, vipw\"" + default n + +config BR2_PACKAGE_UTIL_LINUX_WRITE + bool "build \"addpart, delpart, partx\"" + default n + +endmenu
package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch deleted +0 -41
41 lines not on this page · raw message
package/util-linux/util-linux-no-nls-fix.patch deleted +0 -25
@@ -1,25 +0,0 @@ -[PATCH]: fix util-linux build without NLS support - -util-linux partly supports builds without NLS support, but it forgets to -provide a dummy setlocale() macro. - -Signed-off-by: Peter Korsgaard <[email protected]> ---- - include/nls.h | 4 ++++ - 1 file changed, 4 insertions(+) - -Index: util-linux-2.13-pre7/include/nls.h -=================================================================== ---- util-linux-2.13-pre7.orig/include/nls.h -+++ util-linux-2.13-pre7/include/nls.h -@@ -19,6 +19,10 @@ - # define textdomain(Domain) /* empty */ - # define _(Text) (Text) - # define N_(Text) (Text) -+# undef LC_ALL -+# define LC_ALL 0 -+# undef setlocale -+# define setlocale(category, locale) - #endif - -
package/util-linux/util-linux-susv3-legacy.patch deleted +0 -429
429 lines not on this page · raw message
package/util-linux/util-linux-umount2-fix.patch deleted +0 -20
@@ -1,20 +0,0 @@ -[PATCH] fix multiple definitions of umount2 issue - -Signed-off-by: Peter Korsgaard <[email protected]> ---- - mount/umount.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: util-linux-2.13-pre7/mount/umount.c -=================================================================== ---- util-linux-2.13-pre7.orig/mount/umount.c -+++ util-linux-2.13-pre7/mount/umount.c -@@ -29,7 +29,7 @@ - #include "nfsmount.h" - #include <arpa/inet.h> - --#if defined(MNT_FORCE) && !defined(__sparc__) && !defined(__arm__) -+#if 1 - /* Interesting ... it seems libc knows about MNT_FORCE and presumably - about umount2 as well -- need not do anything */ - #else /* MNT_FORCE */
package/util-linux/util-linux.mk +102 -78
202 lines not on this page · raw message
package/util-linux/util-linux-uclibc-build-fix.patch new file +16 -0
@@ -0,0 +1,16 @@ +Signed-off-by: Khem Raj <[email protected]> + +Index: util-linux-2.19.1/configure.ac +=================================================================== +--- util-linux-2.19.1.orig/configure.ac ++++ util-linux-2.19.1/configure.ac +@@ -250,7 +250,7 @@ esac + + + AC_MSG_CHECKING(whether program_invocation_short_name is defined) +-AC_TRY_COMPILE([#include <argp.h>], ++AC_TRY_COMPILE([#include <errno.h>], + [program_invocation_short_name = "test";], + AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, 1, + [Define if program_invocation_short_name is defined]) +