Skip to contentSkip to conversation

util-linux: bump to version 2.28

PATCH New Gustavo Zacarias 2 participants 2 messages Apr 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 util-linux: bump to version 2.28

Drop upstream patches (0004-0008).
Convert 0001-sscanf-no-ms-as.patch to git format.

---
 ... => 0001-Fix-libmount-build-under-uClibc.patch} | 48 +++++++++++--------
 ...004-vipw-Remove-pre-ANSI-compiler-support.patch | 35 --------------
 .../0005-build-sys-use-REALTIME_LIBS.patch         | 41 ----------------
 ...sys-fix-static-configuration-and-building.patch | 54 ----------------------
 package/util-linux/0007-build-sys-fix-typo.patch   | 34 --------------
 ...don-t-free-shm-data-if-no-shm-id-is-found.patch | 42 -----------------
 package/util-linux/util-linux.hash                 |  4 +-
 package/util-linux/util-linux.mk                   |  7 ++-
 8 files changed, 35 insertions(+), 230 deletions(-)
 rename package/util-linux/{0001-sscanf-no-ms-as.patch => 0001-Fix-libmount-build-under-uClibc.patch} (66%)
 delete mode 100644 package/util-linux/0004-vipw-Remove-pre-ANSI-compiler-support.patch
 delete mode 100644 package/util-linux/0005-build-sys-use-REALTIME_LIBS.patch
 delete mode 100644 package/util-linux/0006-buildsys-fix-static-configuration-and-building.patch
 delete mode 100644 package/util-linux/0007-build-sys-fix-typo.patch
 delete mode 100644 package/util-linux/0008-lsipc-don-t-free-shm-data-if-no-shm-id-is-found.patch
package/util-linux/0001-Fix-libmount-build-under-uClibc.patch renamed from package/util-linux/0001-sscanf-no-ms-as.patch +30 -18
similarity index 66%
rename from package/util-linux/0001-sscanf-no-ms-as.patch
rename to package/util-linux/0001-Fix-libmount-build-under-uClibc.patch
index 81b2be5..10cc3a5 100644
@@ -1,29 +1,38 @@
-Fix libmount build under uClibc
+From 44d733203637666926964957af7af23429ddcecf Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <[email protected]>
+Date: Mon, 18 Apr 2016 09:58:56 -0300
+Subject: [PATCH] Fix libmount build under uClibc
 
 See https://bugs.gentoo.org/show_bug.cgi?id=406303
 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/util-linux/files/util-linux-2.21.1-no-printf-alloc.patch?revision=1.2
 
-[Gustavo: Ported to util-linux-2.26]
+[Gustavo: converted to git format for 2.28]
 
 Signed-off-by: Gustavo Zacarias <[email protected]>
+---
+ configure.ac             |  1 -
+ libmount/src/tab_parse.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 52 insertions(+), 1 deletion(-)
 
-diff -Nura util-linux-2.26.orig/configure.ac util-linux-2.26/configure.ac
---- util-linux-2.26.orig/configure.ac	2015-02-19 09:11:13.146192401 -0300
-+++ util-linux-2.26/configure.ac	2015-02-20 08:13:32.740006582 -0300
-@@ -840,7 +840,6 @@
+diff --git a/configure.ac b/configure.ac
+index 5a00403..3422f11 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -948,7 +948,6 @@ AC_ARG_ENABLE([libmount],
  )
  UL_BUILD_INIT([libmount])
  UL_REQUIRES_BUILD([libmount], [libblkid])
 -UL_REQUIRES_HAVE([libmount], [scanf_alloc_modifier], [scanf string alloc modifier])
  AM_CONDITIONAL([BUILD_LIBMOUNT], [test "x$build_libmount" = xyes])
  AM_CONDITIONAL([BUILD_LIBMOUNT_TESTS], [test "x$build_libmount" = xyes -a "x$enable_static" = xyes])
