NetworkManager: update to 1.46.0
This commit is contained in:
parent
1ad57c4a8e
commit
0eb0f44328
|
@ -4,11 +4,10 @@ Index: b/src/libnm-client-impl/meson.build
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/src/libnm-client-impl/meson.build
|
--- a/src/libnm-client-impl/meson.build
|
||||||
+++ b/src/libnm-client-impl/meson.build
|
+++ b/src/libnm-client-impl/meson.build
|
||||||
@@ -210,6 +210,16 @@ if enable_introspection
|
@@ -178,6 +178,16 @@ if enable_introspection
|
||||||
ld_library_path = ':' + ld_library_path
|
|
||||||
endif
|
endif
|
||||||
ld_library_path = meson.current_build_dir() + ld_library_path
|
ld_library_path = meson.current_build_dir() + ld_library_path
|
||||||
+
|
|
||||||
+ if meson.is_cross_build()
|
+ if meson.is_cross_build()
|
||||||
+ qemu_python3_cmd = [
|
+ qemu_python3_cmd = [
|
||||||
+ '/usr/bin/qemu-@XBPS_TARGET_QEMU_MACHINE@-static',
|
+ '/usr/bin/qemu-@XBPS_TARGET_QEMU_MACHINE@-static',
|
||||||
|
@ -18,15 +17,25 @@ Index: b/src/libnm-client-impl/meson.build
|
||||||
+ else
|
+ else
|
||||||
+ qemu_python3_cmd = python.path()
|
+ qemu_python3_cmd = python.path()
|
||||||
+ endif
|
+ endif
|
||||||
|
+
|
||||||
|
gen_infos_cmd = join_paths(meson.source_root(), 'tools', 'generate-docs-nm-property-infos.py')
|
||||||
|
gen_gir_cmd = join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py')
|
||||||
|
|
||||||
nm_settings_docs_xml_gir = custom_target(
|
@@ -191,7 +201,7 @@ if enable_introspection
|
||||||
'nm-settings-docs-gir.xml',
|
input: [gen_infos_cmd, libnm_gir[0]] + libnm_core_settings_sources,
|
||||||
@@ -219,7 +229,7 @@ if enable_introspection
|
output: 'nm-property-infos-' + name + '.xml',
|
||||||
'env',
|
command: [
|
||||||
'GI_TYPELIB_PATH=' + gi_typelib_path,
|
- python.path(),
|
||||||
'LD_LIBRARY_PATH=' + ld_library_path,
|
+ qemu_python3_cmd,
|
||||||
- python.path(),
|
gen_infos_cmd,
|
||||||
+ qemu_python3_cmd,
|
name,
|
||||||
join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py'),
|
'@OUTPUT@',
|
||||||
'--lib-path', meson.current_build_dir(),
|
@@ -207,7 +217,7 @@ if enable_introspection
|
||||||
'--gir', '@INPUT@',
|
'env',
|
||||||
|
'GI_TYPELIB_PATH=' + gi_typelib_path,
|
||||||
|
'LD_LIBRARY_PATH=' + ld_library_path,
|
||||||
|
- python.path(),
|
||||||
|
+ qemu_python3_cmd,
|
||||||
|
gen_gir_cmd,
|
||||||
|
'--lib-path', meson.current_build_dir(),
|
||||||
|
'--gir', libnm_gir[0],
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
# Reason: We only want to build man pages, not development docs
|
# Reason: We only want to build man pages, not development docs
|
||||||
# Upstream: Patch was rejected - https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/689
|
# Upstream: Patch was rejected - https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/689
|
||||||
diff --git a/meson.build b/meson.build
|
diff --git a/meson.build b/meson.build
|
||||||
index 996617f4ca..fb4a914470 100644
|
index 1cc11d0dfdc..b25b9d93554 100644
|
||||||
--- a/meson.build
|
--- a/meson.build
|
||||||
+++ b/meson.build
|
+++ b/meson.build
|
||||||
@@ -952,10 +952,8 @@ if enable_qt
|
@@ -977,10 +977,8 @@ if enable_qt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if enable_docs
|
if enable_docs
|
||||||
- assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
|
- assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
|
||||||
assert(meson.version().version_compare('>= 0.46.0'), '-Ddocs requires meson >= 0.46')
|
assert(meson.version().version_compare('>= 0.49.0'), '-Ddocs requires meson >= 0.49')
|
||||||
subdir('man')
|
subdir('man')
|
||||||
- subdir('docs')
|
- subdir('docs')
|
||||||
endif
|
meson.add_dist_script(
|
||||||
|
'tools/meson-dist-data.sh',
|
||||||
configure_file(
|
'--build-root', build_root
|
||||||
diff --git a/src/libnmc-setting/meson.build b/src/libnmc-setting/meson.build
|
diff --git a/src/libnmc-setting/meson.build b/src/libnmc-setting/meson.build
|
||||||
index 49314cad2e..376ec4e740 100644
|
index 7fb460dc331..fadc90f01f8 100644
|
||||||
--- a/src/libnmc-setting/meson.build
|
--- a/src/libnmc-setting/meson.build
|
||||||
+++ b/src/libnmc-setting/meson.build
|
+++ b/src/libnmc-setting/meson.build
|
||||||
@@ -1,6 +1,6 @@
|
@@ -1,6 +1,6 @@
|
||||||
|
@ -25,5 +25,5 @@ index 49314cad2e..376ec4e740 100644
|
||||||
-if enable_docs
|
-if enable_docs
|
||||||
+if enable_docs and enable_introspection
|
+if enable_docs and enable_introspection
|
||||||
assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
|
assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
|
||||||
settings_docs_input_xml = custom_target(
|
|
||||||
'settings-docs-input.xml',
|
merge_cmd = join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-merge.py')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'NetworkManager'
|
# Template file for 'NetworkManager'
|
||||||
pkgname=NetworkManager
|
pkgname=NetworkManager
|
||||||
version=1.44.2
|
version=1.46.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=meson
|
build_style=meson
|
||||||
build_helper="gir qemu"
|
build_helper="gir qemu"
|
||||||
|
@ -33,13 +33,13 @@ short_desc="Network Management daemon"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://wiki.gnome.org/Projects/NetworkManager"
|
homepage="https://wiki.gnome.org/Projects/NetworkManager"
|
||||||
changelog="https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/raw/nm-1-44/NEWS"
|
changelog="https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/raw/nm-1-46/NEWS"
|
||||||
distfiles="${GNOME_SITE}/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz"
|
distfiles="${GNOME_SITE}/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz"
|
||||||
checksum=4b58bf3ac57e2cefb5652efd0945eb0b4bc36a63d92a61ab471d8bb2c9a420e1
|
checksum=722649e25362693b334371473802a729b0ec9ee283375096905f868808e74068
|
||||||
# TODO: Some tests require network namespaces to run.
|
# TODO: Some tests require network namespaces to run.
|
||||||
make_check=extended
|
make_check=extended
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
conf_files="/etc/NetworkManager/NetworkManager.conf"
|
||||||
make_dirs="
|
make_dirs="
|
||||||
/etc/NetworkManager/system-connections 0755 root root
|
/etc/NetworkManager/system-connections 0755 root root
|
||||||
/etc/NetworkManager/dispatcher.d/pre-up.d 0750 root root
|
/etc/NetworkManager/dispatcher.d/pre-up.d 0750 root root
|
||||||
|
@ -75,10 +75,10 @@ post_check() {
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/${pkgname}.conf 644 etc/${pkgname}
|
vinstall ${FILESDIR}/NetworkManager.conf 644 etc/NetworkManager
|
||||||
vinstall ${FILESDIR}/50-org.freedesktop.NetworkManager.rules 644 \
|
vinstall ${FILESDIR}/50-org.freedesktop.NetworkManager.rules 644 \
|
||||||
/usr/share/polkit-1/rules.d
|
/usr/share/polkit-1/rules.d
|
||||||
vsv ${pkgname}
|
vsv NetworkManager
|
||||||
}
|
}
|
||||||
|
|
||||||
libnm_package() {
|
libnm_package() {
|
||||||
|
|
Loading…
Reference in New Issue