summaryrefslogtreecommitdiff
path: root/meson.build
Commit message (Collapse)AuthorAgeFilesLines
* build: install a firewalld zone for shared modeBeniamino Galvani2020-05-151-0/+4
| | | | | | | Install a NM-specific firewalld zone to be used for interfaces that are used for connection sharing. The zone blocks all traffic to the local machine except some protocols (DHCP, DNS and ICMP) and allows all forwarded traffic.
* release: bump version to 1.25.1-dev after 1.25.0 release1.25.1-devThomas Haller2020-05-081-1/+1
|\
| * release: bump version to 1.25.0 (development)1.25.0-devBeniamino Galvani2020-04-101-1/+1
| |
* | release: bump version to 1.24.01.24.0Thomas Haller2020-05-081-1/+1
| |
* | release: bump version to 1.23.91 (1.24-rc2)1.24-rc2Thomas Haller2020-05-021-1/+1
|/
* release: bump version to 1.23.90 (1.24-rc1)1.24-rc1Beniamino Galvani2020-04-101-1/+1
|
* meson: merge branch 'inigomartinez/meson-license'Thomas Haller2020-03-281-0/+2
|\ | | | | | | | | | | | | | | | | | | Add SPDX license headers for meson files. As far as I can tell, according to RELICENSE.md file, almost everybody who contributed to the meson files agreed to the LGPL-2.1+ licensing. This entails the vast majority of code in question. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/397
| * license: Add license using SPDX identifiers to meson build filesIñigo Martínez2020-02-171-0/+2
| | | | | | | | | | License is missing in meson build files. This has been added using SPDX identifiers and licensed under LGPL-2.1+.
* | release: bump version to 1.23.2-dev1.23.2-devThomas Haller2020-02-211-1/+1
| |
* | build: disable -Wimplicit-fallthrough warning with clangThomas Haller2020-02-211-1/+22
| | | | | | | | | | | | | | | | | | | | | | Seems clang 10 got support for -Wimplicit-fallthrough, but does not honor the code comments to suppress the warning. What a disaster. Try to detect it. See-also: https://github.com/ClangBuiltLinux/linux/issues/ #636 See-also: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e2079e93f562c7f7a030eb7642017ee5eabaaa10
* | libnm: disable "-Wtautological-constant-out-of-range-compare" warning with clangThomas Haller2020-02-211-0/+1
|/ | | | | | | | | | | | | | | | | | | | Seen on Debian 9, clang-3.8 (1:3.8.1-24): ../libnm-core/nm-setting-bond.c:596:49: error: comparison of constant 32 with expression of type 'NMBondMode' is always true [-Werror,-Wtautological-constant-out-of-range-compare] nm_assert (_NM_INT_NOT_NEGATIVE (mode) && mode < 32); ~~~~ ^ ~~ This warning is not useful. While it may be implementation defined how enum values outside the defined ones are handled, we commonly rely on placing special numeric values in enums (e.g. ((NMEnumType) -1)). An enum is (with our compilers) just a glorified integer, and there is nothing preventing it from being outside the enum values. The warning is not helpful and outright wrong. Disable it. See-also: https://bugs.llvm.org//show_bug.cgi?id=16154 Fixes: 957bb2e11160 ('libnm: use binary search for _nm_setting_bond_option_supported() implementation')
* build/meson: fix missing slash when detecting resolvconf/netconfig binariesWill Dietz2020-01-281-1/+1
| | | | | | | | | | | Fix detection for /usr/local/sbin/{resolvconf,netconfig}. (and no longer automatically use "/usr/local/sbinnetconfig" if present) Fixes: 5a0cef2f3632 ('build: meson: uniform handling of rc managers') [thaller@redhat.com: commit message adjusted] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/349
* clients: polkit-agent: implement polkit agent without using libpolkitAntonio Cardace2019-12-241-5/+5
|
* meson: bump up min version to 0.46 according to minimum requirementsac/meson_improvementsAntonio Cardace2019-12-231-1/+1
| | | | | | | | The following used functions: `compiler.has_link_argument`, `link_whole arg in declare_dependency`, `compiler.has_multi_link_argument` are present only from meson 0.46.
* meson: remove pid_t redefinitionAntonio Cardace2019-12-231-4/+0
| | | | | For some reason has_type() does not work correctly and causes redefinition of the type.
* meson: add additional debug CFLAGS to use the same ones autotools usesAntonio Cardace2019-12-231-0/+12
|
* meson: use has_link_argument() to check linker flags supportAntonio Cardace2019-12-231-1/+5
|
* release: bump version to 1.23.1-dev after 1.22.0 release1.23.1-devThomas Haller2019-12-171-3/+13
|\ | | | | | | | | | | | | | | | | | | After 1.22.0 is released, merge it back into master so that 1.22.0 is part of the history of master. That means, $ git log --first-parent master will also traverse 1.22.0 and 1.22-rc*. Also bump the micro version to 1.23.1-dev to indicate that this is after 1.22.0 is out.
| * systemd: merge branch systemd into masterThomas Haller2019-12-161-2/+12
| |\
| * | meson/build: avoid using ternary as it breaks older mesonThomas Haller2019-12-131-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See mesonbuild issue 5003. Oddly, this isn't inside a method call, while we use ternaries inside a method calls otherwise. Anyway, workaround this and avoid the crash. Fixes: c21c6bc0be2a ('build/meson: allow configuring default for main.auth-polkit setting')
| * | build/meson: allow configuring default for main.auth-polkit settingThomas Haller2019-12-111-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We always build PolicyKit support, because it merely depends on some D-Bus calls. However, there are two things to configure: - the default value for main.auth-polkit in NetworkManager.conf. This is now called "-Dconfig_auth_polkit_default=$VAL". - whether to install the policy file. This is called "-Dpolkit=$VAL". These settings are mostly independent, so add "config_auth_polkit_default" to make the default explicitly configurable.
| * | release: bump version to 1.23.0 (development)1.23.0-devThomas Haller2019-11-291-1/+1
| | |
* | | release: bump version to 1.22.01.22.0Thomas Haller2019-12-171-1/+1
| | |
* | | meson/build: avoid using ternary as it breaks older mesonThomas Haller2019-12-131-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See mesonbuild issue 5003. Oddly, this isn't inside a method call, while we use ternaries inside a method calls otherwise. Anyway, workaround this and avoid the crash. Fixes: c21c6bc0be2a ('build/meson: allow configuring default for main.auth-polkit setting') (cherry picked from commit 0e3400bef730b2c52d48a1d1d4de58e9bcf2dcaa)
* | | build/meson: allow configuring default for main.auth-polkit settingThomas Haller2019-12-111-6/+8
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | We always build PolicyKit support, because it merely depends on some D-Bus calls. However, there are two things to configure: - the default value for main.auth-polkit in NetworkManager.conf. This is now called "-Dconfig_auth_polkit_default=$VAL". - whether to install the policy file. This is called "-Dpolkit=$VAL". These settings are mostly independent, so add "config_auth_polkit_default" to make the default explicitly configurable. (cherry picked from commit c21c6bc0be2a4467402bc2d8718859dedb10b676)
* | release: bump version to 1.21.90 (1.22-rc1)1.22-rc1Thomas Haller2019-11-291-1/+1
| |
* | cloud-setup: add tool for automatic IP configuration in cloudThomas Haller2019-11-281-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a tool for automatically configuring networking in a cloud environment. Currently it only supports IPv4 on EC2, but it's intended for extending to other cloud providers (Azure). See [1] and [2] for how to configure secondary IP addresses on EC2. This is what the tool currently aims to do (but in the future it might do more). [1] https://aws.amazon.com/premiumsupport/knowledge-center/ec2-ubuntu-secondary-network-interface/ It is inspired by SuSE's cloud-netconfig ([1], [2]) and ec2-net-utils package on Amazon Linux ([3], [4]). [1] https://www.suse.com/c/multi-nic-cloud-netconfig-ec2-azure/ [2] https://github.com/SUSE-Enceladus/cloud-netconfig [3] https://github.com/aws/ec2-net-utils [4] https://github.com/lorengordon/ec2-net-utils.git It is also intended to work without configuration. The main point is that you boot an image with NetworkManager and nm-cloud-setup enabled, and it just works.
* | build/meson: cleanup "meson-post-install.sh"Thomas Haller2019-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - the variables in meson.build and in the meson-post-install.sh script should have the same names. - the positional command line arguments should be assigned to variables, because the variable name acts like a documentation what the variable means (contrary to the argument number). - the boolean flags should not map to other special values, like "enable_docs ? 'install_docs' : ''". The name "enable_docs" is good already, it shall be either passed as 1 or 0 and use the name consistently.
* | build/meson: cleanup configuration_data() for pathsThomas Haller2019-11-221-0/+21
|/ | | | | | | | | | | We don't need such data duplicated. The build setup should have only one configuration_data() for patching such values. Now we only have one global, immutable data_conf dictionary with configuration values. Note that none of the users of data_conf uses all entries, but as the entries are basically only dependent on the meson/configure option and valid for the entire project, this simplifies to handling.
* release: bump version to 1.21.3-dev1.21.3-devLubomir Rintel2019-11-031-1/+1
|
* meson: Rename variables related to pkg-config variablesIñigo Martínez2019-10-011-15/+15
| | | | | | | | | | | | Some variables belong to variables in their correspondent pkg-config file. These variables have been renamed to `dependency_variable` to reflect the dependency and variables from pkg-config files they are related to. Some of these has also been fixed to use paths relative to installation prefix.
* meson: Remove tests related to check_so_symbolsIñigo Martínez2019-10-011-13/+0
| | | | | These tests are already working since 19a718bc1 so `FIXME` comments are not needed anymore.
* meson: Improve Qt examplesIñigo Martínez2019-10-011-0/+5
| | | | | | | | Qt dependencies have been moved to the main build file where the rest of dependencies are located. This makes it easier to find them. The included directories has also reviewed and removed the unnecessary ones.
* meson: Rename cflags variableIñigo Martínez2019-10-011-3/+3
| | | | | | | | | | | The variable holding the compiler flags, `cflags`, has been renamed to `c_flags` to be consistent with the rest of build files. Different objects used in the `test-dispatcher-envp` target have been grouped together. The dependency over the `libnm` library has been removed as it is unnecessary.
* meson: Move network-config directory creation to main install fileIñigo Martínez2019-10-011-0/+2
| | | | | | | | | The `ifcfg-rh` meson build file installs a new post install script to create the `network-config` directory. This has been moved to the main post install file so it's easier to find because all post install steps are together and it avoids and extra post install script execution.
* meson: Improve crypto support buildIñigo Martínez2019-10-011-5/+9
| | | | | | | There are multiple conditional steps for building encryption support. This is because the support varies from `gnutls` or `nss`. This has been improved to reduce the number of used conditions.
* meson: Simplified WiFi detection when IWD is enabledIñigo Martínez2019-10-011-3/+1
|
* meson: Avoid the use of source_root and build_root methodsIñigo Martínez2019-10-011-9/+12
| | | | | | | | The way some directory paths are defined has also been changed to avoid the use of the `source_root` and `build_root` functions because they are discouraged[0] [0] https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
* meson: Define meson information earlyIñigo Martínez2019-10-011-18/+18
| | | | | | The used meson modules, default directories and includes have been moved to the start of the build file, just after project related information, so they are available early.
* meson: Use generators placeholdersIñigo Martínez2019-10-011-5/+3
| | | | | | | | | | Functions derived from generators as `configure_file`, `custom_target` and `i18n.merge_file` can use placeholders like `@BASENAME@` that removes the extension from the input filename string. The output string has been replaced by this placeholder that allows in some cases the use of less variables.
* release: bump version to 1.21.2-dev1.21.2-devThomas Haller2019-09-261-1/+1
|
* wwan/modem-broadband: add capability to look up default APN/username/passwordlr/gsm-default-apnLubomir Rintel2019-09-111-0/+3
| | | | | This allows the GSM connection to Just Work most of the time, as in: "nmcli d connect ttyUSB0".
* release: bump version to 1.21.1-dev after 1.20.0 release1.21.1-devThomas Haller2019-08-061-1/+1
|\ | | | | | | | | | | | | | | | | | | After 1.20.0 is released, merge it back into master so that 1.20.0 is part of the history of master. That means, $ git log --first-parent master will also traverse 1.20.0 and 1.20-rc*. Also bump the micro version to 1.21.1-dev to indicate that this is after 1.20.0 is out.
| * release: bump version to 1.21.0 (development)1.21.0-devThomas Haller2019-07-291-1/+1
| |
* | release: bump version to 1.20.01.20.0Thomas Haller2019-08-061-1/+1
|/
* release: bump version to 1.19.90 (1.20-rc1)1.20-rc1Thomas Haller2019-07-291-1/+1
|
* systemd: merge branch systemd into masterBeniamino Galvani2019-07-051-3/+7
|
* release: bump version to 1.19.5-dev1.19.5-devLubomir Rintel2019-07-031-1/+1
|
* settings: drop ibft settings pluginth/drop-ibft-settings-pluginThomas Haller2019-06-201-8/+0
| | | | | | | | | | | | | | | The functionality of the ibft settings plugin is now handled by nm-initrd-generator. There is no need for it anymore, drop it. Note that ibft called iscsiadm, which requires CAP_SYS_ADMIN to work ([1]). We really want to drop this capability, so the current solution of a settings plugin (as it is implemented) is wrong. The solution instead is nm-initrd-generator. Also, on Fedora the ibft was disabled and probably on most other distributions as well. This was only used on RHEL. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1371201#c7
* release: bump version to 1.19.4-dev1.19.4-devLubomir Rintel2019-06-141-1/+1
|