31442 Commits

Author SHA1 Message Date
Marco Trevisan (Treviño)
5b0ce18dcd gobject: Add single function to check G_ENABLE_DIAGNOSTIC
It was duplicated, and racing too
2025-03-11 01:07:20 +01:00
Marco Trevisan (Treviño)
fba031c41c gobject: Be consistent in using atomic logic to handle the GParamSpecPool
We init it atomically but then we don't really use it in such way and it
may lead to races at read/write times
2025-03-11 01:07:17 +01:00
Philip Withnall
55a7660f18 Merge branch '3634-git-doc-format' into 'main'
girparser: Ignore new doc:format element in GIR files

Closes #3634

See merge request GNOME/glib!4550
2025-03-10 17:02:42 +00:00
Philip Withnall
aee0664e6f
girparser: Ignore new doc:format element in GIR files
As of gobject-introspection 1.83.2, a new `<doc:format name="…"/>`
element is supported (as a child of `<repository>`) in GIR files.

For the moment, this information isn’t needed in libgirepository — but
the GIR parser does have to know about the element in order to not throw
an error claiming it’s invalid.

This is a slightly tweaked version of the code added to
gobject-introspection.git in commit
9544cd6c962fab2c3203898779948309833e2439 by Corentin Noël
<corentin.noel@collabora.com>, reformatted slightly to fit in with
GLib’s style guidelines.

This is backwards compatible and does not require a new
gobject-introspection version.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3634
2025-03-10 15:21:15 +00:00
Philip Withnall
09f672e60b Merge branch 'installed-tests-fix' into 'main'
tests: Don't install runner scripts without installed_tests

See merge request GNOME/glib!4544
2025-03-10 12:39:29 +00:00
Marco Trevisan
dc1b097f2d Merge branch '3630-netlink-linux' into 'main'
build: Check for <netlink/netlink_route.h> for GNetworkMonitorNetlink

Closes #3630

See merge request GNOME/glib!4549
2025-03-10 12:24:22 +00:00
Philip Withnall
31546be3f8
build: Check for <netlink/netlink_route.h> for GNetworkMonitorNetlink
Apparently it’s possible for `netlink/netlink.h` to be available on
Linux, when we expected it to only be available on FreeBSD, but for
`netlink/netlink_route.h` to not exist. So add a check for the latter.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3630
2025-03-10 12:01:52 +00:00
Philip Withnall
a1bc946964 Merge branch 'update-fr-po' into 'main'
Update French translation

See merge request GNOME/glib!4545
2025-03-10 11:22:42 +00:00
Philip Withnall
87f9d90587 Merge branch 'catalan' into 'main'
Update Catalan translation

See merge request GNOME/glib!4547
2025-03-10 11:07:23 +00:00
Jordi Mas
532ef55df7 Update Catalan translation 2025-03-10 11:07:20 +00:00
Philip Withnall
f756c91a9e Merge branch 'update-tr' into 'main'
Update Turkish translation

See merge request GNOME/glib!4548
2025-03-10 11:06:53 +00:00
Sabri Ünal
9f117d4cfe Update Turkish translation
Translation is reviewed on https://l10n.gnome.org/vertimus/glib/main/po/tr/
2025-03-10 00:43:22 +03:00
Vincent Chatelain
97a861d890 Update French translation 2025-03-08 15:03:32 +00:00
Jan Alexander Steffens (heftig)
e661684c13
tests: Don't install runner scripts without installed_tests
Fixes: 9f18bb625811f649e5363d65dc6b4390f92d37b7
2025-03-08 01:55:17 +01:00
Philip Withnall
05da47c2d0
2.84.0
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2.84.0
2025-03-06 13:09:13 +00:00
Philip Withnall
b312d0c30d Merge branch 'urbalazs-main-patch-88322' into 'main'
Update Hungarian translation

See merge request GNOME/glib!4543
2025-03-06 02:37:44 +00:00
Balázs Úr
604ce5afd4 Update Hungarian translation 2025-03-06 01:07:00 +00:00
Philip Withnall
30ed00b8e5 Merge branch 'test-fixes' into 'main'
tests: Minor fixes to reference and stream-rw_all tests

See merge request GNOME/glib!4540
2025-03-06 00:13:41 +00:00
Michael Catanzaro
8622f4511c Merge branch 'debug-controller-docs-fix' into 'main'
gdebugcontrollerdbus: Fix a minor typo in a code example in the docs

