From patchwork Thu Oct 11 13:25:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Khryukin X-Patchwork-Id: 190906 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 2D2322C0084 for ; Fri, 12 Oct 2012 00:26:23 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 58B8A10BD25; Thu, 11 Oct 2012 13:26:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KzSgyvlUY9Na; Thu, 11 Oct 2012 13:26:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A0CF810BD24; Thu, 11 Oct 2012 13:26:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 94B058F74A for ; Thu, 11 Oct 2012 13:26:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DF2B08050C for ; Thu, 11 Oct 2012 13:26:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id htfMTOcvb-JG for ; Thu, 11 Oct 2012 13:26:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.mezon.ru (mail.mezon.ru [188.127.253.33]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D935818D1 for ; Thu, 11 Oct 2012 13:26:00 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.mezon.ru (Postfix) with ESMTP id 2A5811CD70E for ; Thu, 11 Oct 2012 17:25:58 +0400 (MSK) X-Virus-Scanned: amavisd-new at mezon.ru Received: from mail.mezon.ru ([127.0.0.1]) by localhost (stream2.mezon.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 304jVm98UGKG for ; Thu, 11 Oct 2012 17:25:56 +0400 (MSK) Received: from gate-obit.mezon.ru (gate-obit.mezon.ru [37.77.135.198]) by mail.mezon.ru (Postfix) with ESMTP id B3A301CD74F for ; Thu, 11 Oct 2012 17:25:56 +0400 (MSK) Received: from [192.168.0.206] (fdkit.mezon.lan [192.168.0.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gate-obit.mezon.ru (Postfix) with ESMTP id 95B9FD70027 for ; Thu, 11 Oct 2012 17:25:56 +0400 (MSK) Message-ID: <1349961942.28555.1.camel@localhost> From: Alexander Khryukin To: buildroot@busybox.net Date: Thu, 11 Oct 2012 17:25:42 +0400 Organization: mezon.ru X-Mailer: Evolution 3.2.3 Mime-Version: 1.0 Subject: [Buildroot] util-linux version update 2.22.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list Reply-To: alexander@mezon.ru List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Alexander Khryukin --- From dc455e2d000e07d74b3865357ee879c3078314d5 Mon Sep 17 00:00:00 2001 From: Alexander Khryukin Date: Thu, 11 Oct 2012 12:10:49 +0000 Subject: [PATCH 1/3] util-linux version update 2.22 --- package/util-linux/util-linux.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index 71a6c53..ba2d5ed 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -4,7 +4,7 @@ # ############################################################# UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR).1 -UTIL_LINUX_VERSION_MAJOR = 2.20 +UTIL_LINUX_VERSION_MAJOR = 2.22 UTIL_LINUX_SOURCE = util-linux-$(UTIL_LINUX_VERSION).tar.bz2 UTIL_LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/util-linux/v $(UTIL_LINUX_VERSION_MAJOR) UTIL_LINUX_AUTORECONF = YES -- 1.7.11.3 From 339d4a728090c55696fa5190e1e370a624e819dc Mon Sep 17 00:00:00 2001 From: Alexander Khryukin Date: Thu, 11 Oct 2012 13:20:29 +0000 Subject: [PATCH] old-patch with uclibc support disabled and new options now in Config.in --- package/util-linux/Config.in | 6 ++ .../util-linux-2.20.1-sscanf-no-ms-as.patch | 87 ---------------------- .../util-linux/util-linux-uclibc-build-fix.patch | 16 ---- package/util-linux/util-linux.mk | 7 +- 4 files changed, 11 insertions(+), 105 deletions(-) delete mode 100644 package/util-linux/util-linux-2.20.1-sscanf-no-ms-as.patch delete mode 100644 package/util-linux/util-linux-uclibc-build-fix.patch diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in index 43a8444..5d4468f 100644 --- a/package/util-linux/Config.in +++ b/package/util-linux/Config.in @@ -99,6 +99,12 @@ config BR2_PACKAGE_UTIL_LINUX_RESET config BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS bool "build \"chfn, chsh, login, newgrp, vipw\"" +config BR2_PACKAGE_UTIL_LINUX_SU + bool "build \"su, requires PAM headers\"" + +config BR2_PACKAGE_UTIL_LINUX_LOGIN + bool "build \"login requires PAM headers\"" + config BR2_PACKAGE_UTIL_LINUX_WRITE bool "build \"write\"" diff --git a/package/util-linux/util-linux-2.20.1-sscanf-no-ms-as.patch b/package/util-linux/util-linux-2.20.1-sscanf-no-ms-as.patch deleted file mode 100644 index 5b0ac36..0000000 --- a/package/util-linux/util-linux-2.20.1-sscanf-no-ms-as.patch +++ /dev/null @@ -1,87 +0,0 @@ -[PATCH] Fix libmount build under uClibc - -Taken from gentoo-hardened: -http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=91879751 - -For details, see https://bugs.gentoo.org/show_bug.cgi?id=406303 - -Signed-off-by: Peter Korsgaard -diff -Naur util-linux-2.20.1.orig/libmount/src/tab_parse.c util-linux-2.20.1/libmount/src/tab_parse.c ---- util-linux-2.20.1.orig/libmount/src/tab_parse.c 2011-12-12 20:51:06.646614964 -0500 -+++ util-linux-2.20.1/libmount/src/tab_parse.c 2011-12-12 21:02:03.587865010 -0500 -@@ -51,19 +51,21 @@ - */ - static int mnt_parse_table_line(struct libmnt_fs *fs, char *s) - { -- int rc, n = 0; -- char *src, *fstype, *optstr; -- -- rc = sscanf(s, UL_SCNsA" " /* (1) source */ -- UL_SCNsA" " /* (2) target */ -- UL_SCNsA" " /* (3) FS type */ -- UL_SCNsA" " /* (4) options */ -+ int rc, n = 0, len = strlen (s) + 1; -+ char *src = malloc (sizeof *src * len); -+ char *fstype = malloc (sizeof *fstype * len); -+ char *optstr = malloc (sizeof *optstr * len); -+ -+ rc = sscanf(s, "%s"" " /* (1) source */ -+ "%s"" " /* (2) target */ -+ "%s"" " /* (3) FS type */ -+ "%s"" " /* (4) options */ - "%n", /* byte count */ - -- &src, -- &fs->target, -- &fstype, -- &optstr, -+ src, -+ fs->target, -+ fstype, -+ optstr, - &n); - - if (rc == 4) { -@@ -108,16 +110,20 @@ - */ - static int mnt_parse_mountinfo_line(struct libmnt_fs *fs, char *s) - { -- int rc, end = 0; -+ int rc, end = 0, len = strlen (s) + 1; - unsigned int maj, min; - char *fstype, *src, *p; - -+ fs->root = malloc (sizeof *fs->root * len); -+ fs->target = malloc (sizeof *fs->target * len); -+ fs->vfs_optstr = malloc (sizeof *fs->vfs_optstr * len); -+ - rc = sscanf(s, "%u " /* (1) id */ - "%u " /* (2) parent */ - "%u:%u " /* (3) maj:min */ -- UL_SCNsA" " /* (4) mountroot */ -- UL_SCNsA" " /* (5) target */ -- UL_SCNsA /* (6) vfs options (fs-independent) */ -+ "%s"" " /* (4) mountroot */ -+ "%s"" " /* (5) target */ -+ "%s" /* (6) vfs options (fs-independent) */ - "%n", /* number of read bytes */ - - &fs->id, -@@ -139,9 +145,14 @@ - } - s = p + 3; - -- rc += sscanf(s, UL_SCNsA" " /* (8) FS type */ -- UL_SCNsA" " /* (9) source */ -- UL_SCNsA, /* (10) fs options (fs specific) */ -+ len = strlen (s) + 1; -+ fstype = malloc (sizeof *fstype * len); -+ src = malloc (sizeof *src * len); -+ fs->fs_optstr = malloc (sizeof *fs->fs_optstr * len); -+ -+ rc += sscanf(s, "%s"" " /* (8) FS type */ -+ "%s"" " /* (9) source */ -+ "%s", /* (10) fs options (fs specific) */ - - &fstype, - &src, diff --git a/package/util-linux/util-linux-uclibc-build-fix.patch b/package/util-linux/util-linux-uclibc-build-fix.patch deleted file mode 100644 index f9da863..0000000 --- a/package/util-linux/util-linux-uclibc-build-fix.patch +++ /dev/null @@ -1,16 +0,0 @@ -Signed-off-by: Khem Raj - -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 ], -+AC_TRY_COMPILE([#include ], - [program_invocation_short_name = "test";], - AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, 1, - [Define if program_invocation_short_name is defined]) - diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index ba2d5ed..4c4b716 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -54,7 +54,9 @@ UTIL_LINUX_CONF_OPT += \ $(if $(BR2_PACKAGE_UTIL_LINUX_RENAME),,--disable-rename) \ $(if $(BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS),,--disable-schedutils) \ $(if $(BR2_PACKAGE_UTIL_LINUX_WALL),,--disable-wall) \ - $(if $(BR2_PACKAGE_UTIL_LINUX_PARTX),,--disable-partx) + $(if $(BR2_PACKAGE_UTIL_LINUX_PARTX),,--disable-partx) \ + $(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN),,--disable-login) \ + $(if $(BR2_PACKAGE_UTIL_LINUX_SU),,--disable-su) ############################################# # @@ -79,7 +81,8 @@ HOST_UTIL_LINUX_CONF_OPT += \ --disable-uuidd --disable-libblkid --disable-agetty \ --disable-cramfs --disable-switch_root --disable-pivot_root \ --disable-fallocate --disable-unshare --disable-rename \ - --disable-schedutils --disable-wall --disable-partx + --disable-schedutils --disable-wall --disable-partx --disable-login \ + --disable-su $(eval $(autotools-package)) $(eval $(host-autotools-package))