Seppi Wilhelmi
fc3d3a5499
Make GQuark register intentional leaks
2023-10-31 16:53:40 +01:00
Philip Withnall
6d45bdb1bf
Merge branch 'lsan-dynamic-loading' into 'main'
...
glib-private: Check for LSAN support at runtime when controlling it
See merge request GNOME/glib!3672
2023-10-29 20:40:11 +00:00
Yuri Chornoivan
f3ae26d68d
Update Ukrainian translation
...
(cherry picked from commit ea71087141
)
2023-10-29 12:09:17 +00:00
Michael Catanzaro
cd1e11d1b1
Merge branch 'generated-txt-as-dep' into 'main'
...
gio/tests: Add test generated txt as the resources test dependency
See merge request GNOME/glib!3671
2023-10-27 17:07:42 +00:00
Marco Trevisan (Treviño)
0b9900e4e7
gio/tests: Add test generated txt as the resources test dependency
...
This is required by the resources used in some tests, however we did not
depend on it so we had some random build failures:
https://gitlab.gnome.org/3v1n0/glib/-/jobs/3253787
2023-10-27 18:41:51 +02:00
Marco Trevisan (Treviño)
fb58d55187
glib-private: Check for LSAN support at runtime when controlling it
...
GLib ignores various leaks that we don't consider as such (like the
default gio modules) via the LSAN public interface, however those cases
are always ignored when using a non-ASAN compiled glib is used by an
ASAN-compiled binary.
This makes all the GLib-related programs to fail because of false
positive leaks.
To avoid this, use the gcc extension for weak linking so that we can
control ASAN and LSAN only if the symbols they provide are actually
available at runtime.
2023-10-27 18:31:53 +02:00
Marco Trevisan (Treviño)
d354b2f55e
gmacros: Add fallback definition for weak attribute
2023-10-27 17:19:08 +02:00
Zander Brown
e2433308c4
codegen: install codegen, not just the wrapper
...
Turns out, wasn't jhbuild this time
Fix: 4ce58df854
2023-10-27 04:21:58 +01:00
Emmanuele Bassi
a1664c3fa3
Merge branch 'wip/abono/ptrace-o-exitkill-check' into 'main'
...
meson: Improve PTRACE_O_EXITKILL presence check
Closes #3156
See merge request GNOME/glib!3669
2023-10-26 10:23:04 +00:00
Alessandro Bono
168de73a73
meson: Improve PTRACE_O_EXITKILL presence check
...
The PTRACE_O_EXITKILL symbol in sys/ptrace.h is an enum member, not
a macro. The #ifdef check added to the GSubprocess test-case in
272ec5dbca
will not detect it.
Use cc.has_header_symbol() to properly detect it. According to the
documentation: "Symbols here include function, variable, #define,
type definition, etc.".
Fixes: 272ec5dbca
Closes: https://gitlab.gnome.org/GNOME/glib/-/issues/3156
2023-10-26 10:54:34 +02:00
Philip Withnall
75800b6b09
girepository: Ensure config.h is included first in gdump.c
...
Follow on from the previous commit.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 19:33:29 +01:00
Philip Withnall
371ddd62e5
girepository: Move an include to avoid _WIN32_WINNT being redefined
...
This fixes a warning on msys2-mingw32:
https://gitlab.gnome.org/GNOME/glib/-/jobs/3227892 .
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 19:16:58 +01:00
Philip Withnall
512e4b5440
girepository: Use G_OPTION_ENTRY_NULL to avoid compiler warnings
...
About uninitialised fields.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 19:03:07 +01:00
Philip Withnall
6b664a4be8
gifieldinfo: Add missing break statement
...
This quells a compiler warning.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 18:50:31 +01:00
Philip Withnall
dda97fea98
girepository: Ensure gi-visibility.h is built before girepository-internals
...
It gets transitively included.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 18:41:05 +01:00
Philip Withnall
216066d90c
girparser: Add a missing G_GNUC_FALLTHROUGH
...
This fixes a compiler warning.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 18:38:30 +01:00
Philip Withnall
9103eae11f
build: Add missing builddir include to libgirepository-internals
...
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 18:35:05 +01:00
Philip Withnall
f0e11e82d3
girepository: Various fixes to symbol visibility and compilation defines
...
To make the setup in libgirepository match that in libgio.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 18:30:38 +01:00
Philip Withnall
5f012e9f12
girepository: Add missing includes of corresponding headers
...
Make sure that each C file in `girepository/` includes its corresponding
header file (if such a file exists).
This ensures that the first declaration the compiler sees for each
function contains the symbol visibility macros. This fixes symbol export
(`dllexport`) on Windows platforms.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 18:11:38 +01:00
Philip Withnall
3c89fe9d03
build: Add missing builddir include to libgirepository-gthash
...
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 18:03:45 +01:00
Philip Withnall
a6df2ec312
girepository: Ensure gi-visibility.h is built before gthash.c
...
`gthash.c` transitively includes it.
Most of this commit is just moving variables around so `gi_visibility_h`
is defined early enough in the file. The moved code has not been changed.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 18:02:52 +01:00
Philip Withnall
a27a75b219
girepository: Use subdir paths in #includes
...
The pkg-config file sets the include directory to the level above
`girepository/`, just like with GIO, GObject and GModule.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 17:45:42 +01:00
Philip Withnall
4dcd044b02
build: Add missing builddir include to libgirepository
...
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 17:28:37 +01:00
Philip Withnall
82a3bf5bc2
girepository: Fix include paths in girepository.h
...
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 17:12:29 +01:00
Philip Withnall
e30f8ac0a1
girepository: Add remaining license/copyright SPDX headers
...
These are all custom-written, including a load of research in `git log`
to find the copyright holders for `girepository/meson.build` and
`girepository/gi-dump-types.c`.
With this, `reuse lint` raises no complaints about the `girepository/`
directory.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 17:12:25 +01:00
Philip Withnall
844544f72c
girepository: Add SPDX license header to all obvious files
...
Add the SPDX license runes to all the files which have an obvious
copyright header already. This is a mechanical edit.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3155
2023-10-25 17:10:10 +01:00
Philip Withnall
58cce38f37
Merge branch 'migrate-to-gi-docgen8' into 'main'
...
Switch to using gi-docgen for docs (batch 8)
See merge request GNOME/glib!3667
2023-10-25 14:28:43 +00:00
Philip Withnall
14b02d2631
docs: Move the GUnixFDList SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
2f662b6063
docs: Move the GTlsPassword SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
c015ecf0b7
docs: Move the GTlsInteraction SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
850878dfaa
docs: Move the GTlsFileDatabase SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
74fbc75920
docs: Move the GThreadedSocketService SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
325e3a6f5b
docs: Move the GThemedIcon SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
5817f52222
docs: Move the GTestDBus SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
ed875eb4c9
docs: Move the GTcpWrapperConnection SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
97886412e8
docs: Move the GTcpConnection SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
8d45e4c66b
docs: Move the GSubprocessLauncher SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
1b94e0351f
docs: Move the GSrvTarget SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
481c856e04
docs: Move the GSimpleActionGroup SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
838388cc68
docs: Move the GSimpleAction SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
b0b5ed8c34
docs: Move the GResource SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
bbb5479d5a
docs: Move the GResolver SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
dfab5a3d29
docs: Move the GProxyResolver SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
7b32b5a9f0
docs: Move the GProxyAddressEnumerator SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
34fc02d5ac
docs: Move the GProxy SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
06c2e33707
docs: Move the GNetworkService SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
822521215b
docs: Move the GFilter*Stream SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
607eb851ba
docs: Move the GFile*Stream SECTIONs
...
Move them to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
6c930587ad
docs: Move the GDesktopAppInfo SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00
Philip Withnall
47e58fb4c6
docs: Move the GDBusObjectProxy SECTION
...
Move it to the struct docs.
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
Helps: #3037
2023-10-25 15:10:16 +01:00