]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
sngrep: fix ncurses wchar detection
authorAdam Duskett <Aduskett@gmail.com>
Wed, 7 Jun 2017 15:53:16 +0000 (11:53 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 8 Jun 2017 19:33:10 +0000 (21:33 +0200)
This commit adds an upstream patch to the sngrep package that fixes the
detection of wchar capable ncurses.

Signed-off-by: Adam Duskett <aduskett@codeblue.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/sngrep/sngrep.hash
package/sngrep/sngrep.mk

index bc285450d3c64c5fb2022f37beccdfec0e7de9a3..5966d6319aa0d4b635ba24e901e3f4268d1c5ce9 100644 (file)
@@ -1 +1,3 @@
+# Locally computed
 sha256 7385ac202de6d6a1feffb2fd514600563133d9dfa7fb47be052de839abcc1d52 sngrep-v1.4.3.tar.gz
+sha256 a3376abe20cca95a13ee88188ba5ba50425c93afc927cca018c50b0309ad21f9  4740f3341a99eaec105dee202a6fa7828212cdf1.patch
index 560872f13aa477da78f8d005a7c80f35a8e008bf..9dda15841e2b8ba882d3a21681ca88cee57b8e90 100644 (file)
@@ -14,8 +14,15 @@ SNGREP_DEPENDENCIES = libpcap ncurses host-pkgconf
 SNGREP_CONF_ENV += \
        $(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`")
 
-# our ncurses wchar support is not properly detected
+# This patch fixes ncurses wchar detection
+SNGREP_PATCH = \
+       https://github.com/irontec/sngrep/pull/191/commits/4740f3341a99eaec105dee202a6fa7828212cdf1.patch
+
+ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
+SNGREP_CONF_OPTS += --enable-unicode
+else
 SNGREP_CONF_OPTS += --disable-unicode
+endif
 
 # openssl and gnutls can't be enabled at the same time.
 ifeq ($(BR2_PACKAGE_OPENSSL),y)