See merge request GNOME/glib!4542
2025-03-04 19:16:49 +00:00
Philip Withnall
4f2877c502
gdebugcontrollerdbus: Fix a minor typo in a code example in the docs
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-03-04 16:29:23 +00:00
Philip Withnall
429661491c Merge branch 'translation-ko-202503' into 'main'
Update Korean translation

See merge request GNOME/glib!4539
2025-03-04 14:22:51 +00:00
Philip Withnall
3920e0f172
tests: Fix an incorrect array length in stream-rw_all test
The array was declared one byte too short to contain the trailing nul
byte for the string literal. Spotted by gcc 15.

Fix it by allowing the compiler to work out the array length.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-03-04 14:20:48 +00:00
Philip Withnall
4d566e47d7
tests: Skip a hard-to-reproduce race in reference tests under valgrind
Fixes test timeouts like this one:
https://gitlab.gnome.org/GNOME/glib/-/jobs/4827270

The race will continue to be reproduced when running the tests not under
valgrind.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-03-04 12:43:44 +00:00
Changwoo Ryu
661b45923c Update Korean translation 2025-03-04 21:24:28 +09:00
Philip Withnall
0e10a629a5 Merge branch '3590-sl-translation' into 'main'
Update Slovenian translation

Closes #3590

See merge request GNOME/glib!4538
2025-03-03 12:49:07 +00:00
Martin
da893484f6 Update Slovenian translation
Submitted at
https://gitlab.gnome.org/GNOME/glib/-/issues/3590#note_2366863,
committed by Philip Withnall.
2025-03-03 12:00:59 +00:00
Philip Withnall
84f555a3aa
2.83.5
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2.83.5
2025-02-28 14:02:50 +00:00
Philip Withnall
49b3271e6b Merge branch 'main' into 'main'
Update Galician translations

See merge request GNOME/glib!4535
2025-02-28 13:50:31 +00:00
Philip Withnall
0b62f3dd82 Merge branch 'wip/smcv/subprojects' into 'main'
Improve test behaviour when using Meson subprojects

Closes #3625 and #3626

See merge request GNOME/glib!4534
2025-02-28 12:46:31 +00:00
Fran Diéguez
ab3ed81415 Update Galician translations 2025-02-28 12:26:19 +00:00
Simon McVittie
66bca5f78b build: If pcre2 is a subproject, disable its unit tests by default
Debugging pcre2's test suite is out-of-scope for GLib, or for any larger
project that embeds GLib as a subproject.

Resolves: https://gitlab.gnome.org/GNOME/glib/-/issues/3626
Signed-off-by: Simon McVittie <smcv@collabora.com>
2025-02-28 12:17:29 +00:00
Simon McVittie
12171f6fe7 tests: Don't check for missing install_tag if GLib is a subproject
The test script checks the entire Meson build, not just GLib, so it will
fail if GLib is a fallback subproject within some larger project that
does not use `install_tag` as systematically as GLib does.

In particular, if the larger project has a very conservative minimum
Meson version (like for example dbus), it might not be possible to
add `install_tag` to it.

Resolves: https://gitlab.gnome.org/GNOME/glib/-/issues/3625
Signed-off-by: Simon McVittie <smcv@collabora.com>
2025-02-28 11:52:09 +00:00
Philip Withnall
69462f4921 Merge branch 'update-sv-translation' into 'main'
Update Swedish translation

See merge request GNOME/glib!4531
2025-02-27 23:07:38 +00:00
Anders Jonsson
af83e3a6ea Update Swedish translation 2025-02-27 22:26:01 +01:00
Philip Withnall
db26eb22fd Merge branch 'wip/refi64/fix-marshaller-args' into 'main'
gdbus-codegen: Fix callback GUnixFDList parameter order

See merge request GNOME/glib!4524
2025-02-27 14:21:43 +00:00
Philip Withnall
4303aadb59 Merge branch 'gapplication-examples' into 'main'
doc: remove unnecessary and confusing code from examples

Closes #3615

See merge request GNOME/glib!4528
2025-02-27 14:10:37 +00:00
Philip Withnall
3662159809 Merge branch '3272-disable-assert-debugging' into 'main'
tests: Only change the behaviour of getpwuid() inside each test function

Closes #3272

See merge request GNOME/glib!4519
2025-02-27 14:08:22 +00:00
Philip Withnall
ef2234540b Merge branch 'th/gobj-performance-2' into 'main'
[th/gobj-performance-2] more improvements to GObject's `performance.c` and add test "property-set-signaled"

See merge request GNOME/glib!4526
2025-02-27 10:06:34 +00:00
Philip Withnall
84665e7a76 Merge branch 'update_pt.po' into 'main'
Update Portuguese translation

