summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0
AgeCommit message (Collapse)Author
2019-03-18glib-2.0: clean up EXTRA_OEMESONRoss Burton
Instead of spreading the ptest enabling over the recipe, just add a PACKAGECONFIG to enable the installed tests. Whether this is enabled respects PTEST_ENABLED by default, so it always disabled in native and nativesdk builds. This means we can remove the conditional dependency on dbus, all the conditional enabling of installed tests, and clean up EXTRA_OEMESON. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-28default-distrovars: Drop DISTRO_FEATURES_LIBCKhem Raj
After eglibc was merged into glibc, Kconfig support was also dropped so these libc features therefore are not effective anymore and can be removed Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-25glib-2.0: convert from autotools to mesonAlexander Kanavin
PRINTF settings no longer seem necessary (tested with mingw). Add meson-specific bits to Enable-more-tests-while-cross-compiling.patch and 0001-Install-gio-querymodules-as-libexec_PROGRAM.patch Add 0001-Set-host_machine-correctly-when-building-with-mingw3.patch to allow 'mingw32' as target machine in addition to 'windows'. Add 0001-meson.build-do-not-hardcode-linux-as-the-host-system.patch to correct ARM build errors. Drop configure-libtool.patch (autotools-specific). Fix API docs generation Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-18glib-2.0: Improve shared-mime-info dependency handlingRichard Purdie
This cleans up the handling of the dependency and gets rid of a use of remove which should never be needed in OE-Core. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-17glib-2.0-native: Break circular dependency on shared-mime-utilsRichard Purdie
If we fix native RDEPENDS handling, it exposes a problem where there is a circular dependency between shared-mime-utils and glib-2.0-native. Break this dependency in the -native case. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-16glib-2.0: upgrade 2.58.0 -> 2.58.3Anuj Mittal
* For changes, see: https://gitlab.gnome.org/GNOME/glib/blob/glib-2-58/NEWS * Upstreamed patch removed: date-lt.patch * Tweaked another to remove a hunk trying to find a binary from glib-2.0-native which isn't needed anymore as the code is in python now. * Add locale-base-pl-pl to RDEPENDS for ptest as the fix has been resolved and merged. * Remove libdir INSANE_SKIP for ptest package. The only libs present here are in libexecdir which is allowed by the check. * Revert an upstream patch for now that had changed the behavior of pkg-config files to use absolute paths which results in build failures. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-12-05packages: respect PACKAGE_NO_GCONVKai Kang
PACKAGE_NO_GCONV is set in libc-package.bbclass if not all of 'libc-charsets libc-locale-code libc-locales' included in DISTRO_FEATURES. And then no packages glibc-gconv-* glibc-charmap-* and glibc-localedata-* is created. Update recipes and conf file which depend on these packages to check required distro features. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-14glib.inc: drop duplicate locale-base-fr-fr runtime dependencyMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-10glib-2.0: add missing locale dependencies to PN-ptestRoss Burton
The test suite skips several tests if the required locales are not found, so add them as dependencies of glib-2.0-ptest. (From OE-Core rev: b9317997bd4527b7873eb4f903cc4890b5b3580f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-10glib: fix Lithuanian strings in GDate test suiteRoss Burton
This test suite has hard-coded strings which don't match the new translations in glibc 2.28, so update the test suite. (From OE-Core rev: e1fa8611de2df3a1a15ae795c34f32e4e7fdbc79) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-09glib-2.0: Include the complete license information for pcrePeter Kjellerstedt
For some reason, the copyright part was left out of the license information for pcre in LIC_FILES_CHKSUM, preventing it from being used in, e.g., documentation to satisfy the requirements of the license. Also drop pcre/COPYING from LIC_FILES_CHKSUM as it does not really contain any licensing information, it only refers to a LICENSE file that does not exist. License-Update: Include the complete license information for pcre Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-25glib-2.0: Drop allow /run/media for root patchAlex Kiernan
Upstream implemented an equivalent fix in: c672fcc0a8d6 ("gunixmounts: Allow root to display mounts under /run/media/$username") As a result, this change is completely broken when running as root, as user_name is unitialised when testing strcmp(user_name, "root") so just segfaults. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-06glib: update to 2.58.0Alexander Kanavin
Drop upstreamed patches, refresh the rest. Add an explicit dependency on gettext-native, as glib is no longer fooled by setting msgfmt to /bin/false. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-28glib: remove unnecessary dependency to DISTRO_FEATURESSamuli Piippo
Since DISTRO_FEATURES was expanded in the comments, it created task dependency to the full content of DISTRO_FEATURES, instead of just the x11 used below. This prevented reuse of sstate-cache when unrelated feature flags were changed. Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-15glib: add PACKAGECONFIG for libelfRoss Burton
gresource-tool has optional support for using libelf to extract resources from ELF files, so add a PACKAGECONFIG in case someone wants this. Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-05-04glib-2.0: update to 2.56.1Alexander Kanavin
Remove upstreamed ptest-paths.patch Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-05-04glib: Make glib-mkenums ignore unknown per value optionsPeter Kjellerstedt
If some other per value option was present than 'skip' or 'nick' then a KeyError would occur. Ignoring such options matches the behaviour of the old, Perl-based glib-mkenums. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-04-20glib-2.0/glib.inc: fix broken mingw buildJuro Bystricky
mingw build was broken by the commit: "glib-2.0/glib.inc: apply MLPREFIX renaming to all package classes" When building for mingw, we encounter build errors such as: mv: cannot stat '<builddir>/<...>/usr/libexec/gio-querymodules': No such file or directory The mingw file that exists is "gio-querymodules.exe" instead of "gio-qeurymodules". The fix is to append the names of executables by an OS specific EXEEXT. [YOCTO #12679] Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-05glib-2.0/glib.inc: apply MLPREFIX renaming to all package classesAlexander Kanavin
Now that we have postinst intercept execution working for SDK generation, adding MLPREFIX again makes sense in all cases, as the intercepts do require that it is there. This reverts commit 4ffb728df4bdf21daef31d89cfa5771eaf0d90f8. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-03-03glib: no need to depend on python3nativeRoss Burton
The glib build doesn't appear to use python3native, so remove it to streamline build dependencies. Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-02-24glib-2.0: upgrade to version 2.54.3Maxin B. John
2.54.2 -> 2.54.3 Remove upstreamed patch: 1. glib-mkenums-replace-and-warn-decoding.patch Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-01-19glib-2.0: fix EXTRA_OECONF append for PTESTMartin Hundebøll
The order of '_append' and '_<override>' matters: '_append' must be before overrides to have any effect. Fix this in glib-2.0, so that EXTRA_OECONF is appended instead of overwritten. Signed-off-by: Martin Hundebøll <mnhu@prevas.dk> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-01-18glib: improve gettext enabling/disablingRoss Burton
As we only seed gettext's msgfmt as /bin/false for native builds, explicitly set USE_NLS to yes in the recipe (as it was previously) for targeget and nativesdk builds. Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-01-14glib: remove gettext-native dependency for native buildsRoss Burton
By removing gettext-native as a build dependency in glib-2.0-native we can delay the build of gettext-native further. The gettext class will add the dependency for target builds. Don't forcibly set USE_NLS=yes so that NLS support is supposedly disabled in native builds. GLib will then force it back on, but we shouldn't be using it in any other native recipes so seed the autoconf cache so GLib will run /bin/false instead of msgfmt. Quite a kludge, but it works and should fail obviously if the kludge stops being sufficient. Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-01-10glib-2.0: rationalise build dependenciesRoss Burton
nativesdk-glib-2.0 doesn't build-depend on nativesdk-gettext, but all variations need to depend on gettext-native as they need msgfmt (so gettext-minimal-native isn't an option). Also add virtual/libintl as glib explicitly needs this. Generally this is provided by glibc but some platforms (such as MinGW) don't. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-05glib-2.0: Remove python3 modules when building for mingwAlistair Francis
Commit "glib-2.0: Add python3 modules required by gdbus-codegen" (26af3b4b33a34d7e53059b07236f9d5aae5e004a) broke the MinGW build of QEMU. To fix the build remove the python3 RDEPENDS for gdbus-codegen when targeting mingw. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-02glib-2.0: Add python3 modules required by gdbus-codegenJef Driesen
The gdbus-codegen tool depends on python3, python3-distutils and python3-xml at runtime. But because these dependencies are not stated in the yocto recipe, those python modules are not automatically included in the SDK. Signed-off-by: Jef Driesen <jef.driesen@niko.eu> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-12-18glib-2.0: fix for non-utf8 encoded filesJackie Huang
Some source files aren't valid utf-8 containing for example iso8859-1 accented characters in author's names. Replace invalid data with a replacement '?' character and print a warning to keep things working. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-11-29glib-2.0: update to 2.54.2Alexander Kanavin
LGPL version has been updated from 2.0 to 2.1, adjust the checksums accordingly. Rebase various patches. A few tools have been rewritten from perl (or C) to python, so add a patch that avoids hardcoding the python path in the shebang, and remove previous patching with sed. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-10-06glib-2.0: Remove recommend shared-mime-info for MinGWAlistair Francis
Commit glib-2.0: recommend shared-mime-info (51e4f9ca5368af5cefa26f4ca50b282e858982f8) broke compilation when cross compiling for Windows. This patch removes the recommendation for shared-mime-info when using MinGW cross compile. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Cc: Ross Burton <ross.burton@intel.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-09-11glib-2.0: recommend shared-mime-infoRoss Burton
Large portions of GIO are not that useful without the MIME database. Add a recommends to shared-mime-info so that GIO works out of the box, but can be removed (using BAD_RECOMMENDATIONS) if shared-mime-info is too large and isn't required. [ YOCTO #11792 ] Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-08-16glib-2.0: Upgrade 2.52.2 -> 2.52.3Jussi Kukkonen
Small release with bug fixes and some flatpak portal related improvements. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-24glib.inc: set CVE_PRODUCT to glibMikko Rapeli
NVD uses product glib and vendor gnome for CVE's like: https://nvd.nist.gov/vuln/detail/CVE-2016-6855 Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-06-16meta: Drop remnants of uclibc supportRichard Purdie
uclibc support was removed a while ago and musl works much better. Start to remove the various overrides and patches related to uclibc which are no longer needed. uclibc support in a layer would still be possible. I have strong reasons to believe nobody is still using uclibc since patches are missing and I doubt the metadata even parses anymore. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-06-03glib-2.0: Upgrade 2.50.3 -> 2.52.2Jussi Kukkonen
Remove upstreamed patches (thanks Ross). Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-03-11glib-2.0: improve determinism for GIO ptestsRoss Burton
Previously the GIO tests would be built or not depending on whether the host had a dbus-daemon binary available. Fix this by seeding the AC_CHECK_PROGS check with the right value, and adding a RDEPENDS for dbus-daemon on the target. Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-03-01glib-2.0/glib.inc: If 'charset.alias' exists drop itNathan Rossi
Delete the 'charset.alias' file during the do_install task if it exists. This file is not shipped in any packages and on the targets that it is generated (musl and mingw32) it is undesired. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-03-01glib-2.0/glib.inc: Only apply MLPREFIX renaming to class-targetNathan Rossi
When renaming the 'gio-querymodules' binary to prefix with the current MLPREFIX, only do this for target packages where the MLPREFIX makes sense. This skips renaming for nativesdk targets which have MLPREFIX set to 'nativesdk-'. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-03-01glib-2.0: Upgrade 2.50.2 -> 2.50.3Jussi Kukkonen
Tiny bug fix release. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-05glib-2.0: native package should not depend on DISTRO_FEATURESGary Thomas
xxx-native packages should not depend on ${DISTRO} settings. Doing so feels inherently wrong and limits the usefulness of sstate-cache. This patch changes how this package is installed, in particular removing the dependency on the ${DISTRO_FEATURES} variable in glib-2.0-native. This will further improve the ability to share native packages between builds with differences in ${DISTRO_FEATURES} Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-12-19glib-2.0: Upgrade 2.50.1 -> 2.50.2Jussi Kukkonen
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-11-23glib: remove obsolete gi-exclude patchRoss Burton
This patch has been superseded by 2907b1 in gobject-introspection, which we're now shipping. Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-11-15glibc-2.0: Detect pthread_getname_np() before useKhem Raj
Fixes build with musl Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-10-31glib-2.0: Upgrade 2.48.2 -> 2.50.1Jussi Kukkonen
Six-monthly feature release. glib-2.0-utils now includes "gio" command line utility. Drop a patch that's now upstream. Add PACKAGECONFIG for libmount, enabled by default. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-10-28glib: enable optional building of manpagesAlexander Kanavin
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-08-20glib-2.0: 2.48.1 -> 2.48.2Wang Xin
1) Upgrade glib-2.0 from 2.48.1 to 2.48.2. 2) Modify Enable-more-tests-while-cross-compiling.patch, since the data has changed. Signed-off-by: Wang Xin <wangxin2015.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-01glib: disable valgrind support when compiling in mips16e modeAndré Draszik
| mipsel-poky-linux-uclibc-gcc -mel -mabi=32 -msoft-float \ | -march=mips32r2 -mips16 -minterlink-compressed -mtune=24kec \ | -mdsp --sysroot=<sysroot> -DHAVE_CONFIG_H -I. \ | -I<glib>/glib -I.. -I.. -I../glib -I<glib>/glib -I<glib> \ | -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION \ | -DPCRE_STATIC -pthread -Wall -Wstrict-prototypes \ | -Werror=declaration-after-statement -Werror=missing-prototypes \ | -Werror=implicit-function-declaration -Werror=pointer-arith \ | -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs \ | -fvisibility=hidden -O2 -pipe -g -feliminate-unused-debug-types \ | -c <glib>/glib/gslice.c -fPIC -DPIC -o .libs/libglib_2_0_la-gslice.o | {standard input}: Assembler messages: | {standard input}:2485: Error: invalid operands `move $11,$8' | {standard input}:2487: Error: invalid operands `srl $0,$0,13' | {standard input}:2488: Error: invalid operands `srl $0,$0,29' | {standard input}:2489: Error: invalid operands `srl $0,$0,3' | {standard input}:2490: Error: invalid operands `srl $0,$0,19' | {standard input}:2491: Error: invalid operands `or $13,$13,$13' | Makefile:2076: recipe for target 'libglib_2_0_la-gslice.lo' failed The alternative would probably be to force compilation in normal mips mode for all of glib (as is done for armv4 and armv5). While that would retain the valgrind support, valgrind support itself shouldn't be needed on the target device, and we rather keep the mips16e mode. Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-07-01pythonnative.bbclass, python3native.bbclass: export STAGING_INCDIR, ↵Alexander Kanavin
STAGING_LIBDIR, PYTHON variables We patch Python's distutils modules to access STAGING_INCDIR/LIBDIR, so when they are not set, scripts that utilize distutils (e.g. python-config) fail. Several recipes need to export those manually to prevent such failures, so let's do that in the class instead. PYTHON variable is exported because otherwise autotools' python.m4 macro will pick up its own internal default, which may not be the version that we want. glib recipe in particular was previously using Python 2.x during build due to python.m4 defaulting to it - now it's using Python 3.x, and so needs a small fix in deletion of *.pyc files. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-06-02glib: move to Python 3Alexander Kanavin
Drop python-pygobject and python-dbus dependencies, because nothing in ptests depends on them, and it creates a circular dependency chain. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-17glib-2.0: Upgrade 2.46.2 -> 2.48.1Jussi Kukkonen
* Remove now unnecessary readlink patches and ignore-format-nonliteral-warning.patch * Port relocate-modules.patch * Add ${datadir}/gettext/its to FILES_${PN}-dev: this could be done in gettext.bbclass but so far glib is the first and only ITS rule installer Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>