Skip to contentSkip to conversation

glibc: remove version choice

PATCH New Waldemar Brodkorb 3 participants 3 messages Jun 10, 2017 – Jun 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 glibc: remove version choice

We do not support uClibc-ng/musl C library version choice support, do the same for GNU C Library.
Add me as Maintainer for the package.
No legacy handling required as only version choice is removed.

---
v1 -> v2:
- alphabetically order DEVELOPERS entry
- add a comment why legacy handling isn't required

---
 DEVELOPERS                                         |   3 +-
 .../0001-sh-Fix-building-with-gcc5-6.patch         |   0
 package/glibc/2.23/0001-fix-CVE-2016-3075.patch    |  47 --------
 package/glibc/2.23/0002-gcc6.patch                 |  88 ---------------
 ...-fix-wrong-vfork-aliases-in-libpthread.so.patch |  76 -------------
 ...more-fixes-to-the-vfork-aliases-in-libpth.patch | 122 ---------------------
 .../2.23/0005-sh-Fix-building-with-gcc5-6.patch    |  56 ----------
 .../2.24/0001-sh-Fix-building-with-gcc5-6.patch    |  56 ----------
 package/glibc/Config.in                            |  29 +----
 package/glibc/glibc.hash                           |   2 -
 package/glibc/glibc.mk                             |   2 +-
 11 files changed, 4 insertions(+), 477 deletions(-)
 rename package/glibc/{2.25 => }/0001-sh-Fix-building-with-gcc5-6.patch (100%)
 delete mode 100644 package/glibc/2.23/0001-fix-CVE-2016-3075.patch
 delete mode 100644 package/glibc/2.23/0002-gcc6.patch
 delete mode 100644 package/glibc/2.23/0003-MIPS-SPARC-fix-wrong-vfork-aliases-in-libpthread.so.patch
 delete mode 100644 package/glibc/2.23/0004-MIPS-SPARC-more-fixes-to-the-vfork-aliases-in-libpth.patch
 delete mode 100644 package/glibc/2.23/0005-sh-Fix-building-with-gcc5-6.patch
 delete mode 100644 package/glibc/2.24/0001-sh-Fix-building-with-gcc5-6.patch
DEVELOPERS +2 -1
index 1e87d3a..1af8d75 100644
@@ -1688,9 +1688,10 @@ F:	arch/Config.in.bfin
 F:	arch/Config.in.m68k
 F:	arch/Config.in.or1k
 F:	arch/Config.in.sparc
+F:	package/glibc/
+F:	package/mksh/
 F:	package/uclibc/
 F:	package/uclibc-ng-test/
-F:	package/mksh/
 
 N:	Will Newton <[email protected]>
 F:	package/enchant/
package/glibc/0001-sh-Fix-building-with-gcc5-6.patch renamed from package/glibc/2.25/0001-sh-Fix-building-with-gcc5-6.patch +0 -0
similarity index 100%
rename from package/glibc/2.25/0001-sh-Fix-building-with-gcc5-6.patch
rename to package/glibc/0001-sh-Fix-building-with-gcc5-6.patch
package/glibc/2.23/0001-fix-CVE-2016-3075.patch deleted +0 -47

47 lines not on this page · raw message

package/glibc/2.23/0002-gcc6.patch deleted +0 -88

88 lines not on this page · raw message

package/glibc/2.23/0003-MIPS-SPARC-fix-wrong-vfork-aliases-in-libpthread.so.patch deleted +0 -76

76 lines not on this page · raw message

package/glibc/2.23/0004-MIPS-SPARC-more-fixes-to-the-vfork-aliases-in-libpth.patch deleted +0 -122

122 lines not on this page · raw message

package/glibc/2.23/0005-sh-Fix-building-with-gcc5-6.patch deleted +0 -56

56 lines not on this page · raw message

package/glibc/2.24/0001-sh-Fix-building-with-gcc5-6.patch deleted +0 -56

56 lines not on this page · raw message

package/glibc/Config.in +1 -28
index 115388e..e5d0d5c 100644
@@ -3,35 +3,8 @@ if BR2_TOOLCHAIN_BUILDROOT_GLIBC
 config BR2_PACKAGE_GLIBC
 	bool
 	default y
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
 	select BR2_PACKAGE_LINUX_HEADERS
 	select BR2_TOOLCHAIN_HAS_SSP
 
-choice
-	prompt "glibc version"
-	default BR2_GLIBC_VERSION_2_24
-
-config BR2_GLIBC_VERSION_2_23
-	bool "2.23"
-
-config BR2_GLIBC_VERSION_2_24
-	bool "2.24"
-	# Linux 3.2 or later kernel headers are required on all arches.
-	# See: https://sourceware.org/ml/libc-alpha/2016-08/msg00212.html
-	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
-
-config BR2_GLIBC_VERSION_2_25
-	bool "2.25"
-	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
-
-comment "glibc-2.24+ needs kernel headers >= 3.2"
-	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
-
-endchoice
-
 endif
-
-config BR2_GLIBC_VERSION_STRING
-	string
-	default "2.23" if BR2_GLIBC_VERSION_2_23
-	default "2.24" if BR2_GLIBC_VERSION_2_24
-	default "2.25" if BR2_GLIBC_VERSION_2_25
package/glibc/glibc.hash +0 -2
index 0f420c5..daaf014 100644
@@ -1,4 +1,2 @@
 # Locally calculated after checking pgp signature (glibc)
-sha256	94efeb00e4603c8546209cefb3e1a50a5315c86fa9b078b6fad758e187ce13e9	glibc-2.23.tar.xz
-sha256	99d4a3e8efd144d71488e478f62587578c0f4e1fa0b4eed47ee3d4975ebeb5d3	glibc-2.24.tar.xz
 sha256	067bd9bb3390e79aa45911537d13c3721f1d9d3769931a30c2681bfee66f23a0	glibc-2.25.tar.xz
package/glibc/glibc.mk +1 -1
index aa9b906..c9a6579 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-GLIBC_VERSION = $(call qstrip,$(BR2_GLIBC_VERSION_STRING))
+GLIBC_VERSION = 2.25
 GLIBC_SITE = $(BR2_GNU_MIRROR)/libc
 GLIBC_SOURCE = glibc-$(GLIBC_VERSION).tar.xz
 GLIBC_SRC_SUBDIR = .
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 glibc: remove version choice

Quoted 6 lines · Waldemar Brodkorb

We do not support uClibc-ng/musl C library version choice support, do the same for GNU C Library.
Add me as Maintainer for the package.
No legacy handling required as only version choice is removed.

Perhaps we could also remove BR2_GLIBC_VERSION_2_22 from Config.in.legacy, but
that will happen automaticaly when it is cleaned up.

Note that due to lousy internet connectivity I didn't actually test the patch.

Regards,
Arnout

Quoted 4 lines

---
v1 -> v2:
- alphabetically order DEVELOPERS entry
- add a comment why legacy handling isn't required

[snip]

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH v2 1/1 glibc: remove version choice

In reply to Waldemar Brodkorb

Hello,

Quoted 6 lines · Waldemar Brodkorb

We do not support uClibc-ng/musl C library version choice support, do the same for GNU C Library.
Add me as Maintainer for the package.
No legacy handling required as only version choice is removed.

I've applied, but after doing a few changes, see below.

DEVELOPERS F: arch/Config.in.bfin · line 1693

Quoted 13 lines
DEVELOPERS +2 -1
index 1e87d3a..1af8d75 100644
@@ -1688,9 +1688,10 @@ F:	arch/Config.in.bfin
 F:	arch/Config.in.m68k
 F:	arch/Config.in.or1k
 F:	arch/Config.in.sparc
+F:	package/glibc/
+F:	package/mksh/
 F:	package/uclibc/
 F:	package/uclibc-ng-test/
-F:	package/mksh/

This is mixing two changes (alphabetic ordering and adding you as a developer for the glibc package) in a patch that is otherwise relatively unrelated. So I've moved these changes to separate patches.

package/glibc/Config.in if BR2_TOOLCHAIN_BUILDROOT_GLIBC · line 6

Quoted 9 lines
package/glibc/Config.in +1 -0
index 115388e..e5d0d5c 100644
@@ -3,35 +3,8 @@ if BR2_TOOLCHAIN_BUILDROOT_GLIBC
 config BR2_PACKAGE_GLIBC
 	bool
 	default y
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2

A "depends on" on a prompt-less option is quite useless, because it doesn't prevent anyone from select-ing this option, unless you propagate this depends on of course (which you don't do).

package/glibc/Config.in if BR2_TOOLCHAIN_BUILDROOT_GLIBC · line 27

Quoted 2 lines
package/glibc/Config.in +0 -2
-comment "glibc-2.24+ needs kernel headers >= 3.2"
-	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2

And we're loosing the comment about glibc now requiring headers >= 3.2.

So, instead, I've moved the dependency to toolchain/toolchain-buildroot/Config.in, option BR2_TOOLCHAIN_BUILDROOT_GLIBC, where we already had the !BR2_STATIC_LIBS dependency. And I've updated the existing Config.in comment to mention the need for headers >= 3.2.

Thanks!

Thomas

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