summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ci: Require some updated packages Fedora Docker imageBastien Nocera2020-02-042-6/+2
| | | | Rather than installing those updates manually.
* ci: Expand podman supportBastien Nocera2020-02-041-14/+14
| | | | | | | | | | If podman is used, as is usually the case on a Fedora Workstation installation, make sure not to use "sudo" as that's not needed. Also ask podman's backend (buildah) to create Docker compatible images through an environment variable rather than a command-line argument. See https://gitlab.gnome.org/GNOME/glib/merge_requests/1255
* Updated Spanish translationDaniel Mustieles2020-02-041-75/+83
|
* 2.63.52.63.5Philip Withnall2020-02-032-1/+60
| | | | Signed-off-by: Philip Withnall <withnall@endlessm.com>
* Merge branch 'wip/oholy/gio-info-mount' into 'master'Philip Withnall2020-02-031-1/+52
|\ | | | | | | | | gio-tool-info: Print unix mount information where available See merge request GNOME/glib!1345
| * gio-tool-info: Print also root path if availableOndrej Holy2020-02-031-1/+12
| | | | | | | | | | "gio info" got support to print information about mount points, let's print also root path similarly as it is done by findmnt.
| * gio-tool-info: Print unix mount information where availableSimon McVittie2020-02-031-1/+41
| | | | | | | | | | | | | | | | | | "gio info" output doesn't contain any information about mount points, but that information can be useful when debugging issues in facilities that depend on knowing about mount points, such as the trash API. Signed-off-by: Simon McVittie <smcv@collabora.com> Co-authored-by: Ondrej Holy <oholy@redhat.com>
* | Merge branch '715-setenv-warnings' into 'master'Philip Withnall2020-02-033-0/+27
|\ \ | |/ |/| | | | | genviron: Message if g_setenv()/g_unsetenv() are used after threads spawned See merge request GNOME/glib!1337
| * genviron: Message if g_setenv()/g_unsetenv() are used after threads spawnedPhilip Withnall2020-01-211-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | g_setenv() and g_unsetenv() can never be thread-safe, so emit a message if they are used after any threads have been spawned. This can’t catch interactions between setenv() and g_thread_new(), or between g_setenv() and pthread_create(), but it’ll catch most misbehaviour in GLib-centric code. Currently, the message is a `g_debug()` call. Eventually, I’d like to upgrade it to a `g_warning()`, but there are a number of GLib tests which call g_setenv() after threads have been created, and they need to be fixed first. Emitting a `g_debug()` message gives people an opportunity to start fixing their code. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #715
| * gthread: Count how many threads have been startedPhilip Withnall2020-01-212-0/+12
| | | | | | | | | | | | | | | | | | This will be used in a following commit to warn if setenv() is used after another thread has been created. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #715
* | Merge branch 'wip/oholy/peek-path-fixes' into 'master'Philip Withnall2020-02-031-37/+5
|\ \ | | | | | | | | | | | | gfile: Do not return target-uri from g_file_peek_path() See merge request GNOME/glib!1346
| * | gfile: Fix g_file_peek_path() for remote locationsOndrej Holy2020-02-031-1/+4
| | | | | | | | | | | | | | | | | | g_file_peek_path() doesn't work for GVfs locations on the first attempt, because the compare-and-swap loop is broken before the return value is set.
| * | gfile: Do not return target-uri from g_file_peek_path()Ondrej Holy2020-02-031-36/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Documentation says that g_file_peek_path() returns exactly the same what g_file_get_path(), but this is not true. Apart from that the code segfaults for some uris (e.g. for "trash:///"), it returns target-uri for trash and recent schemes. This is unexpected and can lead to various issues among others because the target-uri paths are not automatically translated back to GDaemonFile as it is done with gvfsd-fuse paths. g_file_get_path() returns NULL for trash and recent schemes, because fuse paths are not provided for those schemes. So g_file_peek_path() should return NULL as well. It is up to the concrete application to use target-uri when appropriate. This change was made as a part of commit 4808a957, however, neither the commit message, neither the corresponding bug doesn't mention this crucial change and doesn't give any clear reasoning. So let's revert this.
* | Merge branch 'leak-supp' into 'master'Philip Withnall2020-02-031-1/+1
|\ \ | | | | | | | | | | | | glib.supp: update g-threaded-resolver-getaddrinfo-config See merge request GNOME/glib!1351
| * | glib.supp: update g-threaded-resolver-getaddrinfo-configGuillaume Desmottes2020-02-031-1/+1
| | | | | | | | | | | | | | | This leak is now detected as 'definite' in newer version of Fedora, see https://gitlab.freedesktop.org/gstreamer/gst-ci/merge_requests/226
* | | Merge branch 'dab_libmount_auto_detection' into 'master'Philip Withnall2020-02-032-5/+5
|\ \ \ | |/ / |/| | | | | | | | meson: libmount autodectection See merge request GNOME/glib!1344
| * | meson: libmount autodectectionstephane Cerveau2020-02-012-5/+5
| | | | | | | | | | | | | | | As it can be disabled, it should be automatic as the packahge might be unavailable for a given target.
* | | Updated Lithuanian translationAurimas Černius2020-02-021-402/+423
| | |
* | | Merge branch '1551-todo-ci' into 'master'Emmanuele Bassi2020-01-313-0/+113
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ci: Add checks for ‘TODO’ in merge requests Closes #1551 See merge request GNOME/glib!794
| * | | ci: Add checks for banned keywords in merge requestsPhilip Withnall2020-01-213-0/+113
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the same approach as we have for code style checks (the `style-check-diff` CI job), check the diff for any banned keywords like ‘TODO’, and also check the commit messages. The keyword ‘TODO’ is often used by developers to indicate a part of a commit which needs further work, and hence which shouldn’t yet be merged. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1551
* | | Merge branch 'benzea/mark-g-source-func' into 'master'Philip Withnall2020-01-311-1/+1
|\ \ \ | | | | | | | | | | | | | | | | gmain: Mark G_SOURCE_FUNC as available in 2.58 See merge request GNOME/glib!1322
| * | | gmain: Mark G_SOURCE_FUNC as available in 2.58Benjamin Berg2020-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This means that GLib will generate appropriate deprecation warnings if `GLIB_VERSION_MAX_ALLOWED` has been set to target a GLib version older than 2.58.
* | | | Merge branch 'locker' into 'master'Philip Withnall2020-01-311-0/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | doc: Clarify that _locker_new() does not actually allocate memory See merge request GNOME/glib!1349
| * | | | doc: Clarify that _locker_new() does not actually allocate memoryXavier Claessens2020-01-311-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | It is important to document the performance (non-)impact of such critical functions.
* | | | | Merge branch 'no-typedef-redef' into 'master'Philip Withnall2020-01-311-1/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove global declaration of GMemoryMonitor See merge request GNOME/glib!1307
| * | | | | Remove global declaration of GMemoryMonitorEmmanuele Bassi2020-01-311-1/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GMemoryMonitor interface uses G_DECLARE_INTERFACE, which provides a typedef for the interface dummy type. We declare the same type inside the global giotypes.h header, which leads to typedef redeclaration warnings on toolchains that do not support—intentionally or not—the C11 feature of typedef redefinition. While we do have a toolchain requirement for C11 typedef redefinitions listed on our wiki, we also suspended it temporarily to allow users of non-C11 compilers to work on newer versions of GLib; so, let's keep them working a while longer.
* | | | | Merge branch 'docs-hash-table-add' into 'master'Philip Withnall2020-01-311-1/+5
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | ghash: Clarify that g_hash_table_add() always consumes the key See merge request GNOME/glib!1348
| * | | | ghash: Clarify that g_hash_table_add() always consumes the keyPhilip Withnall2020-01-311-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even if the key already exists in the table, `g_hash_table_add()` will call the hash table’s key free func on the old key and will then replace the old key with the newly-passed-in key. So `key` is always `(transfer full)`. In particular, `key` should never need to be freed by the caller if `g_hash_table_add()` returns `FALSE`. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* | | | | Merge branch '1993-codegen-version-args' into 'master'Philip Withnall2020-01-318-81/+168
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename gdbus-codegen --glib-min-version argument to --glib-min-required and add --glib-max-allowed Closes #1993 See merge request GNOME/glib!1342
| * | | | | gdbus-codegen: Tidy up version comparisonsPhilip Withnall2020-01-312-23/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python tuple comparisons actually do what we want for comparing major and minor versions, so tidy things up by using that. This introduces no functional changes. Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | | | gdbus-codegen: Add --glib-max-allowed argumentPhilip Withnall2020-01-275-1/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This complements the `--glib-min-required` argument, just like the `GLIB_MIN_REQUIRED` and `GLIB_MAX_ALLOWED` preprocessor defines which control access to APIs in C. Currently, it doesn’t affect code generation at all. When we next change code generation, we will need to gate any new API usage on this argument. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1993
| * | | | | gdbus-codegen: Rename --glib-min-version to --glib-min-requiredPhilip Withnall2020-01-276-79/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it consistent with the `GLIB_MIN_REQUIRED` defines which are used for API stability/versioning in C code. It doesn’t otherwise change the behaviour of the `--glib-min-version` argument. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1993
* | | | | | Merge branch 'gtkdoc-check-fix' into 'master'Philip Withnall2020-01-3117-17/+278
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes to make gtkdoc-check pass on glib See merge request GNOME/glib!978
| * | | | | | doc: Fix undocumented G_SIZEOF_MEMBERXavier Claessens2020-01-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A body in the documentation comment is required.
| * | | | | | ci: Update Meson to 0.52.1 in fedora dockerXavier Claessens2020-01-293-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is required to be able to build the doc. The debian docker is still pinned to 0.49.2 which ensure we can build with both versions of meson. Meson 0.52.0 warns about adding -Wall flag manually, we can remove that because warning_level=1 (the default) option already implies it.
| * | | | | | doc: Add gtk-doc subproject fallbackXavier Claessens2020-01-292-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we require Meson 0.52 to build the doc, we can also pull gtk-doc as subproject when missing from the system. This requires to pull gtk-doc master because needed changes there haven't been release yet.
| * | | | | | doc: Requires Meson >=0.52.0 to build documentationXavier Claessens2020-01-291-0/+3
| | | | | | |
| * | | | | | doc: Run gtkdoc-check with unit testsXavier Claessens2020-01-294-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has the side effect of always rebuilding the doc at each build when gtk_doc option is enabled (not by default). Most importantly, this will enable doc check on our CI.
| * | | | | | doc: add missing indexesXavier Claessens2020-01-291-0/+8
| | | | | | |
| * | | | | | doc: Add back gdbus-object-manager-exampleXavier Claessens2020-01-295-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires Meson 0.52.0 for the return value of gnome.gtkdoc().
| * | | | | | Revert "docs: remove GDBusObjectManager example"Xavier Claessens2020-01-294-2/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 398c048c66e71ec52a1799ea6fbd4c3b1554ec5e. It got removed because it used to cause build issues, but now that we have a CI let's hope it won't be a problem any more.
* | | | | | | Merge branch 'wip/oholy/gfile-docs' into 'master'Philip Withnall2020-01-312-5/+26
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symlink-related fixes for `g_file_move()` Closes #986 See merge request GNOME/glib!900
| * | | | | | | docs: Add missing `gio move` optionsOndrej Holy2019-06-071-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `gio move` tool has plenty of options, which are listed by `gio help move`, however, the `man gio` page doesn't mention them. Let's add these missing options to the man page as well.
| * | | | | | | gfile: Do not follow symlinks when movingOndrej Holy2019-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is expected that `g_file_move()` moves symlink file itself, not its target. Unfortunately, copy and delete fallback passes `GFileCopyFlags` and don't explicitly use `G_FILE_COPY_NOFOLLOW_SYMLINKS`. This may cause that symlink target is copied and symlink itself is removed. Let's explicitly pass `G_FILE_COPY_NOFOLLOW_SYMLINKS` to the copy operation to prevent this unexpected behavior. https://gitlab.gnome.org/GNOME/glib/issues/986
| * | | | | | | gfile: Remove `G_FILE_COPY_NOFOLLOW_SYMLINKS` from `g_file_move()` docsOndrej Holy2019-06-071-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `G_FILE_COPY_NOFOLLOW_SYMLINKS` flag doesn't make sense for move operation, neither local implementation doesn't handle this flag in any way. Therefore this paragraph should be removed from the docs (it was probably copy&pasted from `g_file_copy()` docs by mistake). Closes: https://gitlab.gnome.org/GNOME/glib/issues/986
* | | | | | | | Merge branch 'mcatanzaro/pkcs11-deferral' into 'master'Philip Withnall2020-01-315-196/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "gtlscertificate: Add support for PKCS #11 backed certificates" See merge request GNOME/glib!1347
| * | | | | | | | Revert "gtlscertificate: Add support for PKCS #11 backed certificates"Michael Catanzaro2020-01-305-196/+4
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b6d8efbebcc0ad1e12bf16f47a173cadfcbf986d. This GLib API is good, but the implentation is not ready, so there's no reason to commit to the API in GLib 2.64. We can reland again when the implementation is ready. There are three problems: (a) The glib-networking implementation normally works, but the test has been broken for a long time. I'm not comfortable with adding a major new feature without a working test. This is glib-networking#104. (b) The WebKit implementation never landed. There is a working patch, but it hasn't been accepted upstream yet. This API isn't needed in GLib until WebKit is ready to start using it. https://bugs.webkit.org/show_bug.cgi?id=200805. (c) Similarly, even if the WebKit API was ready, that itself isn't useful until an application is ready to start using it, and the Epiphany level work never happened. Let's try again for GLib 2.66. Reverting this commit now just means we gain another six months before committing to the API forever. No reason to keep this in GLib 2.64 when nothing is using it yet.
* | | | | | | | Merge branch 'mcatanzaro/#2020' into 'master'Philip Withnall2020-01-311-3/+1
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix crash caused by g_network_monitor_base_add_network() Closes #2020 See merge request GNOME/glib!1343
| * | | | | | | Fix crash caused by g_network_monitor_base_add_network()Michael Catanzaro2020-01-271-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids a crash when starting Evolution, and fixes the network-monitor and network-monitor-race test cases on my developer workstation. (I assume the CI is not crashing due to lack of network access there.) Problem is that if a network already exists in the networks table, g_hash_table_add() "destroys" (unrefs) it before adding the new one (which we failed to ref before adding). This means we just accidentally lost a ref. In practice, the network gets unexpectedly destroyed here before returning. Fixes #2020
* | | | | | | | Update Japanese translationsicklylife2020-01-301-624/+433
| | | | | | | |