diff options
5 files changed, 71 insertions, 151 deletions
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-Fixed-configure.ac-Fix-pkgconfig-sysroot-locations.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-Fixed-configure.ac-Fix-pkgconfig-sysroot-locations.patch deleted file mode 100644 index 19c8c74811..0000000000 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-Fixed-configure.ac-Fix-pkgconfig-sysroot-locations.patch +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | From 9bcf4c81a559d1e7deac47b2e510d7f1e5837a02 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Pablo Saavedra <psaavedra@igalia.com> | ||
| 3 | Date: Tue, 13 Mar 2018 17:36:20 +0100 | ||
| 4 | Subject: [PATCH] Fixed configure.ac: Fix pkgconfig sysroot locations | ||
| 5 | |||
| 6 | --- | ||
| 7 | configure.ac | 2 +- | ||
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 9 | |||
| 10 | diff --git a/configure.ac b/configure.ac | ||
| 11 | index 65ceffb..ad4b0fc 100644 | ||
| 12 | --- a/configure.ac | ||
| 13 | +++ b/configure.ac | ||
| 14 | @@ -561,7 +561,7 @@ if test "$have_jansson" = "yes"; then | ||
| 15 | AC_DEFINE(WITH_JANSSON, 1, [Define if JANSSON is enabled]) | ||
| 16 | |||
| 17 | AC_CHECK_TOOLS(READELF, [eu-readelf readelf]) | ||
| 18 | - JANSSON_LIBDIR=`$PKG_CONFIG --variable=libdir jansson` | ||
| 19 | + JANSSON_LIBDIR=${PKG_CONFIG_SYSROOT_DIR}`$PKG_CONFIG --variable=libdir jansson` | ||
| 20 | JANSSON_SONAME=`$READELF -d $JANSSON_LIBDIR/libjansson.so |sed -n 's/.*SONAME.*\[[\([^]]*\)]]/\1/p'` | ||
| 21 | |||
| 22 | if test "$JANSSON_SONAME" = ""; then | ||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-do-not-ask-host-for-ifcfg-defaults.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-do-not-ask-host-for-ifcfg-defaults.patch new file mode 100644 index 0000000000..d3393b50c1 --- /dev/null +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-do-not-ask-host-for-ifcfg-defaults.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 3894ddf5f677a42ed01d676b68e25a414fd8a0ce Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Adrian Freihofer <adrian.freihofer@siemens.com> | ||
| 3 | Date: Sun, 29 Aug 2021 15:50:35 +0200 | ||
| 4 | Subject: [PATCH] do-not-ask-host-for-ifcfg-defaults | ||
| 5 | |||
| 6 | --- | ||
| 7 | meson.build | 4 ++-- | ||
| 8 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 9 | |||
| 10 | diff --git a/meson.build b/meson.build | ||
| 11 | index 3c4be61509..8833c62fa3 100644 | ||
| 12 | --- a/meson.build | ||
| 13 | +++ b/meson.build | ||
| 14 | @@ -304,8 +304,8 @@ else | ||
| 15 | distro = 'unknown' | ||
| 16 | endif | ||
| 17 | |||
| 18 | -enable_ifcfg_rh = get_option('ifcfg_rh') or (distro == 'redhat') | ||
| 19 | -enable_ifupdown = get_option('ifupdown') or (distro == 'debian') | ||
| 20 | +enable_ifcfg_rh = get_option('ifcfg_rh') | ||
| 21 | +enable_ifupdown = get_option('ifupdown') | ||
| 22 | |||
| 23 | config_plugins_default = get_option('config_plugins_default') | ||
| 24 | if config_plugins_default == '' | ||
| 25 | -- | ||
| 26 | 2.31.1 | ||
| 27 | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0002-Do-not-create-settings-settings-property-documentati.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0002-Do-not-create-settings-settings-property-documentati.patch deleted file mode 100644 index 86e8eaafc5..0000000000 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0002-Do-not-create-settings-settings-property-documentati.patch +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | From d0dead0478a070b96f37bd3b310443eaa8c93a25 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Mon, 5 Jul 2021 00:42:23 +0200 | ||
| 4 | Subject: [PATCH] Do not create settings settings/property documentation | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | It was tried to get this work by adding python3-pygobject-native to DEPENDS but | ||
| 10 | compile could not find (configure passed) python module gi. | ||
| 11 | Anyway it is not necessary for us to have the settings/property docs. | ||
| 12 | |||
| 13 | Upstream-Status: Inappropriate [OE specific] | ||
| 14 | |||
| 15 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 16 | Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com> | ||
| 17 | --- | ||
| 18 | Makefile.am | 5 ----- | ||
| 19 | configure.ac | 5 ----- | ||
| 20 | 2 files changed, 10 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/Makefile.am b/Makefile.am | ||
| 23 | index 5a62070..3d0ebcd 100644 | ||
| 24 | --- a/Makefile.am | ||
| 25 | +++ b/Makefile.am | ||
| 26 | @@ -1860,15 +1860,10 @@ src/libnm-client-impl/libnm.typelib: src/libnm-client-impl/libnm.gir | ||
| 27 | INTROSPECTION_GIRS += src/libnm-client-impl/NM-1.0.gir | ||
| 28 | |||
| 29 | libnm_noinst_data = \ | ||
| 30 | - src/nmcli/generate-docs-nm-settings-nmcli.xml \ | ||
| 31 | - man/nm-settings-docs-dbus.xml \ | ||
| 32 | - man/nm-settings-docs-nmcli.xml \ | ||
| 33 | src/libnm-client-impl/nm-property-infos-dbus.xml \ | ||
| 34 | src/libnm-client-impl/nm-property-infos-ifcfg-rh.xml \ | ||
| 35 | src/libnm-client-impl/nm-property-infos-keyfile.xml \ | ||
| 36 | src/libnm-client-impl/nm-property-infos-nmcli.xml \ | ||
| 37 | - src/libnm-client-impl/nm-settings-docs-gir.xml \ | ||
| 38 | - src/libnmc-setting/settings-docs-input.xml \ | ||
| 39 | $(NULL) | ||
| 40 | |||
| 41 | noinst_DATA += $(libnm_noinst_data) | ||
| 42 | diff --git a/configure.ac b/configure.ac | ||
| 43 | index 8fe23de..dc24850 100644 | ||
| 44 | --- a/configure.ac | ||
| 45 | +++ b/configure.ac | ||
| 46 | @@ -1258,11 +1258,6 @@ GTK_DOC_CHECK(1.0) | ||
| 47 | # check if we can build setting property documentation | ||
| 48 | build_docs=no | ||
| 49 | if test -n "$INTROSPECTION_MAKEFILE"; then | ||
| 50 | - # If g-i is installed we know we have python, but we might not have pygobject | ||
| 51 | - if ! "$PYTHON" -c 'from gi.repository import GObject' > /dev/null 2>&1; then | ||
| 52 | - AC_MSG_ERROR(["--enable-introspection aims to build the settings documentation. This requires GObject introspection for python (pygobject)]) | ||
| 53 | - fi | ||
| 54 | - | ||
| 55 | AC_PATH_PROG(PERL, perl) | ||
| 56 | if test -z "$PERL"; then | ||
| 57 | AC_MSG_ERROR([--enable-introspection requires perl]) | ||
| 58 | -- | ||
| 59 | 2.31.1 | ||
| 60 | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch deleted file mode 100644 index 11741897f6..0000000000 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From 6388b16b93ba805f8877a94f47509f701250812f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Mon, 6 Jul 2020 19:33:54 -0700 | ||
| 4 | Subject: [PATCH] install firewalld to var-libdir rather than hardcod lib | ||
| 5 | |||
| 6 | The oe install firewalld (split packages) to ${libdir}/firewalld/zones | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [oe specific] | ||
| 9 | |||
| 10 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 11 | --- | ||
| 12 | Makefile.am | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/Makefile.am b/Makefile.am | ||
| 16 | index 358b01a..5745339 100644 | ||
| 17 | --- a/Makefile.am | ||
| 18 | +++ b/Makefile.am | ||
| 19 | @@ -4778,7 +4778,7 @@ data/server.conf: $(srcdir)/data/server.conf.in | ||
| 20 | $(AM_V_GEN) $(data_edit) $< >$@ | ||
| 21 | |||
| 22 | if WITH_FIREWALLD_ZONE | ||
| 23 | -firewalldzonedir = $(prefix)/lib/firewalld/zones | ||
| 24 | +firewalldzonedir = $(libdir)/firewalld/zones | ||
| 25 | firewalldzone_DATA = data/nm-shared.xml | ||
| 26 | endif | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.21.0 | ||
| 30 | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.0.bb index 76e49949f4..18541cbc03 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.0.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.0.bb | |||
| @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
| 8 | " | 8 | " |
| 9 | 9 | ||
| 10 | DEPENDS = " \ | 10 | DEPENDS = " \ |
| 11 | coreutils-native \ | ||
| 11 | intltool-native \ | 12 | intltool-native \ |
| 12 | libxslt-native \ | 13 | libxslt-native \ |
| 13 | libnl \ | 14 | libnl \ |
| @@ -16,32 +17,37 @@ DEPENDS = " \ | |||
| 16 | libndp \ | 17 | libndp \ |
| 17 | libnewt \ | 18 | libnewt \ |
| 18 | curl \ | 19 | curl \ |
| 20 | dbus \ | ||
| 19 | " | 21 | " |
| 20 | 22 | ||
| 21 | inherit gnomebase gettext update-rc.d systemd vala gobject-introspection gtk-doc update-alternatives upstream-version-is-even | 23 | GNOMEBASEBUILDCLASS = "meson" |
| 24 | inherit gnomebase gettext update-rc.d systemd gobject-introspection gtk-doc update-alternatives upstream-version-is-even | ||
| 22 | 25 | ||
| 23 | SRC_URI = " \ | 26 | SRC_URI = " \ |
| 24 | ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \ | 27 | ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \ |
| 25 | file://${BPN}.initd \ | 28 | file://${BPN}.initd \ |
| 26 | file://0001-Fixed-configure.ac-Fix-pkgconfig-sysroot-locations.patch \ | 29 | file://0001-do-not-ask-host-for-ifcfg-defaults.patch \ |
| 27 | file://0002-Do-not-create-settings-settings-property-documentati.patch \ | ||
| 28 | file://0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch \ | ||
| 29 | " | 30 | " |
| 30 | SRC_URI[sha256sum] = "faa389c9e9ca78243cfab4a8bed6db132f82e5b5e66bb9d44af93379d1348398" | 31 | SRC_URI[sha256sum] = "faa389c9e9ca78243cfab4a8bed6db132f82e5b5e66bb9d44af93379d1348398" |
| 31 | 32 | ||
| 32 | S = "${WORKDIR}/NetworkManager-${PV}" | 33 | S = "${WORKDIR}/NetworkManager-${PV}" |
| 33 | 34 | ||
| 34 | EXTRA_OECONF = " \ | 35 | # ['auto', 'symlink', 'file', 'netconfig', 'resolvconf'] |
| 35 | --disable-ifcfg-rh \ | 36 | NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT ??= "auto" |
| 36 | --disable-more-warnings \ | 37 | |
| 37 | --with-iptables=${sbindir}/iptables \ | 38 | # ['dhcpcanon', 'dhclient', 'dhcpcd', 'internal', 'nettools'] |
| 38 | --with-tests \ | 39 | NETWORKMANAGER_DHCP_DEFAULT ??= "internal" |
| 39 | --with-nmtui=yes \ | 40 | |
| 40 | --with-udev-dir=${nonarch_base_libdir}/udev \ | 41 | EXTRA_OEMESON = "\ |
| 41 | --with-dhclient=no \ | 42 | -Difcfg_rh=false \ |
| 42 | --with-dhcpcd=no \ | 43 | -Dtests=yes \ |
| 43 | --with-dhcpcanon=no \ | 44 | -Dnmtui=true \ |
| 44 | --with-netconfig=no \ | 45 | -Dudev_dir=${nonarch_base_libdir}/udev \ |
| 46 | -Dlibpsl=false \ | ||
| 47 | -Dqt=false \ | ||
| 48 | -Dconfig_dns_rc_manager_default=${NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT} \ | ||
| 49 | -Dconfig_dhcp_default=${NETWORKMANAGER_DHCP_DEFAULT} \ | ||
| 50 | -Ddhcpcanon=false \ | ||
| 45 | " | 51 | " |
| 46 | 52 | ||
| 47 | # stolen from https://github.com/void-linux/void-packages/blob/master/srcpkgs/NetworkManager/template | 53 | # stolen from https://github.com/void-linux/void-packages/blob/master/srcpkgs/NetworkManager/template |
| @@ -52,7 +58,7 @@ CFLAGS:append:libc-musl = " \ | |||
| 52 | " | 58 | " |
| 53 | 59 | ||
| 54 | do_compile:prepend() { | 60 | do_compile:prepend() { |
| 55 | export GIR_EXTRA_LIBS_PATH="${B}/src/libnm-client-impl/.libs" | 61 | export GI_TYPELIB_PATH="${B}}/src/libnm-client-impl${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}" |
| 56 | } | 62 | } |
| 57 | 63 | ||
| 58 | PACKAGECONFIG ??= "nss ifupdown dnsmasq nmcli \ | 64 | PACKAGECONFIG ??= "nss ifupdown dnsmasq nmcli \ |
| @@ -64,33 +70,32 @@ PACKAGECONFIG ??= "nss ifupdown dnsmasq nmcli \ | |||
| 64 | 70 | ||
| 65 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'nmcli', 'bash-completion', '', d)} | 71 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'nmcli', 'bash-completion', '', d)} |
| 66 | 72 | ||
| 67 | PACKAGECONFIG[systemd] = " \ | 73 | PACKAGECONFIG[systemd] = "\ |
| 68 | --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd, \ | 74 | -Dsystemdsystemunitdir=${systemd_unitdir}/system -Dsession_tracking=systemd,\ |
| 69 | --without-systemdsystemunitdir, \ | 75 | -Dsystemdsystemunitdir=no -Dsystemd_journal=false -Dsession_tracking=no\ |
| 70 | " | 76 | " |
| 71 | PACKAGECONFIG[polkit] = "--enable-polkit,--disable-polkit,polkit" | 77 | PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false,polkit" |
| 72 | PACKAGECONFIG[bluez5] = "--enable-bluez5-dun,--disable-bluez5-dun,bluez5" | 78 | PACKAGECONFIG[bluez5] = "-Dbluez5_dun=true,-Dbluez5_dun=false,bluez5" |
| 73 | # consolekit is not picked by shlibs, so add it to RDEPENDS too | 79 | # consolekit is not picked by shlibs, so add it to RDEPENDS too |
| 74 | PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit" | 80 | PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit" |
| 75 | PACKAGECONFIG[modemmanager] = "--with-modem-manager-1=yes,--with-modem-manager-1=no,modemmanager" | 81 | PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info" |
| 76 | PACKAGECONFIG[ppp] = "--enable-ppp,--disable-ppp,ppp,ppp" | 82 | PACKAGECONFIG[ppp] = "-Dppp=true,-Dppp=false,ppp,ppp" |
| 77 | PACKAGECONFIG[dnsmasq] = "--with-dnsmasq=${bindir}/dnsmasq" | 83 | PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq" |
| 78 | PACKAGECONFIG[nss] = "--with-crypto=nss,,nss" | 84 | PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss" |
| 79 | PACKAGECONFIG[resolvconf] = "--with-resolvconf=${base_sbindir}/resolvconf,,,resolvconf" | 85 | PACKAGECONFIG[resolvconf] = "-Dresolvconf=${base_sbindir}/resolvconf,-Dresolvconf=no,,resolvconf" |
| 80 | PACKAGECONFIG[gnutls] = "--with-crypto=gnutls,,gnutls" | 86 | PACKAGECONFIG[gnutls] = "-Dcrypto=gnutls,,gnutls" |
| 81 | PACKAGECONFIG[wifi] = "--with-wext=yes --enable-wifi=yes,--with-wext=no --enable-wifi=no,,wpa-supplicant" | 87 | PACKAGECONFIG[wifi] = "-Dwext=true -Dwifi=true,-Dwext=false -Dwifi=false" |
| 82 | PACKAGECONFIG[ifupdown] = "--enable-ifupdown,--disable-ifupdown" | 88 | PACKAGECONFIG[ifupdown] = "-Difupdown=true,-Difupdown=false" |
| 83 | PACKAGECONFIG[qt4-x11-free] = "--enable-qt,--disable-qt,qt4-x11-free" | 89 | PACKAGECONFIG[cloud-setup] = "-Dnm_cloud_setup=true,-Dnm_cloud_setup=false" |
| 84 | PACKAGECONFIG[cloud-setup] = "--with-nm-cloud-setup=yes,--with-nm-cloud-setup=no" | 90 | PACKAGECONFIG[nmcli] = "-Dnmcli=true,-Dnmcli=false" |
| 85 | PACKAGECONFIG[nmcli] = "--with-nmcli=yes,--with-nmcli=no,readline" | 91 | PACKAGECONFIG[ovs] = "-Dovs=true,-Dovs=false,jansson" |
| 86 | PACKAGECONFIG[ovs] = "--enable-ovs,--disable-ovs,jansson" | 92 | PACKAGECONFIG[audit] = "-Dlibaudit=yes,-Dlibaudit=no" |
| 87 | PACKAGECONFIG[audit] = "--with-libaudit,--without-libaudit,audit" | 93 | PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux" |
| 88 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" | ||
| 89 | 94 | ||
| 90 | PACKAGES =+ " \ | 95 | PACKAGES =+ " \ |
| 91 | ${PN}-nmcli ${PN}-nmcli-doc \ | 96 | ${PN}-nmcli ${PN}-nmcli-doc \ |
| 92 | ${PN}-nmtui ${PN}-nmtui-doc \ | 97 | ${PN}-nmtui ${PN}-nmtui-doc \ |
| 93 | ${PN}-adsl ${PN}-cloud-setup \ | 98 | ${PN}-adsl ${PN}-cloud-setup \ |
| 94 | " | 99 | " |
| 95 | 100 | ||
| 96 | SYSTEMD_PACKAGES = "${PN} ${PN}-cloud-setup" | 101 | SYSTEMD_PACKAGES = "${PN} ${PN}-cloud-setup" |
