aboutsummaryrefslogtreecommitdiff
path: root/libs/glib2
Commit message (Collapse)AuthorAge
* glib2: backport locale fixRosen Penev2022-09-22
| | | | | | Fixes compilation with non English locale. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.74.0Rosen Penev2022-09-22
| | | | | | Remove upstreamed patch and delete pointless one. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: disable fortify sourceStijn Tintel2022-07-19
| | | | | | | | | | | | | | | | | | | | | | 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>
* glib2: remove libiconv/host build dependencyRosen Penev2022-07-15
| | | | | | | | 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>
* treewide: remove PKG_INSTALL for meson projectsRosen Penev2022-06-15
| | | | | | It doesn't seem to be used by meson. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: replace intl patch with upstream solutionRosen Penev2022-06-09
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update libintl handlingSebastian Kemper2022-06-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* glib2: update to 2.70.5Rosen Penev2022-05-22
| | | | | | Enabled glib_checks to fix podman. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glibs: revert "fix compilation with Alpine Linux"Rosen Penev2022-04-01
| | | | | | | | This reverts commit 0ce744202ad2a2feaa3b841ce934765416d1339e. Broken everywhere else. A better solution will need to be found. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update version to 2.70.4Florian Eckert2022-03-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* glib2: fix compilation with Alpine LinuxRosen Penev2022-03-17
| | | | | | | | | | | 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>
* glib2: update to 2.70Rosen Penev2021-10-22
| | | | | | | | | | | | Remove various outdated patches. No more uClibc and distutils is a requirement. Compile host libraries statically. Size is not a concern there. Also avoids rpath hacks. Disable NLS as well. Avoids gettext dependencies. Add libpcre dependency. Seems to be a requirement now. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: compile with tools/mesonRosen Penev2021-09-17
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.68.4Rosen Penev2021-08-27
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.68.1Rosen Penev2021-04-13
| | | | | | | | | | Removed two now pointless patches as they were added as options. Switch to AUTORELEASE for simplicity. Update MESON_ARGS. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.66.4Rosen Penev2021-01-07
| | | | | | Remove liconv hack for uClibc-ng as the latter is gone. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: use normal format functionsRosen Penev2020-12-12
| | | | | | | | | These meson checks rely on being able to run binaries. Just force them on. Reduces compiled size. Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.66.3Rosen Penev2020-11-24
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.66.1Rosen Penev2020-10-14
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: remove static library hackRosen Penev2020-09-30
| | | | | | There's a better and faster way to do this. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.66.0Rosen Penev2020-09-20
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.65.2Rosen Penev2020-08-27
| | | | | | Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.65.1Rosen Penev2020-08-17
| | | | | | | Add a small hack to glib2 to avoid using proxy-intl and break compilation under uClibc-ng. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: add full language support hack to fix compilationRosen Penev2020-08-11
| | | | | | Otherwise, dependent packages need to all add -lintl to LDFLAGS. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: fix full language buildRosen Penev2020-08-02
| | | | | | Needs -lintl. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: add back libiconv/host build dependencyRosen Penev2020-08-01
| | | | | | | HOST_LDFLAGS are used in target builds with meson. Having -liconv is necessary because of certain hosts that lack iconv in libc. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: add gettext-full build dependencyRosen Penev2020-07-31
| | | | | | I don't know why this is needed. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: revert intl changeRosen Penev2020-07-31
| | | | | | | | | This was causing massive buildbot failure. The intent was to fix uClibc-ng and CONFIG_BUILD_NLS, but that ended up breaking everything. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Merge pull request #12971 from neheb/glb2Rosen Penev2020-07-30
|\ | | | | glib2: add back gettext dependencies
| * glib2: add back gettext dependenciesRosen Penev2020-07-30
| | | | | | | | | | | | | | | | | | | | | | | | The libintl check is broken in meson.build. Patched it and added back the gettext build dependencies. Avoids the proxy-intl thing that glib2 likes to use. Updated configure options. Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* | glib2: install codegen module in staging dirAleksander Morgado2020-07-30
|/ | | | | | | | Install not only the gdbus-codegen program in the target staging dir, but also the actual codegen module, so that the program is fully usable by other packages that require it during build. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
* glib2: update to 2.65.0Rosen Penev2020-07-23
| | | | | | | | | | | | | | | | | | | | Modified to use meson as upstream has abandoned autotools. Added license information. Cleaned up Makefile for consistency between packages. Added hack to compile static libs. Removed old patches and add new ones. Removed BUILD_PARALLEL options. These are default with ninja/meson. Removed gettext build dependencies. glib2 now includes its own solution. Added patch to remove distutils host dependency. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Revert "glib2: update to 2.64.2"Josef Schlehofer2020-04-20
| | | | | | | | | It is not ready and there are some issues described in https://github.com/openwrt/packages/pull/11442 This reverts commit b465ac30028c8b17228f455da057e49add3735b4. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* Revert "glib2: fix host build"Josef Schlehofer2020-04-20
| | | | | | | | | | | There isn't prime time for it. Currently, it can not be built. It fails with the following error: ERROR: Compiler gcc can not compile programs. More details in https://github.com/openwrt/packages/pull/11887 and https://github.com/openwrt/packages/issues/11900 This reverts commit b62ed68007eb9429a3f5e40ce56b0094c57d6414. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* glib2: fix host buildRosen Penev2020-04-18
| | | | | | Seems to need -liconv. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.64.2Rosen Penev2020-04-16
| | | | | | | | | | | | | | | | | | Modified to use meson as upstream has abandoned autotools. Added license information. Cleaned up Makefile for consistency between packages. Added hack to compile static libs. Removed old patches and add new ones. Removed BUILD_PARALLEL options. These are default with ninja/meson. Removed gettext build dependencies. glib2 now includes its own solution. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: fix mips16 build, add size reducing static link, fpic CFLAGSAndy Walsh2019-12-31
| | | | | | | * allows building as mips16 (fixes broken mips16/32 mixed static linking) * add some static link related flags to reduce target binary size Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
* glib2: Disable WerrorRosen Penev2019-11-02
| | | | | | | | On GCC9, it throws a Wformat-nonliteral error. Unfortunately, there's no easy was to fix it as it is fortify-headers where the warning ultimately comes from. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: add PKG_CPE_ID for better cvescanner coverageJan Pavlinec2019-09-17
| | | | Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
* glib2: don't use libelf during host buildSebastian Kemper2019-09-09
| | | | | | | | | | | | | | | | | | | | Since commit d3f86c9cc3e465fbca51aaadbb274856831ba56c tools/libelf installs a pkgconfig file, which in turn is picked up during the glib2 host build. On the build bots the same occurs, although it so happens that (sometimes?) libelf.h is not found and the host build fails. This may be a timing issue specific to the build bots, as the header is in fact installed by tools/libelf and I can't reproduce this here on my own computer. In any case, libelf (if detected) is only used by gresource. gresource can be used without it. gresource is not used by OpenWrt's build system (also not in openwrt/packages). So adding "--disable-libelf" to the host configure args is not detrimental in any way and works around the issue described above. Resolves #9927 Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* glib2: remove dependency on own host buildRoman Yeryomin2019-08-17
| | | | | | | Saves some disk space and build time. Tested by building and running bluez. Signed-off-by: Roman Yeryomin <roman@advem.lv>
* glib2: fix CVE-2019-12450Peter Wagner2019-06-02
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* glib2: update to 2.58.3Peter Wagner2019-01-28
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* glib2: update to 2.58.2Peter Wagner2018-12-24
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* glib2: Install glib binariesPeter Wagner2018-10-13
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* glib2: update to 2.58.1Peter Wagner2018-09-25
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* glib2: update to 2.56.3Peter Wagner2018-09-23
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* glib2: Update to 2.56.2Rosen Penev2018-09-17
| | | | | | | | Adjusted some configure flags. Disabled some documentation to save on build time. It seems to have also fixed parallel building on mvebu at least. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* glib2: update to 2.56.1Peter Wagner2018-04-08
| | | | Signed-off-by: Peter Wagner <tripolar@gmx.at>
* glib2: fix build when res_nquery is not availableSebastian Kemper2018-03-24
| | | | | | | | | | | | | | | | | | | | | | Upstream commit "gio: Port GThreadedResolver to use res_nquery() to fix thread-safety" introduced a bug that causes compile failures on platforms where res_nquery is unavailable. This patch fixes that. Bug 794606 has been opened upstream: https://bugzilla.gnome.org/show_bug.cgi?id=794606 On the OpenWrt buildbots this bug is visible during the arc_archs compile: gthreadedresolver.c: In function 'do_lookup_records': gthreadedresolver.c:875:16: error: 'res' undeclared (first use in this function); did you mean '_res'? res_nclose (&res); ^~~ _res gthreadedresolver.c:875:16: note: each undeclared identifier is reported only once for each function it appears in Makefile:3334: recipe for target 'libgio_2_0_la-gthreadedresolver.lo' failed make[8]: *** [libgio_2_0_la-gthreadedresolver.lo] Error 1 Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>