Skip to contentSkip to conversation

util-linux: bump to v2.30.1

PATCH New Marcus Hoffmann 3 participants 4 messages Jul 29, 2017 – Aug 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 util-linux: bump to v2.30.1

- Drop patch 0002-column-fix-compilation-when-libc-lacks-wide-characte.patch as it has been applied upstream
- Patch 0001-Revert-build-sys-ncurses-headers-cleanup.patch is still required to fix ncursesw support.

---
@Carlos: As far as I could find no upstream discussion has taken place regarding the 0001 patch right? Do you want to send an email to the list describing the problem?

---
 ...compilation-when-libc-lacks-wide-characte.patch | 53 ----------------------
 package/util-linux/util-linux.hash                 |  2 +-
 package/util-linux/util-linux.mk                   |  3 +-
 3 files changed, 3 insertions(+), 55 deletions(-)
 delete mode 100644 package/util-linux/0002-column-fix-compilation-when-libc-lacks-wide-characte.patch
package/util-linux/0002-column-fix-compilation-when-libc-lacks-wide-characte.patch deleted +0 -53
deleted file mode 100644
index 5c11db99c..000000000
@@ -1,53 +0,0 @@
-From 46a37cd25db592db878d5beccdf75d1accbbacb6 Mon Sep 17 00:00:00 2001
-From: Carlos Santos <[email protected]>
-Date: Tue, 27 Jun 2017 13:18:48 -0300
-Subject: [PATCH] column: fix compilation when libc lacks wide-character
- support
-
-Commit 4762ae9d removed mtsafe_strtok() but left behind calls to wcstok
-and wcspbrk. This leads to build failures when libc does not have the
-wide-character functions, like some uClibc builds.
-
-Solve the problem by using strtok_r and strpbrk when HAVE_WIDECHAR is
-not defined.
-
-Fixes:
-  http://autobuild.buildroot.net/results/fd8a1a8e0cef3aeed9588540e8e663664f6b43aa
-  http://autobuild.buildroot.net/results/5ad73ea8b471321988c50d80a5e50d4504151dd6
-  http://autobuild.buildroot.net/results/04411b7280dc51ecd51236967981a42352bbeb3e
-
-Signed-off-by: Carlos Santos <[email protected]>
----
- text-utils/column.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/text-utils/column.c b/text-utils/column.c
-index be99f94..fb57b47 100644
---- a/text-utils/column.c
-+++ b/text-utils/column.c
-@@ -160,14 +160,22 @@ static wchar_t *local_wcstok(wchar_t *p, const wchar_t *separator, int greedy, w
- 	wchar_t *result = NULL;
- 
- 	if (greedy)
-+#ifdef HAVE_WIDECHAR
- 		return wcstok(p, separator, state);
-+#else
-+		return strtok_r(p, separator, state);
-+#endif
- 	if (!p) {
- 		if (!*state || !**state)
- 			return NULL;
- 		p = *state;
- 	}
- 	result = p;
-+#ifdef HAVE_WIDECHAR
- 	p = wcspbrk(result, separator);
-+#else
-+	p = strpbrk(result, separator);
-+#endif
- 	if (!p)
- 		*state = NULL;
- 	else {
--- 
-2.7.5
-
package/util-linux/util-linux.hash +1 -1
index 02b82f600..6f0bafe9e 100644
@@ -1,2 +1,2 @@
 # From https://www.kernel.org/pub/linux/utils/util-linux/v2.30/sha256sums.asc
-sha256 c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab65057a08d  util-linux-2.30.tar.xz
+sha256 1be4363a91ac428c9e43fc04dc6d2c66a19ec1e36f1105bd4b481540be13b841  util-linux-2.30.1.tar.xz
package/util-linux/util-linux.mk +2 -1
index 99cc77fba..fc3266886 100644
@@ -5,7 +5,8 @@
 ################################################################################
 
 UTIL_LINUX_VERSION_MAJOR = 2.30
-UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR)
+UTIL_LINUX_VERSION_MINOR = 1
+UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR).$(UTIL_LINUX_VERSION_MINOR)
 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)
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 util-linux: bump to v2.30.1

Hello,

Quoted 11 lines · Marcus Hoffmann

- Drop patch 0002-column-fix-compilation-when-libc-lacks-wide-characte.patch as it has been applied upstream
- Patch 0001-Revert-build-sys-ncurses-headers-cleanup.patch is still required to fix ncursesw support.

---
@Carlos: As far as I could find no upstream discussion has taken place regarding the 0001 patch right? Do you want to send an email to the list describing the problem?

Quoted 6 lines
---
 ...compilation-when-libc-lacks-wide-characte.patch | 53 ----------------------
 package/util-linux/util-linux.hash                 |  2 +-
 package/util-linux/util-linux.mk                   |  3 +-
 3 files changed, 3 insertions(+), 55 deletions(-)
 delete mode 100644 package/util-linux/0002-column-fix-compilation-when-libc-lacks-wide-characte.patch

Applied to master, thanks.

Thomas

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

PATCH 1/1 util-linux: bump to v2.30.1

In reply to Marcus Hoffmann
Quoted 11 lines

From: "Marcus Hoffmann" <[email protected]>
To: buildroot at buildroot.org
Cc: "Carlos Santos" <[email protected]>, "Marcus Hoffmann" <[email protected]>
Sent: Saturday, July 29, 2017 12:36:02 PM
Subject: [PATCH 1/1] util-linux: bump to v2.30.1

- Drop patch 0002-column-fix-compilation-when-libc-lacks-wide-characte.patch as it has been applied upstream
- Patch 0001-Revert-build-sys-ncurses-headers-cleanup.patch is still required to fix ncursesw support.

Quoted 6 lines

---
@Carlos: As far as I could find no upstream discussion has taken place regarding the 0001 patch right? Do you want to send an email to the list describing the problem?

Hum, I got distracted with other things here. I will take care of this today. Thanks for the reminder!

Signature · 4 lines
Carlos Santos (Casantos) - DATACOM, P&D
?The greatest triumph that modern PR can offer is the transcendent 
success of having your words and actions judged by your reputation, 
rather than the other way about.? ? Christopher Hitchens
#3 lore raw

PATCH 1/1 util-linux: bump to v2.30.1

Quoted 7 lines

From: "Carlos Santos" <[email protected]>
To: "Marcus Hoffmann" <[email protected]>
Cc: buildroot at buildroot.org
Sent: Monday, July 31, 2017 8:06:18 AM
Subject: Re: [Buildroot] [PATCH 1/1] util-linux: bump to v2.30.1

Quoted 1 line

From: "Marcus Hoffmann" <[email protected]>

[...]

Quoted 6 lines
Quoted 3 lines

@Carlos: As far as I could find no upstream discussion has taken place regarding the 0001 patch right? Do you want to send an email to the list describing the problem?

Hum, I got distracted with other things here. I will take care of this today. Thanks for the reminder!

After exchanging some messages with Karel Zak we found simple a solution for the the problem of building util-linux without a separate ncursesw. include dir. It is on the master branch of util-linux and hopefully will be included in some 2.30.x release.

--
Carlos Santos (Casantos) - DATACOM, P&D
?The greatest triumph that modern PR can offer is the transcendent success of having your words and actions judged by your reputation, rather than the other way about.? ? Christopher Hitchens