Skip to contentSkip to conversation

openconnect: update to 8.02

PATCH In review Oleksandr Kravchuk 2 participants 4 messages Mar 16, 2019 – Jun 20, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openconnect: update to 8.02

---
 .../openconnect/openconnect_git.bb                 | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +10 -4
index c944144e2..050a2833c 100644
@@ -2,7 +2,11 @@ SUMMARY = "Open client for Cisco AnyConnect VPN"
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING.LGPL;md5=243b725d71bb5df4a1e5920b344b86ad"
 
+SRC_URI = "git://git.infradead.org/users/dwmw2/openconnect.git"
+SRCREV = "6487ee8763e1b6345718684909aca970befbc49d"
+
 DEPENDS = "vpnc libxml2 krb5 gettext-native"
+RDEPENDS_${PN} = "bash python"
 
 PACKAGECONFIG ??= "gnutls lz4 libproxy"
 
@@ -14,10 +18,7 @@ PACKAGECONFIG[libproxy]  = "--with-libproxy,--without-libproxy,libproxy,"
 # not config defaults
 PACKAGECONFIG[pcsc-lite] = "--with-libpcsclite,--without-libpcsclite,pcsc-lite,"
 
-PV = "7.08"
-
-SRCREV = "9697bea0e50952cab57063238b43a7099e498cbb"
-SRC_URI = "git://git.infradead.org/users/dwmw2/openconnect.git"
+PV = "8.02"
 
 S = "${WORKDIR}/git"
 
@@ -25,3 +26,8 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF += "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \
                  --disable-static"
+
+do_configure_append() {
+    # script has /usr/bin/python2 path hardcoded
+    sed -i -e 's=python2\.*=python=g' ${S}/trojans/tncc-wrapper.py
+}
Signature · 1 line
2.17.1
#1 lore raw

Hi all,

After this update I have some difficulties to populate my download pre-mirror with bitbake runall=fetch universe, warrior branch.

I can't access infradead.org in my company but it seems yocto mirrors does not contain following revision, this command fails:
git -c core.fsyncobjectfiles=0 branch --contains 6487ee8763e1b6345718684909aca970befbc49d --list master

For now, I just ignore the error as I don't use openconnect, anyone have same issue with it?

Best regards,
Vincent

Quoted 57 lines · Oleksandr Kravchuk
---
 .../openconnect/openconnect_git.bb                 | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
(quoted diff) +0 -0

openconnect_git.bb b/meta-networking/recipes-connectivity/openconnect/ openconnect_git.bb
index c944144e2..050a2833c 100644

meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +0 -0
@@ -2,7 +2,11 @@ SUMMARY = "Open client for Cisco AnyConnect VPN"
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM =

"file://COPYING.LGPL;md5=243b725d71bb5df4a1e5920b344b86ad"

meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +4 -0
+SRC_URI = "git://git.infradead.org/users/dwmw2/openconnect.git"
+SRCREV = "6487ee8763e1b6345718684909aca970befbc49d"
+
 DEPENDS = "vpnc libxml2 krb5 gettext-native"
+RDEPENDS_${PN} = "bash python"
 
 PACKAGECONFIG ??= "gnutls lz4 libproxy"
@@ -14,10 +18,7 @@ PACKAGECONFIG[libproxy]  =

"--with-libproxy,--without-libproxy,libproxy,"

 # not config defaults
 PACKAGECONFIG[pcsc-lite] =
"--with-libpcsclite,--without-libpcsclite,pcsc-lite,"
meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +6 -5
-PV = "7.08"
-
-SRCREV = "9697bea0e50952cab57063238b43a7099e498cbb"
-SRC_URI = "git://git.infradead.org/users/dwmw2/openconnect.git"
+PV = "8.02"
 
 S = "${WORKDIR}/git"
@@ -25,3 +26,8 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF +=
 "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \
                  --disable-static"
+
+do_configure_append() {
+    # script has /usr/bin/python2 path hardcoded
+    sed -i -e 's=python2\.*=python=g' ${S}/trojans/tncc-wrapper.py
+}
--

2.17.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

I do not know how Yocto mirrors work, but according to
http://downloads.yoctoproject.org/mirror/sources/ last copy of the repo was made in November 2018, while 8.02 was released in January 2019, so it does make sense that 6487ee8763e1b63 isn't in it.

Perhaps someone can force Yocto mirrors to fetch the latest version?

Quoted 90 lines · Vincent Prince

Hi all,

After this update I have some difficulties to populate my download pre-mirror with bitbake runall=fetch universe, warrior branch.

I can't access infradead.org <http://infradead.org> in my company but it seems yocto mirrors does not contain following revision, this command fails:
git -c core.fsyncobjectfiles=0 branch --contains 6487ee8763e1b6345718684909aca970befbc49d --list master

For now, I just ignore the error as I don't use openconnect, anyone have same issue with it?

Best regards,
Vincent

