From patchwork Sun Aug 21 13:38:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 661237 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sHHpL5LkPz9sxb for ; Sun, 21 Aug 2016 23:38:18 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=lL9+Bnrq; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AA2232E91C; Sun, 21 Aug 2016 13:38:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GmRa4MMKeXYn; Sun, 21 Aug 2016 13:38:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 33EB42826F; Sun, 21 Aug 2016 13:38:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E94581C6845 for ; Sun, 21 Aug 2016 13:38:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E24A489CBA for ; Sun, 21 Aug 2016 13:38:09 +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 i+KU4oxLK7DB for ; Sun, 21 Aug 2016 13:38:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0C30B88B00 for ; Sun, 21 Aug 2016 13:38:09 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id i5so9719386wmg.2 for ; Sun, 21 Aug 2016 06:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=WueYEGZL/jsnJUhZfH9DuH9tvyzudCTxAcI1OEdGLDE=; b=lL9+Bnrq7RDZX+MKFuDDQBJuv2BUVkxNwRSR4YTYih16M0PouEm46mpQ+rbWPcMv22 XmJH5M1Nr6CUiUez5WxDm76u+cGqWu2AMHLtuoTZPNQEKaCunhO3kBjQKb45nBu69rD+ k2MdqTXeYjGzpDZcfYVuOV+jtr1QSchmoZyav0cBRSGx+33MhTmYO/JhqAD3V6JVBM4q Jzbh3dIfqGZwK64cbsfIS2VjZkEVlwxU9Q2Fz8MTLf1VVvLh1GNRv/M+XIaOfZFlbiUi He+KmU0cvA6CtlqWLb9G/PJBYEUlykF+ek50RuRwsY35M7tNEx29h9lLbTgJKUoUJa1/ iRyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=WueYEGZL/jsnJUhZfH9DuH9tvyzudCTxAcI1OEdGLDE=; b=CqLEBpkVshzvRmSDCzZUBJ0TaZhz1LX5FdxociTgXQGgIdoBbhSr4gQyXp/GVpPr8c nsAwebM3mioaOLnh3BZ7vK5+y796i0mppu0ajWrUddlQawn+qW2U6vbiPdlhHtPZMbAc Vqx+JphqfFShN8hsn8+Z2ke3QWpZbTIuEiO2hS4pFm/XIyFmluFrCc7hdk7a92UeXgqC FMNgDqhvJ/BX7joAu2muIkRMGfQhl1UnsiVSKoC9wZRynQpUzVh9MjOTL607UZKbo1oB jt/x/CGyP11hoZNOKUymtc172iB82ET3/5q0AxYy5wU5biXSbj8XYbEJBgolLpii04TO v/NQ== X-Gm-Message-State: AEkoouvxYDnxzaVr7mTHZkzfoxOiHxGRtdVScC6NIhYJ4rgnizQzb4Swy0kSRJMcrQjgUA== X-Received: by 10.28.166.140 with SMTP id p134mr10896356wme.21.1471786687572; Sun, 21 Aug 2016 06:38:07 -0700 (PDT) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id 207sm15222933wmb.7.2016.08.21.06.38.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 Aug 2016 06:38:06 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 21 Aug 2016 15:38:02 +0200 Message-Id: <1471786682-18906-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 2.7.4 Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH] package/ncurses: fix build on noMMU uclinux targets X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The ncurses buildsystem does not recognise 'uclinux' as being a 'linux', so it falls back to generic checks, especially when trying to decide what macros to define. So it misses defining absolutely required macros when doing widechar, which break the bui,d. But 'uclinux' is just a 'linux' like any other in this respect. We fix both aclocal.m4 and the generated ./configure script because ncurses does not autoreconf correctly (see comment in 0001-*.patch). Fixes: http://autobuild.buildroot.org/?reason=ncurses-5.9 http://autobuild.buildroot.org/results/d5c/d5c787d34acbfc0c0c7bd8cc0e15b5bc2460d88a/ http://autobuild.buildroot.org/results/fc4/fc4b41fb955c390913a879e0202760347ce29987/ [...too many to list...] Signed-off-by: "Yann E. MORIN" Cc: Waldemar Brodkorb --- package/ncurses/0003-recognise-uclinux.patch | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/ncurses/0003-recognise-uclinux.patch diff --git a/package/ncurses/0003-recognise-uclinux.patch b/package/ncurses/0003-recognise-uclinux.patch new file mode 100644 index 0000000..e86546c --- /dev/null +++ b/package/ncurses/0003-recognise-uclinux.patch @@ -0,0 +1,30 @@ +aclocal: fix detection for uclinux hosts + +uclinux is just a linux like the others... + +Signed-off-by: "Yann E. MORIN" + +diff -durN ncurses-5.9.orig/aclocal.m4 ncurses-5.9/aclocal.m4 +--- ncurses-5.9.orig/aclocal.m4 2011-04-01 01:35:38.000000000 +0200 ++++ ncurses-5.9/aclocal.m4 2016-08-21 15:24:47.003620029 +0200 +@@ -6531,7 +6531,7 @@ + irix[[56]].*) #(vi + cf_xopen_source="-D_SGI_SOURCE" + ;; +-linux*|gnu*|mint*|k*bsd*-gnu) #(vi ++linux*|uclinux*|gnu*|mint*|k*bsd*-gnu) #(vi + CF_GNU_SOURCE + ;; + mirbsd*) #(vi +diff -durN ncurses-5.9.orig/configure ncurses-5.9/configure +--- ncurses-5.9.orig/configure 2016-08-21 15:21:50.789285661 +0200 ++++ ncurses-5.9/configure 2016-08-21 15:24:35.187463625 +0200 +@@ -6984,7 +6984,7 @@ + irix[56].*) #(vi + cf_xopen_source="-D_SGI_SOURCE" + ;; +-linux*|gnu*|mint*|k*bsd*-gnu) #(vi ++linux*|uclinux*|gnu*|mint*|k*bsd*-gnu) #(vi + + echo "$as_me:6996: checking if we must define _GNU_SOURCE" >&5 + echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6