- 
-diff -Nura util-linux-2.26.orig/libmount/src/tab_parse.c util-linux-2.26/libmount/src/tab_parse.c
---- util-linux-2.26.orig/libmount/src/tab_parse.c	2015-02-16 09:57:34.070017496 -0300
-+++ util-linux-2.26/libmount/src/tab_parse.c	2015-02-20 08:13:32.741006617 -0300
-@@ -22,6 +22,10 @@
- #include "pathnames.h"
- #include "strutils.h"
+ AS_IF([test "x$build_libmount" = xyes], [
+diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c
+index 3f5e14a..2ff1795 100644
+--- a/libmount/src/tab_parse.c
++++ b/libmount/src/tab_parse.c
+@@ -39,6 +39,10 @@ static void parser_cleanup(struct libmnt_parser *pa)
+ 	memset(pa, 0, sizeof(*pa));
+ }
  
 +#ifndef HAVE_SCANF_MS_MODIFIER
 +# define UL_SCNsA "%s"
@@ -32,7 +41,7 @@ diff -Nura util-linux-2.26.orig/libmount/src/tab_parse.c util-linux-2.26/libmoun
  static int next_number(char **s, int *num)
  {
  	char *end = NULL;
-@@ -52,16 +56,31 @@
+@@ -69,16 +73,31 @@ static int mnt_parse_table_line(struct libmnt_fs *fs, char *s)
  	int rc, n = 0, xrc;
  	char *src = NULL, *fstype = NULL, *optstr = NULL;
  
@@ -64,7 +73,7 @@ diff -Nura util-linux-2.26.orig/libmount/src/tab_parse.c util-linux-2.26/libmoun
  			&n);
  	xrc = rc;
  
-@@ -127,6 +146,16 @@
+@@ -144,6 +163,16 @@ static int mnt_parse_mountinfo_line(struct libmnt_fs *fs, char *s)
  	unsigned int maj, min;
  	char *fstype = NULL, *src = NULL, *p;
  
@@ -81,7 +90,7 @@ diff -Nura util-linux-2.26.orig/libmount/src/tab_parse.c util-linux-2.26/libmoun
  	rc = sscanf(s,	"%d "		/* (1) id */
  			"%d "		/* (2) parent */
  			"%u:%u "	/* (3) maj:min */
-@@ -138,9 +167,15 @@
+@@ -155,9 +184,15 @@ static int mnt_parse_mountinfo_line(struct libmnt_fs *fs, char *s)
  			&fs->id,
  			&fs->parent,
  			&maj, &min,
@@ -97,7 +106,7 @@ diff -Nura util-linux-2.26.orig/libmount/src/tab_parse.c util-linux-2.26/libmoun
  			&end);
  
  	if (rc >= 7 && end > 0)
-@@ -160,9 +195,15 @@
+@@ -177,9 +212,15 @@ static int mnt_parse_mountinfo_line(struct libmnt_fs *fs, char *s)
  			UL_SCNsA" "	/* (9) source */
  			UL_SCNsA,	/* (10) fs options (fs specific) */
  
@@ -113,7 +122,7 @@ diff -Nura util-linux-2.26.orig/libmount/src/tab_parse.c util-linux-2.26/libmoun
  
  	if (rc >= 10) {
  		size_t sz;
-@@ -281,14 +322,25 @@
+@@ -298,14 +339,25 @@ static int mnt_parse_swaps_line(struct libmnt_fs *fs, char *s)
  	int rc;
  	char *src = NULL;
  
@@ -139,3 +148,6 @@ diff -Nura util-linux-2.26.orig/libmount/src/tab_parse.c util-linux-2.26/libmoun
  			&fsz,
  			&usz,
  			&fs->priority);
+-- 
+2.7.3
+
package/util-linux/0004-vipw-Remove-pre-ANSI-compiler-support.patch deleted +0 -35
deleted file mode 100644
index 3a0c42a..0000000
@@ -1,35 +0,0 @@
-From 9ce534491aea9b7975cfee5064423d0b850d8002 Mon Sep 17 00:00:00 2001
-From: Romain Naour <[email protected]>
-Date: Sun, 9 Aug 2015 11:20:00 +0200
-Subject: [PATCH] vipw: Remove pre-ANSI compiler support
-
-__P() is used for compatibility with old K&R C compilers. With
-ANSI C this macro has no effect.
-
-This fixes a compilation error with musl libc because of undeclared
-__P.
-
-Ref:
-https://lists.samba.org/archive/samba-technical/2015-June/108042.html
-
-Signed-off-by: Romain Naour <[email protected]>
----
- login-utils/vipw.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/login-utils/vipw.c b/login-utils/vipw.c
-index 668f4d8..e4c803b 100644
---- a/login-utils/vipw.c
-+++ b/login-utils/vipw.c
-@@ -85,7 +85,7 @@ int program;
- char orig_file[FILENAMELEN];	/* original file /etc/passwd or /etc/group */
- char *tmp_file;			/* tmp file */
- 
--void pw_error __P((char *, int, int));
-+void pw_error (char *, int, int);
- 
- static void copyfile(int from, int to)
- {
--- 
-2.4.3
-
package/util-linux/0005-build-sys-use-REALTIME_LIBS.patch deleted +0 -41

41 lines not on this page · raw message

package/util-linux/0006-buildsys-fix-static-configuration-and-building.patch deleted +0 -54

54 lines not on this page · raw message

package/util-linux/0007-build-sys-fix-typo.patch deleted +0 -34
deleted file mode 100644
index 204c3d8..0000000
@@ -1,34 +0,0 @@
-From dea1bd2917ed9490ee96162288e0904e3de9da2d Mon Sep 17 00:00:00 2001
-From: Romain Naour <[email protected]>
-Date: Tue, 16 Feb 2016 00:24:30 +0100
-Subject: [PATCH] build-sys: fix typo
-
-When timer_create is available have_timer must be
-set to "yes". But instead have_time is used.
-
-Replace have_time by have_timer.
-
-Fixes:
-http://autobuild.buildroot.net/results/993/9935cd0522d4f978ba2e788a690f66790686b76b
-
-Signed-off-by: Romain Naour <[email protected]>
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 4559573..3950f0c 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -390,7 +390,7 @@ AC_CHECK_FUNCS([clock_gettime], [],
- 
- have_timer="no"
- AC_CHECK_FUNCS([timer_create],
--	[have_time="yes"],
-+	[have_timer="yes"],
- 	[AC_CHECK_LIB([rt], [timer_create], [
- 		have_timer="yes"
- 		REALTIME_LIBS="-lrt"
--- 
-2.5.0
-
package/util-linux/0008-lsipc-don-t-free-shm-data-if-no-shm-id-is-found.patch deleted +0 -42

42 lines not on this page · raw message

package/util-linux/util-linux.hash +2 -2
index de60823..ca58102 100644
@@ -1,2 +1,2 @@
-# From https://www.kernel.org/pub/linux/utils/util-linux/v2.27/sha256sums.asc
-sha256 0a818fcdede99aec43ffe6ca5b5388bff80d162f2f7bd4541dca94fecb87a290  util-linux-2.27.1.tar.xz
+# From https://www.kernel.org/pub/linux/utils/util-linux/v2.28/sha256sums.asc
+sha256	395847e2a18a2c317170f238892751e73a57104565344f8644090c8b091014bb	util-linux-2.28.tar.xz
package/util-linux/util-linux.mk +3 -4
index a055d17..93f45c2 100644
@@ -4,16 +4,15 @@
 #
 ################################################################################
 
-UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR).1
-UTIL_LINUX_VERSION_MAJOR = 2.27
+UTIL_LINUX_VERSION = 2.28
 UTIL_LINUX_SOURCE = util-linux-$(UTIL_LINUX_VERSION).tar.xz
-UTIL_LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/util-linux/v$(UTIL_LINUX_VERSION_MAJOR)
+UTIL_LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/util-linux/v$(UTIL_LINUX_VERSION)
 
 # README.licensing claims that some files are GPLv2-only, but this is not true.
 # Some files are GPLv3+ but only in tests.
 UTIL_LINUX_LICENSE = GPLv2+, BSD-4c, libblkid and libmount LGPLv2.1+, libuuid BSD-3c
 UTIL_LINUX_LICENSE_FILES = README.licensing Documentation/licenses/COPYING.GPLv2 Documentation/licenses/COPYING.UCB Documentation/licenses/COPYING.LGPLv2.1 Documentation/licenses/COPYING.BSD-3
-
+# For 0001-Fix-libmount-build-under-uClibc.patch
 UTIL_LINUX_AUTORECONF = YES
 UTIL_LINUX_INSTALL_STAGING = YES
 UTIL_LINUX_DEPENDENCIES = host-pkgconf
Signature · 1 line
2.7.3
#1 lore raw

PATCH 1/1 util-linux: bump to version 2.28

Hello,

Quoted 2 lines · Gustavo Zacarias

Drop upstream patches (0004-0008).
Convert 0001-sscanf-no-ms-as.patch to git format.

Cool, any chance to submit this one upstream?

Quoted 18 lines
---
 ... => 0001-Fix-libmount-build-under-uClibc.patch} | 48 +++++++++++--------
 ...004-vipw-Remove-pre-ANSI-compiler-support.patch | 35 --------------
 .../0005-build-sys-use-REALTIME_LIBS.patch         | 41 ----------------
 ...sys-fix-static-configuration-and-building.patch | 54 ----------------------
 package/util-linux/0007-build-sys-fix-typo.patch   | 34 --------------
 ...don-t-free-shm-data-if-no-shm-id-is-found.patch | 42 -----------------
 package/util-linux/util-linux.hash                 |  4 +-
 package/util-linux/util-linux.mk                   |  7 ++-
 8 files changed, 35 insertions(+), 230 deletions(-)
 rename package/util-linux/{0001-sscanf-no-ms-as.patch => 0001-Fix-libmount-build-under-uClibc.patch} (66%)
 delete mode 100644 package/util-linux/0004-vipw-Remove-pre-ANSI-compiler-support.patch
 delete mode 100644 package/util-linux/0005-build-sys-use-REALTIME_LIBS.patch
 delete mode 100644 package/util-linux/0006-buildsys-fix-static-configuration-and-building.patch
 delete mode 100644 package/util-linux/0007-build-sys-fix-typo.patch
 delete mode 100644 package/util-linux/0008-lsipc-don-t-free-shm-data-if-no-shm-id-is-found.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com