- 26 Jun, 2018 1 commit
-
-
Ting-Wei Lan authored
We use 'freebsd-11' instead of 'freebsd' as tags here because newer FreeBSD versions can include API changes which are worth testing.
-
- 25 Jun, 2018 9 commits
-
-
Emmanuele Bassi authored
Use Unicode typography in new translatable strings See merge request GNOME/glib!137
-
-
Philip Withnall authored
gmain: Clarify documentation for g_source_get_id() See merge request GNOME/glib!128
-
Philip Withnall authored
Add unit tests for glib-mkenums and resolve #1360 Closes #1360 See merge request GNOME/glib!136
-
Philip Withnall authored
It’s good to know *which* GMainContext is used to determine the ID, and the preconditions for calling this method. Using wording suggested by Emmanuele Bassi <ebassi@gmail.com>. Signed-off-by:
Philip Withnall <withnall@endlessm.com>
-
Philip Withnall authored
This adds a test to verify the change from issue #1360. Signed-off-by:
Philip Withnall <withnall@endlessm.com> GNOME/glib#1360
-
Philip Withnall authored
This allows running glib-mkenums with different C headers and checking its output. Signed-off-by:
Philip Withnall <withnall@endlessm.com> GNOME/glib#1360
-
Peter Kjellerstedt authored
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> GNOME/glib#1360
-
Philip Withnall authored
GSettings: per-desktop overrides Closes #1013 See merge request GNOME/glib!105
-
- 23 Jun, 2018 2 commits
-
-
Emmanuele Bassi authored
gspawn: Declare environ See merge request GNOME/glib!134
-
Ting-Wei Lan authored
Function do_posix_spawn uses environ, but gspawn.c doesn't declare it. Since there is no system header declaring this global variable, this causes compilation error on FreeBSD. Code added in this commit is copied from genviron.c.
-
- 22 Jun, 2018 10 commits
-
-
Alberts Muktupāvels authored
-
Philip Withnall authored
glib: Win32 does not accept "wb+" mode for fopen(). See merge request GNOME/glib!119
-
Philip Withnall authored
Few updates to the CI See merge request GNOME/glib!133
-
Xavier Claessens authored
Also there is no need to run docker as root, the user just needs to be in the "docker" group.
-
Xavier Claessens authored
Job names in gitlab pipeline view gets truncated to "fedora-meson-..." for all jobs which is not really useful. All our CIs are using Meson, and the host distro is not relevant when doing cross builds.
-
Xavier Claessens authored
We should be testing latest NDK release but keep using API level 21 to ensure GLib does not start using newer APIs. We could also later add a runner for latest API level 28 which includes iconv API in Android's libc so we don't need GNU libiconv anymore.
-
Xavier Claessens authored
Also move it after running setup-android-ndk.sh so docker can keep that stage in cache and won't run it again when changing meson version.
-
Jehan authored
This is especially to check for Win32 spotty support of "+" modes, such as "wb+" which has to be replaced by "w+b". See merge request !119.
-
Philip Withnall authored
gvariant-text: fix bytestring example See merge request GNOME/glib!132
-
Will Thompson authored
ord('a') == 97 == 0x61 != 0x97. >>> GLib.Variant.parse(None, "[byte 0x97, 0x98, 0x99, 0]", None, None) GLib.Variant('ay', b'\227\230\231') >>> GLib.Variant.parse(None, "[byte 0x61, 0x62, 0x63, 0]", None, None) GLib.Variant('ay', b'abc')
-
- 21 Jun, 2018 17 commits
-
-
Philip Withnall authored
This reverts commit fe72b877. It still fails on GNOME Continuous: http://build.gnome.org/continuous/buildmaster/builds/2018/06/21/44/build/. See GNOME/glib!129 for discussion.
-
Philip Withnall authored
build: Look for copied Objective-C files in builddir again See merge request GNOME/glib!129
-
Philip Chimento authored
This reverts commit 03c324c6 and fixes the original problem with e004d5f3 that caused the revert. We use $(builddir) instead of $(abs_builddir) so that Automake's dependency generation works correctly. See !127.
-
Philip Withnall authored
Use posix_spawn for optimized process launching See merge request GNOME/glib!95
-
Daniel Drake authored
sane_open() is used for stdout and stderr, but regular open() was being used for stdin. Spotted by Philip Withnall.
-
Daniel Drake authored
G_SPAWN_LEAVE_DESCRIPTORS_OPEN must be set to enable the optimized posix_spawn codepath, so this flag is likely to see more usage now. Document that FD_CLOEXEC can be used to cause file descriptors to be automatically closed while this flag is used.
-
Daniel Drake authored
Add an app-launching function which allows standard file descriptors to be passed to the child process. This will be used by gnome-shell to pass systemd journal descriptors as stdout/stderr. gnome-shell's child_setup function can then be eliminated, which will enable use of the posix_spawn optimized gspawn codepath for desktop app launching.
-
Daniel Drake authored
In order to use the new posix_spawn gspawn codepath, for more robust app launching when available memory is low, we need to meet some conditions. child_setup needs to be NULL for this optimization to work, so drop the internal child_setup that is used here. Replace it with a lightweight wrapper binary (gio-launch-desktop) that sets GIO_LAUNCHED_DESKTOP_FILE_PID before executing the app. Adjust PATH for gio tests so that it can execute the new binary from the build directory.
-
Daniel Drake authored
When the amount of free memory on the system is somewhat low, gnome-shell will sometimes fail to launch apps, reporting the error: fork(): Cannot allocate memory fork() is failing here because while cloning the process virtual address space, Linux worries that the thread being forked may end up COWing the entire address space of the parent process (gnome-shell, which is memory-hungry), and there is not enough free memory to permit that to happen. In this case we are simply calling fork() in order to quickly call exec(), which will throw away the entirity of the duplicated VM, so we should look for ways to avoid the overcommit check. The well known solution to this is to use clone(CLONE_VM) or vfork(), which completely avoids creating a new memory address space for the child. However, that comes with a bunch of caveats and complications: https://gist.github.com/nicowilliams/a8a07b0fc75df05f684c23c18d7db234 https://ewontfix.com/7/ In 2016, glibc's posix_spawn() was rewritten to use this approach while also resolving the concerns. https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9ff72da471a509a8c19791efe469f47fa6977410 I experimented with a similar approach in glib, but it was not practical because glibc has several items of important internal knowledge (such as knowing which signals should be given special treatment because they are NPTL implementation details) that are not cleanly exposed elsewhere. Instead, this patch adapts the gspawn code to use posix_spawn() where possible, which will reap the benefits of that implementation. The posix_spawn API is more limited than the gspawn API though, partly due to natural limitations of using CLONE_VM, so the posix_spawn path is added as a separate codepath which is only executed when the conditions are right. Callers such as gnome-shell will have to be modified to meet these conditions, such as not having a child_setup function. In addition to allowing for the gnome-shell "Cannot allocate memory" failure to be avoided, this should result in a general speedup in this area, because fork()'s behaviour of cloning the entire VM space has a cost which is now avoided. posix_spawn() has also recently been optimized on OpenSolaris as the most performant way to spawn a child process.
-
Daniel Drake authored
Add a new process spawning function variant which allows the caller to pass specific file descriptors for stdin, stdout and stderr. It is otherwise identical to g_spawn_async_with_pipes. Allow the same fd to be passed in multiple parameters. To make this workable, the child process logic that closes the fd after the first time it has been dup2'ed needed tweaking; we now just set those fds to be closed upon exec using the CLOEXEC flag. Add a test for this case. This will be used by gnome-shell to avoid performing equivalent dup2 actions in a child_setup function. Dropping use of child_setup will enable use of an upcoming optimized process spawning codepath.
-
Philip Withnall authored
Add support for TCRYPT volumes to GMountOperation See merge request GNOME/glib!120
-
segfault3 authored
Add G_ASK_PASSWORD_TCRYPT flag to GAskPasswordFlags and add the following properties to GMountOperation: - hidden_volume [1] - system_volume [2] - pim [3] [1] https://www.veracrypt.fr/en/Hidden%20Volume.html [2] https://www.veracrypt.fr/en/System%20Encryption.html [3] https://www.veracrypt.fr/en/Personal%20Iterations%20Multiplier%20(PIM).html
-
Jehan authored
Nevertheless it accepts "w+b". When checking the Win32 documentation of fopen()/_wfopen(), it clearly states: > In addition to the earlier values, the following characters can be > appended to mode to specify the translation mode for newline > characters. This implementation expects 'b' or 't' to be appended, and therefore "wb+" ends up with an error, whereas the alias "w+b" works perfectly while it is exactly the same thing. So let's just have glib "translate" the mode when it can to have it working transparently the same way on every platform.
-
Philip Withnall authored
This reverts commit e004d5f3. It broke the GNOME Continuous build, which uses autotools. This wasn’t caught by CI because we don’t do an autotools CI build. http://build.gnome.org/continuous/buildmaster/builds/2018/06/21/19/build/ Discussion in GNOME/glib!127.
-
Philip Withnall authored
Resolve "g_assert_cmpfloat trips -Wdouble-promotion on Clang" Closes #1377 See merge request GNOME/glib!127
-
Philip Chimento authored
Using g_assert_cmpfloat() with a float or double causes warnings on the newest Clang version, because the macro internally promotes all values to a long double, which Clang warns about. Casting explicitly removes the warning. Closes: #1377
-
Philip Chimento authored
Without this, the build fails in the OS_COCOA case due to not finding gnextstepsettingsbackend.c in $(srcdir).
-
- 20 Jun, 2018 1 commit
-
-
Xavier Claessens authored
gobject: Add prefixes to variables in G_VALUE_COLLECT*() macros Closes #258 See merge request GNOME/glib!126
-