added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
From 3349812de0598ca7722e0b7c7b7e5d48bd79bea9 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Fri, 20 Dec 2019 14:01:18 +0100
Subject: [PATCH] Fix builds with recent gettext
Upstream-Status: Pending
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = no-texinfo.tex
-SUBDIRS = intl src doc po man
+SUBDIRS = src po man
BUILT_SOURCES =
--- a/configure.ac
+++ b/configure.ac
@@ -58,7 +58,6 @@ fi
AC_HEADER_DIRENT
AC_OUTPUT([
- intl/Makefile
po/Makefile.in
Makefile
src/Makefile

View File

@@ -0,0 +1,67 @@
From 27bda5ee884e79d6d0e76955124d2b0c5798d6cf Mon Sep 17 00:00:00 2001
From: Mingli Yu <mingli.yu@windriver.com>
Date: Mon, 25 Feb 2019 00:34:17 -0800
Subject: [PATCH] Makefile.am: remove regression dir
Remove regression dir to fix below do_compile
error:
| Making all in regression
| /bin/sh: line 20: cd: regression: No such file or directory
| Makefile:451: recipe for target 'all-recursive' failed
BTW, it should be safe not to cover regression dir
as there is no Makefile.in under ${S}/regression
and the content of ${S}/regression/Makefile as below.
-------------------------------------
all:
install:
check:
./TEST
distclean: clean
maintainer-clean: clean
distdir:
clean:
@rm -rf output
.PHONY: all install
-------------------------------------
Upstream-Status: Pending
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
Makefile.am | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index ba37a42..548fea7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = no-texinfo.tex
-SUBDIRS = intl src doc po man regression
+SUBDIRS = intl src doc po man
BUILT_SOURCES =
@@ -13,8 +13,7 @@ EXTRA_DIST = README.md \
aclocal/UTIMBUF.m4 \
miscel/Makefile.mingw32 \
miscel/README.vc++ \
- bootstrap \
- regression
+ bootstrap
DISTCLEANFILES=config/config.cache config/config.log config.h
--
2.17.1

View File

@@ -0,0 +1,79 @@
From 5af65ce9674a69054c9a8405e51794c6f3ca41df Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 4 Jun 2021 12:34:18 -0700
Subject: [PATCH] Remove dead paren_level code
Local variable `paren_level' in src/output.c:dump_line_code() is
initialized to 0, then incremented with count_parens() return
value, and then the variable is never used. Also count_parens()
has no side effect. Thus this patch removes this useless code.
Upstream-Status: Submitted [https://mail.gnu.org/archive/html/bug-indent/2011-04/msg00000.html]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/output.c | 35 -----------------------------------
1 file changed, 35 deletions(-)
diff --git a/src/output.c b/src/output.c
index ee01bcc..5b92167 100644
--- a/src/output.c
+++ b/src/output.c
@@ -798,37 +798,6 @@ static int dump_line_label(void)
return cur_col;
}
-/**
- *
- */
-
-static int count_parens(
- const char * string)
-{
- int paren_level = 0;
-
- while (*string)
- {
- switch (*string)
- {
- case '(':
- case '[':
- paren_level++;
- break;
- case ')':
- case ']':
- paren_level--;
- break;
- default:
- break;
- }
-
- string++;
- }
-
- return paren_level;
-}
-
/**
*
*/
@@ -840,8 +809,6 @@ static void dump_line_code(
BOOLEAN * pbreak_line,
int target_col_break)
{
- int paren_level = 0;
-
if (s_code != e_code)
{ /* print code section, if any */
int i;
@@ -928,8 +895,6 @@ static void dump_line_code(
*pcur_col = count_columns (*pcur_col, s_code, NULL_CHAR);
- paren_level += count_parens(s_code);
-
s_code[buf_break->offset] = c;
*pnot_truncated = 0;
--
2.31.1

View File

@@ -0,0 +1,40 @@
From 75369ce004ec0f5e46a432fa1dac8cfc7ae1ef8d Mon Sep 17 00:00:00 2001
From: Mingli Yu <mingli.yu@windriver.com>
Date: Sun, 24 Feb 2019 22:35:08 -0800
Subject: [PATCH] src/indent.c: correct the check for locale.h
Adjust to check HAVE_LC_MESSAGES or HAVE_LOCALE_H
to determine whether include locale.h or not to
fix below issue:
| ../../indent-2.2.12/src/indent.c: In function 'main':
| ../../indent-2.2.12/src/indent.c:1062:5: error: implicit declaration of function 'setlocale'; did you mean 'setstate'? [-Werror=implicit-function-declaration]
| setlocale(LC_ALL, "");
| ^~~~~~~~~
| setstate
| ../../indent-2.2.12/src/indent.c:1062:5: error: nested extern declaration of 'setlocale' [-Werror=nested-externs]
| ../../indent-2.2.12/src/indent.c:1062:15: error: 'LC_ALL' undeclared (first use in this function)
Upstream-Status: Pending
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
src/indent.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/indent.c b/src/indent.c
index 4d666e2..0c2780b 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -71,7 +71,7 @@
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
-#ifdef HAVE_LOCALE_H
+#if defined(HAVE_LC_MESSAGES) || defined(HAVE_LOCALE_H)
#include <locale.h>
#endif
#include "indent.h"
--
2.17.1

View File

@@ -0,0 +1,28 @@
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 = "GPL-3.0-only"
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 \
file://0001-Fix-builds-with-recent-gettext.patch \
file://0001-Remove-dead-paren_level-code.patch \
"
SRC_URI[md5sum] = "4764b6ac98f6654a35da117b8e5e8e14"
SRC_URI[sha256sum] = "e77d68c0211515459b8812118d606812e300097cfac0b4e9fb3472664263bb8b"
inherit autotools gettext texinfo
CFLAGS:append:class-native = " -Wno-error=unused-value"
BBCLASSEXTEND = "native"