summaryrefslogtreecommitdiffstats
path: root/package/util-linux/0001-build-sys-fix-uClibc-ng-scanf-check.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-07-31 18:08:52 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-01 23:31:36 +0200
commit37be8892f48a50dbc505ae5a881e7f72f4c274de (patch)
treeb8c7611f2d730442cbdf6af1457c25b3a3b87fea /package/util-linux/0001-build-sys-fix-uClibc-ng-scanf-check.patch
parent7bb48645e65bd252ee97ebd55a40dbb713c8e7c4 (diff)
downloadbuildroot-37be8892f48a50dbc505ae5a881e7f72f4c274de.tar.gz
buildroot-37be8892f48a50dbc505ae5a881e7f72f4c274de.zip
util-linux: use upstream patch to fix uClibc build issue
Upstream has this patch a while and other projects are using it already. So better switch to this. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/util-linux/0001-build-sys-fix-uClibc-ng-scanf-check.patch')
-rw-r--r--package/util-linux/0001-build-sys-fix-uClibc-ng-scanf-check.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/util-linux/0001-build-sys-fix-uClibc-ng-scanf-check.patch b/package/util-linux/0001-build-sys-fix-uClibc-ng-scanf-check.patch
new file mode 100644
index 0000000000..801b72b26d
--- /dev/null
+++ b/package/util-linux/0001-build-sys-fix-uClibc-ng-scanf-check.patch
@@ -0,0 +1,34 @@
+From bac7fbdb2d141879526ca4342d56d2c749ba8af5 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@uclibc-ng.org>
+Date: Fri, 3 Jun 2016 04:23:28 +0200
+Subject: [PATCH] build-sys: fix uClibc-ng scanf check
+
+uClibc-ng tries to be compatible with GNU libc and defines
+__GLIBC__ and pretend to be version 2.2.
+We once changed it to 2.10, but then some hard to fix problems
+in different software packages (gcc) occured.
+It would be better if we disable the special GNU libc checks
+for uClibc-ng here. uClibc-ng implements the required scanf
+functionality.
+
+Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 3ba723f..ec197ee 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -581,7 +581,7 @@ AC_CACHE_VAL([scanf_cv_alloc_modifier],
+ #include <stdio.h>
+ #include <unistd.h>
+
+- #ifdef __GLIBC__
++ #if defined(__GLIBC__) && !defined(__UCLIBC__)
+
+ #if !(__GLIBC_PREREQ(2, 7))
+ #error %m is not available
+--
+2.1.4
+
OpenPOWER on IntegriCloud