Commit Graph

15 Commits

Author SHA1 Message Date
Josef Schlehofer 1bf4bd3856 treewide: fix dangling SONAME symlinks when using ABI_VERSION
A previous commit attempted to introduce proper SONAME symlinks for
packages utilizing ABI_VERSION. However, it incorrectly copied only
the symlink without the underlying physical library file, resulting
in broken packages with dangling symlinks.

Before:
```
tar -Oxzf bin/packages/arm_cortex-a9_vfpv3-d16/packages/oniguruma_6.9.9-r1_arm_cortex-a9_vfpv3-d16.ipk ./data.tar.gz | tar -tzvf -
drwxr-xr-x  0 0      0           0 Feb  5  2024 ./
drwxr-xr-x  0 0      0           0 Feb  5  2024 ./usr/
drwxr-xr-x  0 0      0           0 Feb  5  2024 ./usr/lib/
lrwxrwxrwx  0 0      0           0 Feb  5  2024 ./usr/lib/libonig.so.5 -> libonig.so.5.4.0
```

After:
```
tar -Oxzf bin/packages/arm_cortex-a9_vfpv3-d16/packages/oniguruma_6.9.9-r1_arm_cortex-a9_vfpv3-d16.ipk ./data.tar.gz | tar -tzvf -
drwxr-xr-x  0 0      0           0 Feb  5  2024 ./
drwxr-xr-x  0 0      0           0 Feb  5  2024 ./usr/
drwxr-xr-x  0 0      0           0 Feb  5  2024 ./usr/lib/
lrwxrwxrwx  0 0      0           0 Feb  5  2024 ./usr/lib/libonig.so.5 -> libonig.so.5.4.0
-rwxr-xr-x  0 0      0      526493 Feb  5  2024 ./usr/lib/libonig.so.5.4.0
```

This properly standardizes shared library packaging, prevents shipping
duplicate full-sized files (as seen previously in packages like libre2),
and aligns the packages feed with core OpenWrt practices.
As you could see in the previous commit (see it in the ``Fixes`` tag):

Before:
```
tar -Oxzf bin/packages/arm_cortex-a9_vfpv3-d16/packages/re2_2023.02.01\~b025c6a3-r1_arm_cortex-a9_vfpv3-d16.ipk ./data.tar.gz | tar -tzvf -
drwxr-xr-x  0 0      0           0 Aug 18  2024 ./
drwxr-xr-x  0 0      0           0 Aug 18  2024 ./usr/
drwxr-xr-x  0 0      0           0 Aug 18  2024 ./usr/lib/
-rw-r--r--  0 0      0      331875 Aug 18  2024 ./usr/lib/libre2.so
-rw-r--r--  0 0      0      331875 Aug 18  2024 ./usr/lib/libre2.so.10
-rw-r--r--  0 0      0      331875 Aug 18  2024 ./usr/lib/libre2.so.10.0.0
```

After:
```
tar -Oxzf bin/packages/arm_cortex-a9_vfpv3-d16/packages/re2_2023.02.01\~b025c6a3-r1_arm_cortex-a9_vfpv3-d16.ipk ./data.tar.gz | tar -tzvf -
drwxr-xr-x  0 0      0           0 Aug 18  2024 ./
drwxr-xr-x  0 0      0           0 Aug 18  2024 ./usr/
drwxr-xr-x  0 0      0           0 Aug 18  2024 ./usr/lib/
lrwxrwxrwx  0 0      0           0 Aug 18  2024 ./usr/lib/libre2.so -> libre2.so.10
lrwxrwxrwx  0 0      0           0 Aug 18  2024 ./usr/lib/libre2.so.10 -> libre2.so.10.0.0
-rwxr-xr-x  0 0      0      331875 Aug 18  2024 ./usr/lib/libre2.so.10.0.0
```

Fixes: 537c2a631d ("treewide: avoid deref symlinks when installing .so")

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-05-24 09:01:13 +02:00
Eneas U de Queiroz 8a9b1e95fd onigumura: fix library installation
Commit 537c2a631 ("treewide: avoid deref symlinks when installing .so")
intended to avoid duplicating .so* files, but this package actually
relies on install dereferencing the file that matches the SONAME
version, to avoid installing unnecessary symlinks.

Fixes: https://github.com/openwrt/packages/issues/29387
Fixes: 537c2a631 ("treewide: avoid deref symlinks when installing .so")
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2026-05-11 07:41:42 -03:00
Josef Schlehofer 537c2a631d treewide: avoid deref symlinks when installing .so
Deduplicate files

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-04-27 11:48:13 +02:00
John Audia 6eb5981060 oniguruma: bump to 6.9.10
In addition to version bump, this is the min version needed to compile with
GCC 15.1

