Files
packages/libs
Josef Schlehofer eb8aafe189 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>
(cherry picked from commit 1bf4bd3856)
2026-05-24 09:36:27 +02:00
..
2024-08-27 15:32:23 -03:00
2024-02-07 13:52:46 -08:00
2024-09-02 10:57:07 -07:00
2024-02-07 14:00:33 -08:00
2026-05-07 12:05:48 +03:00
2025-12-15 15:46:38 +01:00
2024-02-04 16:16:10 -08:00
2023-04-21 22:46:58 +02:00
2024-02-10 14:55:02 -08:00
2024-02-10 22:13:08 -08:00
2023-09-21 15:48:29 -07:00
2024-02-04 16:16:10 -08:00
2024-08-22 20:41:15 -07:00
2024-02-16 14:00:59 +08:00
2024-08-16 18:03:35 -07:00
2024-11-26 12:26:04 +00:00
2026-04-07 13:58:30 +02:00
2024-05-24 13:50:11 +08:00
2025-06-30 10:18:26 +02:00
2024-02-04 16:07:26 -08:00
2024-09-02 10:57:48 -07:00
2024-06-04 14:14:58 -07:00
2024-03-23 22:30:51 -07:00
2024-09-17 09:12:25 -07:00
2024-05-02 20:20:29 +08:00
2024-02-04 16:16:10 -08:00
2024-02-04 16:16:10 -08:00
2024-01-02 14:53:38 -08:00
2024-04-19 14:18:45 -07:00
2024-05-09 12:19:56 +09:00
2025-08-06 19:03:41 +08:00
2025-10-29 11:53:52 +01:00
2023-04-21 22:46:58 +02:00
2024-02-10 14:53:39 -08:00
2024-02-04 16:16:10 -08:00
2022-09-05 22:13:30 -07:00
2024-02-04 16:16:10 -08:00
2024-02-04 16:16:10 -08:00
2023-12-22 13:09:18 +00:00
2026-05-14 10:17:49 +02:00
2024-02-14 17:28:07 -08:00
2024-05-15 14:36:27 -07:00
2024-05-15 17:40:05 -07:00
2024-02-04 16:16:10 -08:00
2023-04-21 22:46:58 +02:00
2022-03-13 00:02:02 -08:00
2024-02-04 16:16:10 -08:00
2025-10-08 16:09:19 +02:00
2026-04-27 13:00:45 +02:00
2026-04-27 13:00:45 +02:00
2023-04-21 22:46:58 +02:00
2024-04-10 16:15:51 -07:00
2023-04-21 22:46:58 +02:00
2023-04-21 22:46:58 +02:00
2024-01-24 14:55:52 -08:00
2024-01-31 16:01:52 -08:00
2024-04-12 00:39:20 +01:00
2023-04-21 22:46:58 +02:00
2024-02-10 12:43:06 +00:00
2025-07-08 08:31:56 +02:00
2024-07-25 16:06:20 -07:00
2024-03-08 00:34:29 +08:00
2024-01-02 14:52:13 -08:00
2024-02-04 15:54:56 -08:00
2024-01-29 16:04:09 -08:00
2024-05-29 18:47:08 -07:00
2022-11-23 20:05:09 -08:00
2024-08-24 12:04:11 +02:00
2024-02-04 16:16:10 -08:00
2024-02-14 17:05:39 -08:00
2024-02-04 16:02:06 -08:00
2024-02-22 10:48:21 -08:00
2023-01-20 11:07:55 +00:00
2024-09-24 07:14:20 -07:00
2024-02-04 16:16:10 -08:00
2024-08-16 15:51:54 -07:00
2024-07-12 13:15:49 -07:00
2024-05-24 13:50:11 +08:00
2024-02-04 16:16:10 -08:00
2023-05-29 18:15:59 +03:00
2024-02-14 17:06:38 -08:00
2024-08-19 10:11:04 -07:00
2024-07-02 09:36:28 -07:00
2024-08-18 10:55:39 -07:00
2023-04-21 22:46:58 +02:00
2024-05-27 10:51:44 -07:00
2024-06-10 04:44:42 +08:00
2023-04-21 22:46:58 +02:00
2022-09-14 13:00:04 -07:00
2022-12-19 16:12:22 -08:00
2022-09-07 22:56:56 +01:00
2024-02-01 22:12:24 +01:00
2024-05-15 19:43:06 -07:00
2024-04-30 13:46:24 -07:00
2024-08-23 13:54:07 -07:00
2024-02-02 17:54:36 +08:00
2024-09-24 07:14:20 -07:00
2025-08-28 17:32:26 +03:00
2024-10-31 13:57:58 +01:00
2024-02-04 16:16:10 -08:00
2024-02-04 16:25:51 -08:00
2024-01-02 14:51:35 -08:00
2024-06-01 17:27:37 -07:00
2024-02-10 18:34:01 -08:00
2024-03-22 16:08:34 +08:00
2024-06-29 15:45:12 -07:00
2023-04-21 22:46:58 +02:00
2024-06-08 17:31:52 -07:00
2024-10-07 18:08:18 -07:00
2023-07-30 22:00:27 +01:00
2023-09-20 21:00:32 +02:00
2024-10-26 14:49:06 +03:00
2025-06-30 10:18:26 +02:00
2024-05-27 10:51:44 -07:00
2025-05-22 14:28:21 +02:00
2024-08-31 00:13:03 +08:00
2024-04-30 13:46:24 -07:00
2026-04-27 13:00:45 +02:00
2025-06-30 10:18:26 +02:00
2024-08-24 11:23:44 -07:00
2024-07-31 10:26:46 +02:00
2024-06-16 16:41:29 -07:00
2024-04-21 00:17:23 +03:00
2024-08-16 15:51:20 -07:00
2023-08-09 13:38:42 -07:00
2024-02-14 17:23:29 -08:00
2024-09-24 07:14:20 -07:00
2025-01-26 17:12:56 +08:00
2024-02-04 16:16:10 -08:00
2026-04-27 10:16:50 +02:00
2024-02-14 17:09:50 -08:00
2023-04-21 22:46:58 +02:00
2024-02-04 16:16:10 -08:00
2024-08-03 16:42:01 -07:00
2023-03-08 23:49:10 +01:00
2024-04-13 14:04:45 -07:00
2024-07-05 13:41:56 -07:00
2024-01-31 16:00:10 -08:00
2023-04-21 22:46:58 +02:00
2024-09-23 18:24:22 +08:00
2024-09-12 17:48:44 +08:00
2024-09-12 17:48:35 +08:00
2024-02-04 16:16:10 -08:00
2024-02-04 16:16:10 -08:00
2024-01-31 16:00:10 -08:00
2024-08-23 15:43:27 +02:00
2024-05-27 10:52:01 -07:00
2024-02-04 16:16:10 -08:00
2024-06-29 15:26:38 -07:00
2023-01-20 17:44:14 -08:00
2024-04-10 16:15:45 -07:00
2023-04-21 22:46:58 +02:00
2024-02-04 16:16:10 -08:00
2023-11-03 10:05:22 +08:00
2024-02-12 13:51:21 -08:00
2024-01-31 16:00:10 -08:00
2022-01-12 18:51:51 +00:00
2023-09-08 19:00:44 +08:00
2022-11-07 17:30:36 -08:00
2024-02-04 16:16:10 -08:00
2026-04-19 22:46:31 +03:00
2024-10-16 10:47:26 -07:00
2023-04-21 22:46:58 +02:00
2024-05-27 10:52:13 -07:00
2022-02-09 16:05:39 -08:00
2024-09-19 18:55:14 +02:00
2025-06-30 10:18:26 +02:00
2024-05-29 18:47:27 -07:00
2024-02-04 16:16:10 -08:00
2024-06-29 15:12:16 -07:00
2023-04-25 14:48:17 -03:00
2023-04-21 22:46:58 +02:00
2024-05-24 13:50:11 +08:00
2024-02-14 17:40:25 -08:00