1. 26 Mar, 2021 1 commit
  2. 25 Mar, 2021 2 commits
  3. 24 Mar, 2021 6 commits
  4. 23 Mar, 2021 19 commits
  5. 22 Mar, 2021 6 commits
    • Thomas Haller's avatar
      067893f8
    • Thomas Haller's avatar
      build: fix race due to missing dependency for libnm-core-null to "config-extra.h" · fd17c874
      Thomas Haller authored
        In file included from ./src/libnm-glib-aux/nm-default-glib.h:11:0,
                         from ./src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13,
                         from src/libnm-log-null/nm-logging-null.c:6:
        ./src/libnm-std-aux/nm-default-std.h:32:26: fatal error: config-extra.h: No such file or directory
         #include "config-extra.h"
                                  ^
        compilation terminated.
        make[1]: *** [src/libnm-log-null/src_libnm_log_null_libnm_log_null_la-nm-logging-null.lo] Error 1
      fd17c874
    • Thomas Haller's avatar
      examples: fix exit from "vpn-import-libnm.c" example · 3348901d
      Thomas Haller authored
        ../examples/C/glib/vpn-import-libnm.c: In function main:
        ../examples/C/glib/vpn-import-libnm.c:72:1: error: control reaches end of non-void function [-Werror=return-type]
         }
         ^
      
      Fixes: 905f9975 ('example: importing vpn with libnm')
      3348901d
    • Thomas Haller's avatar
      libnm: improve detection for C11 _Generic() support · 54edfc61
      Thomas Haller authored
      Older gcc doesn't like this:
      
        ../src/libnm-core-impl/nm-setting-wired.c:132:49: error: controlling expression type 'const char *const [31]' not compatible with any generic association type
                   && (nm_utils_strv_find_binary_search(valid_s390_opts,
                                                        ^~~~~~~~~~~~~~~
        ../src/libnm-glib-aux/nm-shared-utils.h:2033:60: note: expanded from macro 'nm_utils_strv_find_binary_search'
                const char *const *const _strv   = NM_CAST_STRV_CC(strv);     \
                                                                   ^
        ../src/libnm-glib-aux/nm-macros-internal.h:706:21: note: expanded from macro 'NM_CAST_STRV_CC'
                (_Generic ((value), \
                            ^
      54edfc61
    • Jagadeesh Kotra's avatar
      example: importing vpn with libnm · 905f9975
      Jagadeesh Kotra authored and Thomas Haller's avatar Thomas Haller committed
      !789
      905f9975
    • Thomas Haller's avatar
      build: fix detection of python for autotools · 91bf576a
      Thomas Haller authored
      The goal of this code is to detect python, but prefer python3 while
      also allowing the user to override the path.
      
      That did not work in all cases, due to what seems like a bug in
      AM_PATH_PYTHON(). AM_PATH_PYTHON() is documented to ignore failure
      if [action-if-not-found] is given. So one might assume that:
      
        AM_PATH_PYTHON([3], [], [PYTHON=])
        if test -z "$PYTHON"; then
          AM_PATH_PYTHON([], [], [PYTHON=python])
        fi
      
      first tries to look for v3, and if that fails search for any python
      interpreter. That did not work however with:
      
        $ ./configure PYTHON=/usr/bin/python2
        ...
        checking pkg-config is at least version 0.9.0... yes
        checking whether /usr/bin/python2 version is >= 3... no
        configure: error: Python interpreter is too old
      
      because the first AM_PATH_PYTHON() is fatal.
      
      Work around that.
      
      Fixes: 54a1cfa9 ('build: prefer python3 over python2 in autotools's configure script')
      91bf576a
  6. 20 Mar, 2021 1 commit
  7. 19 Mar, 2021 5 commits