Signed-off-by: John Audia <therealgraysky@proton.me>
2025-06-08 11:40:26 +03:00
Eneas U de Queiroz d1324db153 oniguruma: bump to 6.9.9
Featured changes:
- Update Unicode version 15.1.0
- NEW API: ONIG_OPTION_MATCH_WHOLE_STRING
- Fixed: (?I) option was not enabled for character classes (Issue #264).
- Changed specification to check for incorrect POSIX bracket (Issue
  #253).
- Changed [[:punct:]] in Unicode encodings to be compatible with POSIX
  definition. (Issue #268)
- Fixed: ONIG_OPTION_FIND_LONGEST behavior
--- 6.9.8
- Whole options
  - (?C) : ONIG_OPTION_DONT_CAPTURE_GROUP
  - (?I) : ONIG_OPTION_IGNORECASE_IS_ASCII
  - (?L) : ONIG_OPTION_FIND_LONGEST
- Fixed some problems found by OSS-Fuzz

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2024-02-05 11:26:18 -08:00
Eneas U de Queiroz 307f36834a oniguruma: bump to 6.9.7.1
Changelog:

*  NEW API: ONIG_OPTION_CALLBACK_EACH_MATCH
*  NEW API: ONIG_OPTION_IGNORECASE_IS_ASCII
*  NEW API: ONIG_SYNTAX_PYTHON
*  Fixed some problems found by OSS-Fuzz
*  fix: replace UChar to OnigUChar in oniguruma.h

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-10-11 19:56:05 -07:00
Rosen Penev 22ec02167f oniguruma: update to 6.9.6
Add PKG_BUILD_PARALLEL for faster compilation.

Some minor cleanups for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-11-24 22:43:29 -08:00
Eneas U de Queiroz 69b6f46c96 oniguruma: build using autotools
Cmake currently fails to compile properly.  While there's a fix
upstream, we can avoid carrying any patches here, and use the more
stable build system, despite being slower.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-06-18 13:42:26 -03:00
Michael Heimpold b4ddb635ea oniguruma: add patch to fix NULL pointer exception
I propose to carry this patch until a new upstream
release includes it. For forther references see:

https://github.com/openwrt/packages/issues/12403
and
https://github.com/kkos/oniguruma/pull/196

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2020-06-14 21:14:51 -03:00
Eneas U de Queiroz fdc23942ab oniguruma: bump to 6.9.5_rev1, switch to cmake
Besides the version bump, this backports a patch so that cmake uses the
same so version information as the current autotools, allowing the
switch over to cmake.

6.9.5_rev1 Changelog:

- Look-behind bug: if the look-behind contains a branch with a character
  length of 0 and an anchor is included in the branch, the whole
  look-behind is ignored
- POSIX API disabled by default -- enabled in openwrt, as at least
  libevhtp needs it
- Update Unicode version 13.0.0
- NEW: Code point sequence notation \x{HHHH HHHH ...}, \o{OOOO OOOO ...}
- NEW API: retry limit in search functions
- NEW API: maximum nesting level of subexp call
- Fixed behavior of isolated options in Perl and Java syntaxes.
  /...(?i).../

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-05-08 11:26:51 -03:00
Eneas U de Queiroz 94895ec818 oniguruma: bump to version 6.9.4
This version adds a new RegSet API, and fixes the following:
 - CVE-2019-19012
 - CVE-2019-19203
 - CVE-2019-19204
 - CVE-2019-19246
 - some problems (found by libFuzzer test)

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-01-15 16:47:18 -03:00
Eneas U de Queiroz b7d0a82a7f oniguruma: update to release 6.9.3
This release incorporates fixes for CVE-2019-13224 and CVE-2019-13225,
and "fixed many problems (found by libfuzzer programs)."

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-08-14 11:51:35 -03:00
Eneas U de Queiroz e841d74b77 oniguruma: fix CVE-2019-13224 & CVE-2019-13225
The patches were taken from upstream commits.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-07-17 16:55:32 -03:00
Eneas U de Queiroz e0b250538e oniguruma: change ${...} to $(...) in Makefile
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-27 10:12:39 -03:00
Eneas U de Queiroz 7cb6405afe oniguruma: add new package
oniguruma is a regular expression library for different character
encodings.

It is a dependency of current version of libevhtp, and is currently only
producing a static library, not generating an installable package.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-24 14:55:47 -03:00