See merge request GNOME/glib!4529
2025-02-27 10:05:52 +00:00
Thomas Haller
b93108f07e gobject/performance: decrease warmup time and cleanups
Some tweakings of the time spend during warm up. That mostly matters if
you set very short "--seconds", which can make sense for quickly
checking something. Then the warmup should not take more thatn a certain
percentage of the requested runs.

When we have a constant factor, we still want not to run for more than
10% of the overall test time ... except, we still want to run at least
ESTIMATE_ROUND_TIME_N_RUNS (because we skip the estimation step below).

Also, adjust WARM_UP_ALWAYS_SEC to be only 20% of the test time, for
short test runs.

Also, don't print the messages about "Estimating round time" with a
fixed "--factor".
2025-02-27 07:38:17 +01:00
Thomas Haller
fa66978cd5 gobject/performance: support sub-seconds test lengths on the command line
One test round aims to run for 8msec (TARGET_ROUND_TIME).

As the "--seconds" parameter previously took whole integer numbers, that
meant that we would run at least 125 rounds.

For a quick run, we should also support even faster runs, e.g. to select
only 0.5 seconds.
2025-02-27 07:35:21 +01:00
Thomas Haller
a88a58a23a gobject/performance: only print test message in verbose mode
Historically, there was a verbose mode and a non-verbose mode.
In non-verbose mode (the default), we would still print two lines:

  Running test property-set
  Property set per second: 39329344

Later, this was changed to include the test name in the second line, so
we would print:

  Running test property-set
  property-set: Property set per second: 39329344

But this first line is really just noise, making parsing and reading the
results harder. Hence a "--quiet" mode was added, that only printed one
line per test while keeping the previous default behavior. And all was
good.

Except, unless you want verbose mode, this "Running test" line is still
not very useful and mainly clutters the output.

Supporess it now also in normal mode. It is now only printed in verbose
mode.

This also makes the "--quiet" option do nothing. The option is still
there, maybe we find a future use and we should not break the command
line API by dropping an argument.
2025-02-27 07:33:57 +01:00
Thomas Haller
f0d8eaf83a gobject/performance: add "property-set-signaled" test
g_object_set() optimizes the case where there are no signals connected.
Add a test that sets the property with signals. Obviously, this one is
much slower, since we will freeze and thaw the notifications.
2025-02-27 07:32:46 +01:00
Thomas Haller
6610be0ef9 gobject/performance: also print stddev of runs
It seems useful to me to get an idea of the variance of the timing
measurements. Calculate and print the sample standard deviation of the
timings.
2025-02-27 07:32:46 +01:00
Thomas Haller
1527e1a448 gobject/performance: drop wrong additional warm up during test run
For the test, we actually care to find the fastest test run (and take
"min_elapsed"). That is useful, because that is the run where we
possibly have the least interference from external factors, it was the
run where the CPU solved the problem as fast as it could.

As such, we should not reject the first 5% as additional warm up. If the
first 5% are slower (and part of "warmup"), then they are anyway not
considered. If there is a the fastest run in the first 5 percent, then
we want to take that.

Also note, that the calculation of "avg_elapsed" was wrong, since it
divided by the full "num_rounds" while only summing 95% of the runs.
This is fixed too by now considering all runs.

Fixes: 282d536fd229 ('tests/performance: ensure to always warm up for 2 seconds')
2025-02-27 07:31:06 +01:00
Hugo Carvalho
e96ca5e021 Update Portuguese translation 2025-02-27 01:27:37 +00:00
Ryan Gonzalez
04ecfa9a30 gdbus-codegen: Fix callback GUnixFDList parameter order
GUnixFDList actually comes *after* the GDBusMethodInvocation, but this
was mistakenly putting it first.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2025-02-26 17:06:46 -06:00
Reuben Thomas
e99dbb943b doc: remove unnecessary and confusing code from examples
Three of the four GApplicationCommandLine examples contained this line:

  g_application_set_inactivity_timeout (app, 10000);

It is not explained (which could be confusing for readers trying to
understand the examplese), or necessary. Worse, it causes two of the
examples to pause for ten seconds if they are invoked with no command-line
arguments, which makes them seem broken (and would presumably be reported
as a bug in any real application).

So, remove these calls.

Fixes #3615
2025-02-26 21:48:30 +00:00
Philip Withnall
53b0ba327b Merge branch 'update-lt-main' into 'main'
Updated Lithuanian translation

See merge request GNOME/glib!4527
2025-02-26 21:36:26 +00:00
Aurimas Černius
87e5be59a3 Updated Lithuanian translation 2025-02-26 23:14:56 +02:00