Files
termux-packages/packages/aspell/android-14-support.patch
termux-pacman-bot 57a2a49530 fix(main/aspell): apply patch from NetBSD that avoids use of GNU regex extensions
- Fixes https://github.com/termux/termux-packages/issues/25825 (The command `aspell dump modes` on Android 14+)

- NetBSD uses this patch in its present-day releases, 72ca05d074

- and it is necessary for Android 14+ because part of Android 14's source code is copied and pasted from that newer NetBSD. https://android-review.googlesource.com/c/platform/bionic/+/2290937

Co-authored-by: Jia Yuan Lo <jylo06g@gmail.com>
2025-08-30 00:49:29 +00:00

24 lines
857 B
Diff

NetBSD uses this patch in its present-day releases,
https://github.com/NetBSD/pkgsrc/commit/72ca05d074a5d4a271f71fd92a6370965674007d
and it is necessary for Android 14+ because part of Android 14's source code
is copied and pasted from NetBSD.
https://android-review.googlesource.com/c/platform/bionic/+/2290937
$NetBSD: patch-modules_filter_modes_perl.amf,v 1.1 2021/05/11 01:26:25 rin Exp $
Fix for regex(3) update for NetBSD 9.99;
Stop using GNU regex(3) extension \w.
--- a/modules/filter/modes/perl.amf.orig 2021-05-11 10:16:54.496163627 +0900
+++ b/modules/filter/modes/perl.amf 2021-05-11 10:17:11.072694968 +0900
@@ -2,7 +2,7 @@
ASPELL >=0.60.1
-MAGIC /0:256:^[ \t]*\#!((\/\w*)+)\/perl/pl/pm
+MAGIC /0:256:^[ \t]*\#!((\/[[:alnum:]_]*)+)\/perl/pl/pm
MAGIC /<noregex>/pl/pm
DESCRIPTION mode for checking Perl comments and string literals