From 9fa40ad5f45ed7bf91181609a3feca3a2508ef53 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Mon, 22 Apr 2019 02:06:34 -0700 Subject: indent: Upgrade to 2.2.12 Add two patches to fix the build error. Add -Wno-error=unused-value for native build to silence below error: | In file included from ../../indent-2.2.12/src/indent.h:60:0, from ../../indent-2.2.12/src/indent.c:77: | ../../indent-2.2.12/src/indent.c: In function 'main': | ../../indent-2.2.12/src/libgettext.h:88:5: error: statement with no effect [-Werror=unused-value] ((void) (Domainname), (const char *) (Dirname)) ^ | ../../indent-2.2.12/src/indent.c:1064:5: note: in expansion of macro 'bindtextdomain' bindtextdomain(PACKAGE, LOCALEDIR); Signed-off-by: Mingli Yu Signed-off-by: Khem Raj --- meta-oe/recipes-extended/indent/indent_2.2.12.bb | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meta-oe/recipes-extended/indent/indent_2.2.12.bb (limited to 'meta-oe/recipes-extended/indent/indent_2.2.12.bb') diff --git a/meta-oe/recipes-extended/indent/indent_2.2.12.bb b/meta-oe/recipes-extended/indent/indent_2.2.12.bb new file mode 100644 index 0000000000..f2891df50d --- /dev/null +++ b/meta-oe/recipes-extended/indent/indent_2.2.12.bb @@ -0,0 +1,27 @@ +SUMMARY = "A GNU program for formatting C code" +HOMEPAGE = "http://www.gnu.org/software/indent/" +SECTION = "Applications/Text" +DESCRIPTION = "Indent is a GNU program for beautifying C code, so that \ +it is easier to read. Indent can also convert from one C writing style \ +to a different one. Indent understands correct C syntax and tries to handle \ +incorrect C syntax. \ +Install the indent package if you are developing applications in C and \ +you want a program to format your code." +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" +DEPENDS = "virtual/gettext" + +SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ + file://0001-src-indent.c-correct-the-check-for-locale.h.patch \ + file://0001-Makefile.am-remove-regression-dir.patch \ +" +SRC_URI[md5sum] = "4764b6ac98f6654a35da117b8e5e8e14" +SRC_URI[sha256sum] = "e77d68c0211515459b8812118d606812e300097cfac0b4e9fb3472664263bb8b" + +inherit autotools gettext + +CFLAGS_class-native += " -Wno-error=unused-value" + +FILES_${PN}-doc += "/usr/doc/indent/indent.html" + +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf