Fails to compile

https://errors.yoctoproject.org/Errors/Details/703718/

On Thu, May 11, 2023 at 9:33 AM Petr Gotthard
<[email protected]> wrote:
>
> Fortinet SSLVPN support for NetworkManager
> https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn
>
> Signed-off-by: Petr Gotthard <[email protected]>
> ---
>  .../networkmanager-fortisslvpn_1.4.0.bb       | 66 +++++++++++++++++++
>  1 file changed, 66 insertions(+)
>  create mode 100644 
> meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb
>
> diff --git 
> a/meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb
>  
> b/meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb
> new file mode 100644
> index 0000000000..afaece245b
> --- /dev/null
> +++ 
> b/meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb
> @@ -0,0 +1,66 @@
> +SUMMARY = "Fortinet SSLVPN support for NetworkManager"
> +SECTION = "net/misc"
> +
> +LICENSE = "GPL-2.0-or-later"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
> +
> +DEPENDS = "glib-2.0-native libxml2-native networkmanager ppp"
> +
> +inherit gnomebase gettext useradd
> +
> +SRC_URI = 
> "${GNOME_MIRROR}/NetworkManager-fortisslvpn/${@gnome_verdir("${PV}")}/NetworkManager-fortisslvpn-${PV}.tar.xz"
> +SRC_URI[sha256sum] = 
> "b055e26349b516b23585798ab3ef57b436b014800e92a8ac732cfc8e76c5dafa"
> +
> +S = "${WORKDIR}/NetworkManager-fortisslvpn-${PV}"
> +
> +# meta-gnome in layers is required using gnome:
> +PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 libnma libsecret,"
> +PACKAGECONFIG[gtk4] = "--with-gtk4,--without-gtk4,gtk4,"
> +
> +EXTRA_OECONF = "--with-pppd-plugin-dir=${libdir}/pppd/${@get_ppp_version(d)}"
> +
> +def get_ppp_version(d):
> +    import re
> +
> +    pppd_plugin = d.expand('${STAGING_LIBDIR}/pppd')
> +    if not os.path.isdir(pppd_plugin):
> +        return None
> +
> +    bb.debug(1, "pppd plugin dir %s" % pppd_plugin)
> +    r = re.compile(r"\d*\.\d*\.\d*")
> +    for f in os.listdir(pppd_plugin):
> +        if os.path.isdir(os.path.join(pppd_plugin, f)):
> +            ma = r.match(f)
> +            if ma:
> +                bb.debug(1, "pppd version dir %s" % f)
> +                return f
> +            else:
> +                bb.debug(1, "under pppd plugin dir %s" % f)
> +
> +    return None
> +
> +# gdbus-codegen requires target directories to exist
> +do_configure:append() {
> +    mkdir -p ${B}/properties
> +    mkdir -p ${B}/src
> +}
> +
> +USERADD_PACKAGES = "${PN}"
> +USERADD_PARAM:${PN} = "--system nm-fortisslvpn"
> +
> +FILES:${PN} += " \
> +    ${libdir}/NetworkManager/*.so \
> +    ${libdir}/pppd/*/*.so \
> +    ${nonarch_libdir}/NetworkManager/VPN/nm-fortisslvpn-service.name \
> +"
> +
> +FILES:${PN}-staticdev += " \
> +    ${libdir}/NetworkManager/*.a \
> +    ${libdir}/pppd/*/*.a \
> +"
> +
> +RDEPENDS:${PN} = " \
> +    networkmanager \
> +    openfortivpn \
> +    ppp \
> +"
> --
> 2.34.1
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#102553): 
https://lists.openembedded.org/g/openembedded-devel/message/102553
Mute This Topic: https://lists.openembedded.org/mt/98831519/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to