Commit Graph

20 Commits

Author SHA1 Message Date
coolsnowwolf
45df3bee2c Revert "libs/glib2: update to 2.82.0"
This reverts commit 33b43c290a.
2024-12-04 18:07:14 +08:00
coolsnowwolf
33b43c290a libs/glib2: update to 2.82.0 2024-12-03 14:30:31 +08:00
coolsnowwolf
dfecd1ae85 glib2: bump version 2023-10-17 01:30:02 +08:00
Rosen Penev
e03daef9d1 glib2: backport locale fix
Fixes compilation with non English locale.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-08 14:43:46 +08:00
Rosen Penev
b3d7dc82dd glib2: update to 2.74.0
Remove upstreamed patch and delete pointless one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-08 14:43:45 +08:00
Stijn Tintel
45982f74ab glib2: disable fortify source
The glib2 package fails to build when CONFIG_PKG_FORTIFY_SOURCE_1 or
CONFIG_PKG_FORTIFY_SOURCE_2 is enabled in the OpenWrt config:

In file included from ../glib/libcharset/localcharset.c:28:
/home/stijn/Development/OpenWrt/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/include/fortify/stdio.h: In function 'snprintf':
/home/stijn/Development/OpenWrt/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/include/fortify/stdio.h:101:9: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
  101 |         return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack());
      |         ^~~~~~
/home/stijn/Development/OpenWrt/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/include/fortify/stdio.h: In function 'sprintf':
/home/stijn/Development/OpenWrt/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/include/fortify/stdio.h:110:17: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
  110 |                 __r = __orig_snprintf(__s, __b, __f, __builtin_va_arg_pack());
      |                 ^~~
/home/stijn/Development/OpenWrt/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/include/fortify/stdio.h:114:17: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
  114 |                 __r = __orig_sprintf(__s, __f, __builtin_va_arg_pack());
      |                 ^~~

Disable fortify source for the package as a workaround.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-11-08 14:43:45 +08:00
Rosen Penev
69c59fc2d1 glib2: remove libiconv/host build dependency
No longer present. The original reason for having it was an unfortunate
side effect of the way meson uses HOST_LDFLAGS. Since the transistion to
use dependency('iconv'), this is no longer relevant.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-08 14:43:45 +08:00
Rosen Penev
0ccf4966e2 glib2: replace intl patch with upstream solution
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-08 14:43:45 +08:00
Sebastian Kemper
edde446cac glib2: update libintl handling
glib2's meson.build runs check cc.has_function('ngettext', args :
osx_ldflags) and, if successful, it never looks for non-libc libintl.
For musl and glibc this test is always successful.

glib2 unconditionally sets ENABLE_NLS, so during compile <libintl.h>
gets included always. But then we have a disconnect when the OpenWrt pkg
is being built with BUILD_NLS=y, because the <libintl.h> will be from
libintl-full but glib2 will not link to libintl-full.

With BUILD_NLS=n there's no problem, because the <libintl.h> will be
from libc.

In lieu of proper libintl detection in glib2's meson build, removing the
SED call from the Makefile together with the added patch sorts this out.
The SED call can be removed because when we force libintl-full use, the
meson build will put the necessary linker flag into the pkg-config file
itself.

Alpine Linux does something similar (see [1]), but they always force
the use of the external libintl. I assume they always go for full NLS
support.

[1] https://git.alpinelinux.org/aports/tree/main/glib/musl-libintl.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 14:43:45 +08:00
Rosen Penev
3de25485dd glib2: update to 2.70.5
Enabled glib_checks to fix podman.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-08 14:43:44 +08:00
Rosen Penev
28a58b5b6a treewide: remove PKG_INSTALL for meson projects
It doesn't seem to be used by meson.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-06-16 12:49:10 +00:00
Rosen Penev
17fb48f851 glibs: revert "fix compilation with Alpine Linux"
This reverts commit 0ce744202ad2a2feaa3b841ce934765416d1339e.

Broken everywhere else. A better solution will need to be found.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-02 05:37:26 +00:00
Florian Eckert
45e19515fe glib2: update version to 2.70.4
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-03-21 08:01:59 +00:00
Rosen Penev
2ea4a99854 glib2: fix compilation with Alpine Linux
Patch taken from Alpine Linux git. The problem is missing -lintl linker
flag. Placed in a separate directory as the patch interferes with the
way libintl is implemented in OpenWrt.

Also removed rpath hack, which is not needed as all libraries are
static.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-18 11:46:47 +00:00
lean
0ac1de14f8 glib2: fix meson 2021-12-17 14:25:05 +08:00
Stalker
e4e48f7f84
libs/glib2:update to 2.68.4
Fix the compilation problem of the ubuntu-21.10
2021-10-19 23:28:17 +08:00
lean
49b7495639 packages: merge upstream 2021-06-15 17:47:11 +08:00
coolsnowwolf
15de7297b9 glib2: fix mips16 build, add size reducing static link, fpic CFLAGS 2020-02-16 21:21:06 +08:00
LEAN-ESX
8f81b7e72e glib2: update to 2.58.3 2019-11-23 08:24:42 -08:00
coolsnowwolf
d17588da1a first commit 2018-10-18 16:56:47 +08:00