]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
ncurses: bump to 6.0
authorAdam Duskett <Aduskett@gmail.com>
Tue, 21 Mar 2017 00:53:37 +0000 (20:53 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 1 Apr 2017 14:45:23 +0000 (16:45 +0200)
ncurses 6.0 has been out for a while now (August 8th 2015!), so this
patch brings us up to the latest version.

- The first patch is no longer needed as it was fixed in the new
  release.
- The other two packages are still applicable, so they have been
  updated to apply properly on the new ncurses version.
- A new option: --with-pkg-config-libdir has been added. Without it
  pkg files wouldn't install to the correct location.
- NCURSES_ABI_VERSION is no longer needed, as there is only 6.

Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ncurses/0001-fixup-pkg-config-handling.patch [deleted file]
package/ncurses/0001-gcc-5.x-MKlib_gen.patch [moved from package/ncurses/0002-gcc-5.x-MKlib_gen.patch with 87% similarity]
package/ncurses/0002-recognise-uclinux.patch [new file with mode: 0644]
package/ncurses/0003-recognise-uclinux.patch [deleted file]
package/ncurses/ncurses.hash
package/ncurses/ncurses.mk

diff --git a/package/ncurses/0001-fixup-pkg-config-handling.patch b/package/ncurses/0001-fixup-pkg-config-handling.patch
deleted file mode 100644 (file)
index e1cfc75..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-Change handling of PKG_CONFIG_LIBDIR
-
-When PKG_CONFIG_LIBDIR was unset in the environment, the configure
-script was deducing the PKG_CONFIG_LIBDIR from the location of the
-pkg-config binary, which doesn't make a lot of sense, and isn't done
-by other autotools based packages.
-
-Also, the configure script was checking that the directory really
-exists. This forced to create the directory *and* provide an absolute
-path in PKG_CONFIG_LIBDIR, which didn't play well with the fact that
-at installation time, PKG_CONFIG_LIBDIR is suffixed to DESTDIR, which
-means that we got two times the staging directory location.
-
-This patch fixes both of those issues. Also, since ncurses uses a fork
-of autoconf 2.13, we can't simply use _AUTORECONF=YES, so we also fix
-the configure script in this patch.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-
-Index: b/configure
-===================================================================
---- a/configure
-+++ b/configure
-@@ -3623,27 +3623,20 @@
-       # Leave this as something that can be overridden in the environment.
-       if test -z "$PKG_CONFIG_LIBDIR" ; then
--              PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
-+              PKG_CONFIG_LIBDIR="/usr/lib/pkgconfig"
-       fi
-+
-       PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
--      if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
--# Check whether --enable-pc-files or --disable-pc-files was given.
--if test "${enable_pc_files+set}" = set; then
--  enableval="$enable_pc_files"
--  enable_pc_files=$enableval
--else
--  enable_pc_files=no
--fi;
--              echo "$as_me:3638: result: $enable_pc_files" >&5
--echo "${ECHO_T}$enable_pc_files" >&6
-+        # Check whether --enable-pc-files or --disable-pc-files was given.
-+      if test "${enable_pc_files+set}" = set; then
-+          enableval="$enable_pc_files"
-+          enable_pc_files=$enableval
-       else
--              echo "$as_me:3641: result: no" >&5
--echo "${ECHO_T}no" >&6
--              { echo "$as_me:3643: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
--echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
--              enable_pc_files=no
--      fi
-+          enable_pc_files=no
-+      fi;
-+      echo "$as_me:3638: result: $enable_pc_files" >&5
-+      echo "${ECHO_T}$enable_pc_files" >&6
- fi
- echo "$as_me:3649: checking if we should assume mixed-case filenames" >&5
-Index: b/configure.in
-===================================================================
---- a/configure.in
-+++ b/configure.in
-@@ -174,20 +174,14 @@
-       # Leave this as something that can be overridden in the environment.
-       if test -z "$PKG_CONFIG_LIBDIR" ; then
--              PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[[^/]]*/[[^/]]*$,,'`/lib/pkgconfig
-+              PKG_CONFIG_LIBDIR="/usr/lib/pkgconfig"
-       fi
-       PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
--      if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
--              AC_ARG_ENABLE(pc-files,
-+      AC_ARG_ENABLE(pc-files,
-                       [  --enable-pc-files       generate and install .pc files for pkg-config],
-                       [enable_pc_files=$enableval],
-                       [enable_pc_files=no])
--              AC_MSG_RESULT($enable_pc_files)
--      else
--              AC_MSG_RESULT(no)
--              AC_MSG_WARN(did not find library $PKG_CONFIG_LIBDIR)
--              enable_pc_files=no
--      fi
-+      AC_MSG_RESULT($enable_pc_files)
- fi
- AC_SUBST(PKG_CONFIG_LIBDIR)
similarity index 87%
rename from package/ncurses/0002-gcc-5.x-MKlib_gen.patch
rename to package/ncurses/0001-gcc-5.x-MKlib_gen.patch
index 25c2bd02d10bd344078c6872a78c91509bb675cd..df7c15fee9781fef2846d068cf552d2702e1b67a 100644 (file)
@@ -12,9 +12,9 @@ http://ncurses.scripts.mit.edu/?p=ncurses.git;a=commit;h=97bb4678dc03e753290b39b
 Original author: Thomas E. Dickey <dickey@invisible-island.net>
 Signed-off-by: Mikhail Peselnik <bas@bmail.ru>
 
---- a/ncurses/base/MKlib_gen.sh.orig   2015-07-23 21:52:32.239481505 +0300
-+++ b/ncurses/base/MKlib_gen.sh        2015-07-23 21:53:20.772966587 +0300
-@@ -437,11 +437,22 @@
+--- a/ncurses/base/MKlib_gen.sh 2015-08-06 20:48:24.000000000 -0400
++++ b/ncurses/base/MKlib_gen.sh        2017-02-07 10:09:01.293962392 -0500
+@@ -491,11 +491,22 @@
        -e 's/gen_$//' \
        -e 's/  / /g' >>$TMP
  
diff --git a/package/ncurses/0002-recognise-uclinux.patch b/package/ncurses/0002-recognise-uclinux.patch
new file mode 100644 (file)
index 0000000..57dd4cf
--- /dev/null
@@ -0,0 +1,29 @@
+aclocal: fix detection for uclinux hosts
+uclinux is just a linux like the others...
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Signed-off-by: "Adam Duskett" <aduskett@gmail.com>
+
+--- a/aclocal.m4       2015-08-05 20:46:34.000000000 -0400
++++ b/aclocal.m4       2017-02-07 09:58:17.770056849 -0500
+@@ -7656,7 +7656,7 @@
+       cf_xopen_source="-D_SGI_SOURCE"
+       cf_XOPEN_SOURCE=
+       ;;
+-(linux*|gnu*|mint*|k*bsd*-gnu)
++(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu)
+       CF_GNU_SOURCE
+       ;;
+ (minix*)
+diff -durN a/configure b/configure
+--- a/configure        2015-08-05 05:20:32.000000000 -0400
++++ b/configure        2017-02-07 09:58:52.883886426 -0500
+@@ -7869,7 +7869,7 @@
+       cf_xopen_source="-D_SGI_SOURCE"
+       cf_XOPEN_SOURCE=
+       ;;
+-(linux*|gnu*|mint*|k*bsd*-gnu)
++(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu)
+ echo "$as_me:7874: checking if we must define _GNU_SOURCE" >&5
+ echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
diff --git a/package/ncurses/0003-recognise-uclinux.patch b/package/ncurses/0003-recognise-uclinux.patch
deleted file mode 100644 (file)
index e86546c..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-aclocal: fix detection for uclinux hosts
-
-uclinux is just a linux like the others...
-
-Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-
-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
index 482b2d4853277d31e322b7450f185b43887db358..6bca14383602cb8d1e13f93c7ab4f8b77cc23d2f 100644 (file)
@@ -1,2 +1,2 @@
 # Locally calculated after checking pgp signature
-sha256 9046298fb440324c9d4135ecea7879ffed8546dd1b58e59430ea07a4633f563b        ncurses-5.9.tar.gz
+sha256 f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260        ncurses-6.0.tar.gz
index 9d1b75d6417f21672187c57eb764f056814653b7..9552364093964f60f534646efac795205d55e56a 100644 (file)
@@ -4,13 +4,13 @@
 #
 ################################################################################
 
-NCURSES_VERSION = 5.9
+NCURSES_VERSION = 6.0
 NCURSES_SITE = $(BR2_GNU_MIRROR)/ncurses
 NCURSES_INSTALL_STAGING = YES
 NCURSES_DEPENDENCIES = host-ncurses
 NCURSES_LICENSE = MIT with advertising clause
 NCURSES_LICENSE_FILES = README
-NCURSES_CONFIG_SCRIPTS = ncurses$(NCURSES_LIB_SUFFIX)$(NCURSES_ABI_VERSION)-config
+NCURSES_CONFIG_SCRIPTS = ncurses$(NCURSES_LIB_SUFFIX)6-config
 
 NCURSES_CONF_OPTS = \
        --without-cxx \
@@ -25,8 +25,10 @@ NCURSES_CONF_OPTS = \
        --enable-const \
        --enable-overwrite \
        --enable-pc-files \
+       --with-pkg-config-libdir="/usr/lib/pkgconfig" \
        $(if $(BR2_PACKAGE_NCURSES_TARGET_PROGS),,--without-progs) \
-       --without-manpages
+       --without-manpages \
+
 
 # Install after busybox for the full-blown versions
 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
@@ -99,7 +101,6 @@ NCURSES_LINK_STAGING_LIBS = \
 NCURSES_LINK_STAGING_PC = $(call NCURSES_LINK_PC)
 
 NCURSES_CONF_OPTS += --enable-ext-colors
-NCURSES_ABI_VERSION = 6
 NCURSES_TERMINFO_FILES += \
        p/putty-256color \
        x/xterm+256color \
@@ -108,8 +109,6 @@ NCURSES_TERMINFO_FILES += \
 NCURSES_POST_INSTALL_STAGING_HOOKS += NCURSES_LINK_STAGING_LIBS
 NCURSES_POST_INSTALL_STAGING_HOOKS += NCURSES_LINK_STAGING_PC
 
-else # BR2_PACKAGE_NCURSES_WCHAR
-NCURSES_ABI_VERSION = 5
 endif # BR2_PACKAGE_NCURSES_WCHAR
 
 ifneq ($(BR2_ENABLE_DEBUG),y)