summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-01-25Merge "Snap for 11361523 from 344d1ffcd0f7a69d4c09318443904e3cb3cba873 to ↵emu-34-2-releaseAndroid Build Coastguard Worker
emu-34-2-release" into emu-34-2-release
2024-01-25Snap for 11361523 from 344d1ffcd0f7a69d4c09318443904e3cb3cba873 to ↵Android Build Coastguard Worker
emu-34-2-release Change-Id: I1c92c89155679f7b4d8a2ca5bfda89332fabc380
2024-01-16Merge "Explicitly suppress windows warnings" into emu-master-devemu-master-devemu-35-1-releaseemu-34-3-releaseemu-34-2-devTreehugger Robot
2024-01-16Explicitly suppress windows warningsErwin Jansen
This makes all the windows warning explicit, making sure the library can be built regardless of the initial compiler config. Bug: 288461870 Change-Id: Ide42d8c717881331388088b40861c3b2f22d2c01
2023-10-19Merge "Bazel build of GLIB" into emu-master-devnetsim-devemu-prebuiltsemu-34-devaosp-emu-34-devTreehugger Robot
2023-10-10Bazel build of GLIBErwin Jansen
Change-Id: Ic51b4a81ed0f49529be4cadb9bf1b183b2c67d49
2023-08-31Merge "Include architecture in library name" into emu-master-devTreehugger Robot
2023-08-31Include architecture in library nameErwin Jansen
We now include the architecture in glib shared library name. This makes sure we can ship multiple versions of the library side by side. This is needed to make sure a netsimd can pick up the x86 library if needed. Bug: 298454492 Change-Id: I79e01e307b1d7cbba398d2d6c0337308f6d5e5a6
2023-08-29Merge "Add cmake build script + configurations" into emu-master-devTreehugger Robot
2023-08-24Add cmake build script + configurationsErwin Jansen
This adds a cmake build script and configurations so we can build glib2 from source. This version of glib2 is missing some functionality that requires a whole slew of additional dependencies: - No guid support - No regex support - No gettext support Taking dependencies on these will result in linker failures. Bug: 297352758 Change-Id: Ib6f7b6a7ed2bc984a353ff9d7eaf1006f78df7e3
2023-08-24Merge "Merge remote-tracking branch 'aosp/upstream-main' into merge" into ↵Treehugger Robot
emu-master-dev
2023-08-23Merge remote-tracking branch 'aosp/upstream-main' into mergeErwin Jansen
This gets us ready to build glib from source, which we will need for the next version of qemu. Change-Id: I7d1d9f5abe78952634506ddb00852e2870a3b73f
2023-08-23Merge branch 'fix-tmpfile' into 'main'Michael Catanzaro
glib/gfileutils.c: use 64 bits for value in get_tmp_file() See merge request GNOME/glib!3547
2023-08-23glib/gfileutils.c: use 64 bits for value in get_tmp_file()Alexander Kanavin
On 32 bit systems 'long' value will overflow in 2038 and become negative. As it is used to index into letters array, and % operation preserves signs, data corruption will then occur. Signed-off-by: Alexander Kanavin <alex@linutronix.de>
2023-08-21Merge branch '3083-option-docs-list' into 'main'Michael Catanzaro
goption: Fix list formatting in documentation comment Closes #3083 See merge request GNOME/glib!3546
2023-08-21Merge branch 'rybalkin-gregex-jit-stack-overflow-fallback' into 'main'Philip Withnall
gregex: if JIT stack limit is reached, fall back to interpretive matching See merge request GNOME/glib!3545
2023-08-21gregex: if JIT stack limit is reached, fall back to interpretive matchingAleksei Rybalkin
Helps: #2824
2023-08-21goption: Fix list formatting in documentation commentPhilip Withnall
Not actually tested, but hopefully this will work. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk> Fixes: #3083
2023-08-21Merge branch 'th/use-localtime-r' into 'main'Philip Withnall
[th/use-localtime-r] use localtime_r() in g_log_writer_format_fields() See merge request GNOME/glib!3543
2023-08-21glib: avoid non-reentrant localtime() in g_log_writer_format_fields()Thomas Haller
2023-08-21gdate: add internal helper function _g_localtime() for localtime()/localtime_r()Thomas Haller
The point of to be able to call localtime()/localtime_r() from another place inside glib (without reimplementing the #ifdef). - also handles failures from localtime_r(). It is documented that it might fail, so detect the failure. - in case of failures of localtime(), still initialize the GDate. Previously, we may error out with a g_critical() assertion before. However, now that failures from localtime_r() are also caught, I think we should make an effort to initialize the GDate to something. It either way it not supposed to happen.
2023-08-19Update Kazakh translationBaurzhan Muftakhidinov
2023-08-17Merge branch 'th/gchildwatch-fail-message' into 'main'Philip Withnall
[th/gchildwatch-fail-message] gmain: improve g_warning() for failure in g_child_watch_dispatch() See merge request GNOME/glib!3542
2023-08-17gmain: improve g_warning() for failure in g_child_watch_dispatch()Thomas Haller
Print the PID, the errno and the pidfd in case of an unexpected failure in g_child_watch_dispatch(). This is always(?) caused by a bug in the user application. Also hint to g_child_watch_source_new() documentation for possible causes. Also use G_PID_FORMAT for printing GPid values.
2023-08-17Merge branch 'test-subprocess-docs' into 'main'Michael Catanzaro
gtestutils: Mention not ignoring SIGCHLD in g_test_trap_subprocess() docs See merge request GNOME/glib!3541
2023-08-17Merge branch 'wip/JCWasmx86/gresource-schema' into 'main'Philip Withnall
gio: Add gresource.dtd See merge request GNOME/glib!3540
2023-08-17gtestutils: Mention not ignoring SIGCHLD in g_test_trap_subprocess() docsPhilip Withnall
Prompted by #3071, this clarifies that `g_test_trap_subprocess()` uses `g_child_watch_source_new()` internally, so it will not work if any of the preconditions for using that API are not met. In particular, if `SIGCHLD` is ignored, things will break. This documentation is not meant to be an API guarantee which constrains the implementation of `g_test_trap_subprocess()` in future, just a tip to people currently using the API. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk> Helps: #3071
2023-08-17gio: Add dtdsdir pointing to the directory of gresource.xmlJCWasmx86
This allows third party projects to look up the location of installed DTDs without having to hard-code it.
2023-08-17gio: Add gresource.dtdJCWasmx86
This allows linting of .gresource.xml files e.g. in the editor.
2023-08-16Merge branch 'o-nonblock-more' into 'main'Michael Catanzaro
glib-unix: Accept O_CLOEXEC as well as FD_CLOEXEC in g_unix_open_pipe() See merge request GNOME/glib!3538
2023-08-16Merge branch 'wip/smcv/o-nonblock' into 'main'Philip Withnall
glib-unix: Clean up use of O_NONBLOCK See merge request GNOME/glib!3459
2023-08-16Merge branch 'meson_setup' into 'main'Philip Withnall
Use 'meson setup' to configure See merge request GNOME/glib!3535
2023-08-16glib: Pass O_CLOEXEC rather than FD_CLOEXEC to g_unix_open_pipe()Philip Withnall
See the previous commit. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-08-16glib-unix: Accept O_CLOEXEC as well as FD_CLOEXEC in g_unix_open_pipe()Philip Withnall
This is one step towards rectifying the mistake of using `FD_CLOEXEC` in the first place. Eventually we may deprecate support for `FD_CLOEXEC`, as the `O_*` flags better match the underlying `pipe()` API. See discussion on https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459#note_1779264 Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-08-16Merge branch 'mcatanzaro/l10n-time' into 'main'Philip Withnall
gsettingsschema: fix l10n=time attribute Closes #2575 See merge request GNOME/glib!2422
2023-08-16glib-unix: Don't fall back from O_NONBLOCK to O_NDELAYSimon McVittie
Since 5c65437d "glib-unix: Add O_NONBLOCK support to g_unix_open_pipe()" we have been using O_NONBLOCK unconditionally, so we might as well drop the fallback here as well. This commit should be reverted if someone reports a significant/supported platform that genuinely doesn't have O_NONBLOCK. Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-16glib-unix: Assert that O_NONBLOCK and FD_CLOEXEC are numerically distinctSimon McVittie
Since 5c65437d "glib-unix: Add O_NONBLOCK support to g_unix_open_pipe()" we have effectively been assuming that these two flags are distinguishable. If that's an assumption we want to make, we should make it a static assertion, so that GLib will fail to compile on platforms where it isn't true. Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-16ci: Use `meson compile` rather than bare `ninja`Emmanuele Bassi
This makes it more consistent with `meson setup` in the rest of the file.
2023-08-16meson: Use 'meson setup' to configureRené de Hesselle
This removes a deprecation warning when using 'meson' without 'setup'.
2023-08-16Merge branch 'preserve-doc-indent' into 'main'Philip Withnall
gdbus-codegen: preserve relative indentation in doc comments Closes #3032 See merge request GNOME/glib!3536
2023-08-15Merge branch 'rybalkin-gregex-jit-increase-stack-size' into 'main'Philip Withnall
gregex: set default max stack size for PCRE2 JIT compiler to 512KiB See merge request GNOME/glib!3530
2023-08-14gdbus-codegen: preserve relative indentation in doc commentsAndré
This commit also changes the generators for rst, xml and dockbook to preserve indentation. Closes #3032
2023-08-14Update Persian translationDanial Behzadi
2023-08-14gregex: set default max stack size for PCRE2 JIT compiler to 512KiBAleksei Rybalkin
Previous default used was 32KiB (the library default) which caused some complex patterns to fail, see #2824. The memory will not be allocated unless used.
2023-08-14gregex: remove redundant call to enable_jit_with_match_optionsAleksei Rybalkin
There is no point to enable jit in g_regex_new, since JIT will be only used when we do a first match, and at that point enable_jit_with_match_options will be called again already and will update the options set in g_regex_new. Instead just run it at first match for the first time, to the same end result.
2023-08-14Merge branch 'tree-asserts' into 'main'Emmanuele Bassi
tests: Use g_assert_*() rather than g_assert() in tree tests See merge request GNOME/glib!3527
2023-08-14Merge branch 'schedules-pages-again' into 'main'Philip Withnall
ci: Further fix to pages CI job See merge request GNOME/glib!3534
2023-08-14ci: Further fix to pages CI jobPhilip Withnall
Follow-up to e234a4496ef6e2a7a2896fc6b9ddf93044a420ab to remove the old `only: main`, which was overriding the changes from that commit. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
2023-08-14Merge branch 'ci-pages-schedules' into 'main'Philip Withnall
ci: Only run pages CI job on scheduled job runs See merge request GNOME/glib!3533
2023-08-14Merge branch 'th/use-getservbyname-r' into 'main'Philip Withnall
gnetworkaddress: use reentrant getservbyname_r() if available See merge request GNOME/glib!3526