1. 10 Dec, 2018 2 commits
  2. 25 Nov, 2018 1 commit
  3. 22 Oct, 2018 1 commit
  4. 28 Sep, 2018 1 commit
  5. 12 Sep, 2018 1 commit
    • LRN's avatar
      Enable GIO tests on Windows · ad3694b8
      LRN authored
      1) Remove the non-Windows-only condition for subdir('tests').
      2) Add libiphlpapi, libws2_32 and libsecur32 deps, needed for W32 tests.
      3) Remove the -no-undefined argument (gcc doesn't understand it,
         it *does* understand -Wl,-no-undefined; either way, the test
         compiles without this argument just fine; maybe meson adds it
         by itself - you can hardly build shared modules without it).
      4) Add or fix a number of includes
      5) Disable gdbus-objectmanager tests when building with MSVC
         (right now these tests don't work on Windows anyway, so the fact
          that MSVC can't even build them properly is irrelevant;
          most likely gdbus-codegen needs changes to put _GLIB_EXTERN
          before each function)
  6. 27 Aug, 2018 1 commit
    • Iñigo Martínez's avatar
      gio: Provide schemas directory information in pkg-config file · 64e9e1f4
      Iñigo Martínez authored
      GSettings XML schema files are installed in a well known directory
      under Glib's installation directory: `glib-2.0/schemas`. However,
      the Glib installation directory might vary, so the exact location of
      the schema files might be unknown.
      The information regarding this directory has been added to GIO's
      pkg-config file, so it can be checked, and also overrided, by using
      the command line utility.
  7. 03 Aug, 2018 1 commit
    • Christoph Reiter's avatar
      build: only test for broken ip_mreq_source on Android. Fixes #1472 · 99caee28
      Christoph Reiter authored
      7efd76dd added these configure time tests to work around a bug
      with older Android. Since the test didn't take Windows into account it
      wrongfully applied the workaround on Windows too, breaking the build.
      With meson this wasn't an issue since the check is skipped on Windows there
      and our CI didn't catch this issue.
      Change the test to run on Android only for meson and autotools.
      This also makes it clear that the test+code can be dropped again if we stop
      supporting older Android versions at some point.
  8. 21 Jul, 2018 1 commit
  9. 21 Jun, 2018 1 commit
    • Daniel Drake's avatar
      gdesktopappinfo: enable fast posix_spawn gspawn codepath · 742efe62
      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
      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.
  10. 15 Jun, 2018 1 commit
    • Ondrej Holy's avatar
      gio: Add bash completion for gio tool · e0e0f259
      Ondrej Holy authored
      GVfs utils used to have bash completion, which was pretty useful. However,
      it hasn't been ported to gio tool unfortunately. GLib provides completion
      for various utils already, so it would be nice to provide completion also
      for gio tool. I've updated old bash completion code and merged with some
      my old unmerged fixes.
      The gvfs completion used "gvfs-ls --show-completions" helper. This mentioned
      option hasn't been obviously ported to "gio list" and the proposed completion
      doesn't add this option in "gio list" to not pollute the codes, but maybe it
      is a bit slower as consequence.
      The proposed bash completion suggests subcommands, uris and paths including
      the remote mounts. It contains some workarounds, especially because of proper
      handling of paths with colons and other special chars (like spaces)...
  11. 09 Jun, 2018 1 commit
    • Ting-Wei Lan's avatar
      meson: libelf.pc is not always available · a7779033
      Ting-Wei Lan authored
      libelf, just like libc, is not a single project. It is an interface
      which can be implemented independently by different operating systems.
      Therefore, we cannot expect all systems to provide a .pc file, and we
      should fallback to cc.find_library and cc.has_function like what we
      already do in autotools build.
  12. 07 Jun, 2018 2 commits
    • Xavier Claessens's avatar
      Meson: Build fam module · 077e9f04
      Xavier Claessens authored
      gio-querymodules-wrapper.py is copied from glib-networking. This python
      wrapper script is needed because meson.build cannot check for DESTDIR
      env variable itself, unlike Makefile.am. It is used to update
      giomodule.cache file when installing GIO modules like fam.
    • Xavier Claessens's avatar
      Meson: Remove config.h.meson template · 11822c40
      Xavier Claessens authored
      It became useless because glib_conf is not used anymore for generating
      pkgconfig files. See issue #1313.
  13. 25 May, 2018 2 commits
  14. 22 May, 2018 4 commits
  15. 15 May, 2018 1 commit
  16. 09 May, 2018 1 commit
  17. 24 Apr, 2018 1 commit
  18. 20 Apr, 2018 1 commit
  19. 10 Apr, 2018 1 commit
  20. 28 Mar, 2018 2 commits
  21. 21 Feb, 2018 1 commit
  22. 13 Feb, 2018 1 commit
  23. 02 Feb, 2018 1 commit
    • Philip Withnall's avatar
      gio: Port GThreadedResolver to use res_nquery() to fix thread-safety · 40be86bb
      Philip Withnall authored
      res_query() uses global state in the form of the struct __res_state
      which contains the contents of resolv.conf (and other things). On Linux,
      this state seems to be thread-local, so there is no problem. On OS X,
      however, it is not, and hence multiple res_query() calls from parallel
      threads will compete and return bogus results.
      The fix for this is to use res_nquery(), introduced in BIND 8.2, which
      takes an explicit state argument. This allows us to manually store the
      state thread-locally. If res_nquery() isn’t available, we fall back to
      res_query(). It should be available on OS X though. As a data point,
      it’s available on Fedora 27.
      There’s a slight complication in the fact that OS X requires the state
      to be freed using res_ndestroy() rather than res_nclose(). Linux uses
      (See, for example, the NetBSD man page:
      https://www.unix.com/man-page/netbsd/3/res_ninit/. The Linux one is
      incomplete and not so useful:
      The new code will call res_ninit() once per res_nquery() task. This is
      not optimal, but no worse than before — since res_query() was being
      called in a worker thread, on Linux, it would implicitly initialise the
      thread-local struct __res_state when it was called. We’ve essentially
      just made that explicit. In practical terms, this means a
      stat("/etc/resolv.conf") call per res_nquery() task.
      In future, we could improve this by using an explicit thread pool with
      some manually-created worker threads, each of which initialises a struct
      __res_state on spawning, and only updates it on receiving
      the #GResolver::reload signal.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
  24. 17 Jan, 2018 2 commits
  25. 04 Jan, 2018 3 commits
  26. 19 Dec, 2017 1 commit
  27. 14 Dec, 2017 1 commit
  28. 24 Nov, 2017 1 commit
  29. 23 Nov, 2017 1 commit
  30. 16 Oct, 2017 1 commit