Commit Graph

14 Commits

Author SHA1 Message Date
Gyorgy Sarvari
b1355592c1
indent: upgrade 2.2.12 -> 2.2.13
Drop 0001-Fix-builds-with-recent-gettext.patch - it built fine for me without it.

Building requires full makeinfo, not only a lite version, so switched the texinfo
class to texinfo-replacement-native dependency.

Changelog:
- Fix buffer overflows and use after free bugs
- Recognize binary integer literals
- New and updated translations, thanks to our translators:
  - Updated translations:
      Catalan, Croatian, French, Galician, German, Greek, Hungarian,
      Indonesian, Italian, Romanian, Serbian, Spanish, Turkish, Ukrainian
  -  New translation: Portuguese

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-27 16:18:15 -07:00
hongxu
d1375d37ee
indent: fix CVE-2024-0911
Backport a fix from upstream to resolve CVE-2024-0911

  https://git.savannah.gnu.org/git/indent.git feb2b646e6c3a05018e132515c5eda98ca13d50d

(cherry picked from commit 26ef6a9c2d)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-27 16:18:14 -07:00
Yogita Urade
91ac7b0212
indent: fix CVE-2023-40305
GNU indent 2.2.13 has a heap-based buffer overflow in search_brace
in indent.c via a crafted file.

Reference:
https://savannah.gnu.org/bugs/index.php?64503

(cherry picked from commit 7da6cb848b)

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-27 16:18:14 -07:00
J. S.
d2f631c763
Drop unnecessary SRC_URI md5sum from the recipes in meta-oe.
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-05 19:19:22 -08:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj
2faae996e1 indent: Remove dead code using count_parens function
clang static analyser finds it as dead code, and it indeed is dead code
so remove it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-05 06:06:27 -07:00
Robert P. J. Day
f869eaaef3 indent: delete meaningless line referring to "/usr/doc"
Remove what appears to be historical line referencing HTML docs under
/usr/doc -- building indent generates no such file.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-18 15:33:49 -07:00
Khem Raj
8c65264690 indent: Do not build docs
It fails to build currently, with texinfo-dummy

|   File "/mnt/a/tmp-yoe/work/riscv64-yoe-linux-musl/indent/2.2.12-r0/recipe-sysroot-native/usr/bin/makeinfo", line 100, in <module>
|     stub_msg                                                                  | AssertionError: Don't know how to get default output file name from input file
!
| This stand-in version of makeinfo is not yet fully capable of emulating
| the real version from the GNU texinfo suite. If you see this message, file a
| bug report with details on the recipe that failed.
|                                                                               | make[2]: *** [Makefile:814: indent.html] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-28 23:11:30 -08:00
Khem Raj
4078a203e8 recipes: Inherit missing texinfo for makeinfo program
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-28 22:37:15 -08:00
Alexander Kanavin
abda84d15d enscript/indent/sharutils: fix build with gettext 0.20.x
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-20 16:01:19 -08:00
Mingli Yu
9fa40ad5f4 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 <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-29 10:13:56 -07:00
Bian Naimeng
a804a9f994 indent: license should be GPLv3
The license of indent should be GPLv3

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Acked-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-13 12:55:52 +02:00
Qian Lei
7f24cb1fe4 indent: Add new recipe
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.

Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-11-28 13:41:01 +01:00