Le sam. 16 mars 2019 à 15:50, Oleksandr Kravchuk <[email protected] <mailto:[email protected]>> a écrit :

    Signed-off-by: Oleksandr Kravchuk
    <[email protected]
    <mailto:[email protected]>>
    ---
     .../openconnect/openconnect_git.bb <http://openconnect_git.bb>   
                 | 14 ++++++++++----
     1 file changed, 10 insertions(+), 4 deletions(-)

    diff --git
    a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
    <http://openconnect_git.bb>
    b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
    <http://openconnect_git.bb>
    index c944144e2..050a2833c 100644
    ---
    a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
    <http://openconnect_git.bb>
    +++
    b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
    <http://openconnect_git.bb>
    @@ -2,7 +2,11 @@ SUMMARY = "Open client for Cisco AnyConnect VPN"
     LICENSE = "LGPLv2.1"
     LIC_FILES_CHKSUM =
    "file://COPYING.LGPL;md5=243b725d71bb5df4a1e5920b344b86ad"

    +SRC_URI = "git://git.infradead.org/users/dwmw2/openconnect.git
    <http://git.infradead.org/users/dwmw2/openconnect.git>"
    +SRCREV = "6487ee8763e1b6345718684909aca970befbc49d"
    +
     DEPENDS = "vpnc libxml2 krb5 gettext-native"
    +RDEPENDS_${PN} = "bash python"

     PACKAGECONFIG ??= "gnutls lz4 libproxy"

    @@ -14,10 +18,7 @@ PACKAGECONFIG[libproxy]  =
    "--with-libproxy,--without-libproxy,libproxy,"
     # not config defaults
     PACKAGECONFIG[pcsc-lite] =
    "--with-libpcsclite,--without-libpcsclite,pcsc-lite,"

    -PV = "7.08"
    -
    -SRCREV = "9697bea0e50952cab57063238b43a7099e498cbb"
    -SRC_URI = "git://git.infradead.org/users/dwmw2/openconnect.git
    <http://git.infradead.org/users/dwmw2/openconnect.git>"
    +PV = "8.02"

     S = "${WORKDIR}/git"

    @@ -25,3 +26,8 @@ inherit autotools pkgconfig

     EXTRA_OECONF +=
    "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \
                      --disable-static"
    +
    +do_configure_append() {
    +    # script has /usr/bin/python2 path hardcoded
    +    sed -i -e 's=python2\.*=python=g' ${S}/trojans/tncc-wrapper.py
    +}
    -- 
    2.17.1

    -- 
    _______________________________________________
    Openembedded-devel mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#3 lore raw

Thanks for reply,

For now I added those lines to gitconfig to get rid of proxy issue:

[url "https://gitlab.com/openconnect/openconnect.git"]
insteadOf = git://git.infradead.org/users/dwmw2/openconnect.git

Regards

Quoted 85 lines · Oleksandr Kravchuk

I do not know how Yocto mirrors work, but according to
http://downloads.yoctoproject.org/mirror/sources/ last copy of the repo was made in November 2018, while 8.02 was released in January 2019, so it does make sense that 6487ee8763e1b63 isn't in it.

Perhaps someone can force Yocto mirrors to fetch the latest version? On 18/06/2019 10:01, Vincent Prince wrote:

Hi all,

After this update I have some difficulties to populate my download pre-mirror with bitbake runall=fetch universe, warrior branch.

I can't access infradead.org in my company but it seems yocto mirrors does not contain following revision, this command fails:
git -c core.fsyncobjectfiles=0 branch --contains 6487ee8763e1b6345718684909aca970befbc49d --list master

For now, I just ignore the error as I don't use openconnect, anyone have same issue with it?

Best regards,
Vincent

Quoted 57 lines · Oleksandr Kravchuk
---
 .../openconnect/openconnect_git.bb                 | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
(quoted diff) +0 -0

openconnect_git.bb b/meta-networking/recipes-connectivity/openconnect/ openconnect_git.bb
index c944144e2..050a2833c 100644

meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +0 -0
@@ -2,7 +2,11 @@ SUMMARY = "Open client for Cisco AnyConnect VPN"
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM =

"file://COPYING.LGPL;md5=243b725d71bb5df4a1e5920b344b86ad"

meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +4 -0
+SRC_URI = "git://git.infradead.org/users/dwmw2/openconnect.git"
+SRCREV = "6487ee8763e1b6345718684909aca970befbc49d"
+
 DEPENDS = "vpnc libxml2 krb5 gettext-native"
+RDEPENDS_${PN} = "bash python"
 
 PACKAGECONFIG ??= "gnutls lz4 libproxy"
@@ -14,10 +18,7 @@ PACKAGECONFIG[libproxy]  =

"--with-libproxy,--without-libproxy,libproxy,"

 # not config defaults
 PACKAGECONFIG[pcsc-lite] =
"--with-libpcsclite,--without-libpcsclite,pcsc-lite,"
meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +6 -5
-PV = "7.08"
-
-SRCREV = "9697bea0e50952cab57063238b43a7099e498cbb"
-SRC_URI = "git://git.infradead.org/users/dwmw2/openconnect.git"
+PV = "8.02"
 
 S = "${WORKDIR}/git"
@@ -25,3 +26,8 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF +=
 "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \
                  --disable-static"
+
+do_configure_append() {
+    # script has /usr/bin/python2 path hardcoded
+    sed -i -e 's=python2\.*=python=g' ${S}/trojans/tncc-wrapper.py
+}
--

2.17.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel