Skip to content

Commit

Permalink
NetworkManager: update to 1.30.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cinerea0 committed Mar 20, 2021
1 parent ad95daa commit 025f7f4
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 298 deletions.
69 changes: 24 additions & 45 deletions srcpkgs/NetworkManager/patches/fix-cross-gir.patch
@@ -1,52 +1,31 @@
Reason: Fix crossbuilding GIR
Upstream: No, not upstreamable since this is very specific to the Void setup
diff --git clients/common/meson.build clients/common/meson.build
index afa257b..50b53e7 100644
--- clients/common/meson.build
+++ clients/common/meson.build
@@ -35,7 +35,7 @@ if enable_introspection
settings_docs,
input: nm_property_docs,
output: settings_docs,
- command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), 'settings-docs.xsl'), '@INPUT@'],
+ command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), 'settings-docs.xsl'), join_paths(meson.current_source_dir(), '..', '..', '@INPUT@')],
)
Index: b/libnm/meson.build
===================================================================
--- a/libnm/meson.build
+++ b/libnm/meson.build
@@ -274,13 +274,23 @@ if enable_introspection
'LD_LIBRARY_PATH=' + ld_library_path,
]

test(
diff --git libnm/meson.build libnm/meson.build
index 51ca46d..f14d861 100644
--- libnm/meson.build
+++ libnm/meson.build
@@ -236,7 +236,13 @@ if enable_introspection
)
endif

- generate_setting_docs = join_paths(meson.current_source_dir(), 'generate-setting-docs.py')
+ if meson.is_cross_build()
+ qemu = '/usr/bin/qemu-@XBPS_TARGET_QEMU_MACHINE@-static'
+ qemu_python3_cmd = qemu + ' -L @XBPS_CROSS_BASE@ @XBPS_CROSS_BASE@/usr/bin/python3'
+ generate_setting_docs = ['sh', '-c', qemu_python3_cmd, join_paths(meson.current_source_dir(), 'generate-setting-docs.py')]
+ qemu_python3_cmd = [
+ '/usr/bin/qemu-@XBPS_TARGET_QEMU_MACHINE@-static',
+ '-L', '@XBPS_CROSS_BASE@',
+ '@XBPS_CROSS_BASE@/usr/bin/python3'
+ ]
+ else
+ generate_setting_docs = [python.path(), join_paths(meson.current_source_dir(), 'generate-setting-docs.py')]
+ qemu_python3_cmd = python.path()
+ endif

gi_typelib_path = run_command('printenv', 'GI_TYPELIB_PATH').stdout()
if gi_typelib_path != ''
@@ -261,7 +267,7 @@ if enable_introspection
name,
+
nm_settings_docs_xml_gir = custom_target(
'nm-settings-docs-gir.xml',
input: libnm_gir[0],
output: name,
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'],
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'],
depends: libnm_gir,
)

@@ -270,7 +276,7 @@ if enable_introspection
name,
input: [libnm_gir[0], nm_settings_docs_overrides],
output: name,
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT0@', '--overrides', '@INPUT1@', '--output', '@OUTPUT@'],
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT0@', '--overrides', '@INPUT1@', '--output', '@OUTPUT@'],
depends: libnm_gir,
)
endif
output: 'nm-settings-docs-gir.xml',
command: [
generate_setting_docs_env,
- python.path(),
+ qemu_python3_cmd,
join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py'),
'--lib-path', meson.current_build_dir(),
'--gir', '@INPUT@',
15 changes: 0 additions & 15 deletions srcpkgs/NetworkManager/patches/fix-musl-linux-header.diff

This file was deleted.

16 changes: 0 additions & 16 deletions srcpkgs/NetworkManager/patches/fix-musl-qsort_r.patch

This file was deleted.

29 changes: 0 additions & 29 deletions srcpkgs/NetworkManager/patches/musl-basic.patch

This file was deleted.

54 changes: 0 additions & 54 deletions srcpkgs/NetworkManager/patches/musl-fix-includes.patch

This file was deleted.

42 changes: 0 additions & 42 deletions srcpkgs/NetworkManager/patches/musl-network-support.patch

This file was deleted.

40 changes: 0 additions & 40 deletions srcpkgs/NetworkManager/patches/musl-process-util.patch

This file was deleted.

40 changes: 0 additions & 40 deletions srcpkgs/NetworkManager/patches/musl-use-srand48.patch

This file was deleted.

28 changes: 28 additions & 0 deletions srcpkgs/NetworkManager/patches/no-gtk-doc.patch
@@ -0,0 +1,28 @@
Index: b/meson.build
===================================================================
--- a/meson.build
+++ b/meson.build
@@ -943,10 +943,8 @@ if enable_qt
endif

if enable_docs
- assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
assert(meson.version().version_compare('>= 0.46.0'), '-Ddocs requires meson >= 0.46')
subdir('man')
- subdir('docs')
endif

configure_file(
Index: b/clients/common/meson.build
===================================================================
--- a/clients/common/meson.build
+++ b/clients/common/meson.build
@@ -28,7 +28,7 @@ libnmc_base_dep = declare_dependency(
link_with: libnmc_base,
)

-if enable_docs
+if enable_docs and enable_introspection
settings_docs_source = custom_target(
'settings-docs.h',
input: nm_settings_docs_xml_gir,

0 comments on commit 025f7f4

Please sign in to comment.