Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7C47EE00744; Wed, 9 Jul 2014 04:00:14 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mx-3.enea.com (sestofw01.enea.se [192.36.1.252]) by yocto-www.yoctoproject.org (Postfix) with SMTP id 56437E00547 for ; Wed, 9 Jul 2014 04:00:00 -0700 (PDT) Received: from sestofb10.enea.se (172.21.3.145) by smtp.enea.com (172.21.1.209) with Microsoft SMTP Server id 14.3.158.1; Wed, 9 Jul 2014 12:59:49 +0200 Received: by sestofb10.enea.se (Postfix, from userid 4454) id 3D92C288F30; Wed, 9 Jul 2014 12:59:50 +0200 (CEST) From: "Maxin B. John" To: Date: Wed, 9 Jul 2014 12:59:48 +0200 Message-ID: <1404903588-58415-1-git-send-email-maxin.john@enea.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Received-SPF: None (SESTOEX03.enea.se: maxin.john@enea.com does not designate permitted sender hosts) Subject: [PATCH] lxc: bump to 1.0.4 X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 11:00:14 -0000 Content-Type: text/plain Updated lxc to latest version - 1.0.4 Removed already upstreamed patches Signed-off-by: Maxin B. John --- ...ork_type-set-macvlan-default-mode-to-priv.patch | 43 ---------------------- ...-follow-symlinks-when-inspecting-busybox-.patch | 27 -------------- ...-Add-missing-LXC_NET_NONE-option-refactor.patch | 38 ------------------- .../lxc/{lxc_1.0.1.bb => lxc_1.0.4.bb} | 8 +--- 4 files changed, 2 insertions(+), 114 deletions(-) delete mode 100644 recipes-containers/lxc/files/config_network_type-set-macvlan-default-mode-to-priv.patch delete mode 100644 recipes-containers/lxc/files/lxc-busybox-follow-symlinks-when-inspecting-busybox-.patch delete mode 100644 recipes-containers/lxc/files/network.c-Add-missing-LXC_NET_NONE-option-refactor.patch rename recipes-containers/lxc/{lxc_1.0.1.bb => lxc_1.0.4.bb} (86%) diff --git a/recipes-containers/lxc/files/config_network_type-set-macvlan-default-mode-to-priv.patch b/recipes-containers/lxc/files/config_network_type-set-macvlan-default-mode-to-priv.patch deleted file mode 100644 index 8cb321b..0000000 --- a/recipes-containers/lxc/files/config_network_type-set-macvlan-default-mode-to-priv.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 261658e80014c031852a024f8794dd7f2a2351ad Mon Sep 17 00:00:00 2001 -From: Bogdan Purcareata -Date: Fri, 28 Mar 2014 10:31:41 -0400 -Subject: [PATCH] config_network_type: set macvlan default mode to private - -If a default mode is not set, the container requires an explicit -mode specified in the config file, otherwise creating the -container fails. - -Signed-off-by: Bogdan Purcareata -Signed-off-by: Serge Hallyn ---- - src/lxc/confile.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/src/lxc/confile.c b/src/lxc/confile.c -index d6cf151..90fb344 100644 ---- a/src/lxc/confile.c -+++ b/src/lxc/confile.c -@@ -303,6 +303,8 @@ out: - return ret; - } - -+static int macvlan_mode(int *valuep, const char *value); -+ - static int config_network_type(const char *key, const char *value, - struct lxc_conf *lxc_conf) - { -@@ -337,8 +339,10 @@ static int config_network_type(const char *key, const char *value, - - if (!strcmp(value, "veth")) - netdev->type = LXC_NET_VETH; -- else if (!strcmp(value, "macvlan")) -+ else if (!strcmp(value, "macvlan")) { - netdev->type = LXC_NET_MACVLAN; -+ macvlan_mode(&netdev->priv.macvlan_attr.mode, "private"); -+ } - else if (!strcmp(value, "vlan")) - netdev->type = LXC_NET_VLAN; - else if (!strcmp(value, "phys")) --- -1.9.rc1 - diff --git a/recipes-containers/lxc/files/lxc-busybox-follow-symlinks-when-inspecting-busybox-.patch b/recipes-containers/lxc/files/lxc-busybox-follow-symlinks-when-inspecting-busybox-.patch deleted file mode 100644 index 6882c16..0000000 --- a/recipes-containers/lxc/files/lxc-busybox-follow-symlinks-when-inspecting-busybox-.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 50dbb8209bf65e4d24ccd06d3ca05004d0ddc63c Mon Sep 17 00:00:00 2001 -From: Bogdan Purcareata -Date: Mon, 24 Mar 2014 12:43:03 -0400 -Subject: [PATCH] lxc-busybox: follow symlinks when inspecting busybox binary - -Signed-off-by: Bogdan Purcareata -Signed-off-by: Serge Hallyn ---- - templates/lxc-busybox.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in -index e5a512a..246e743 100644 ---- a/templates/lxc-busybox.in -+++ b/templates/lxc-busybox.in -@@ -187,7 +187,7 @@ configure_busybox() - return 1 - fi - -- file $(which busybox) | grep -q "statically linked" -+ file -L $(which busybox) | grep -q "statically linked" - if [ $? -ne 0 ]; then - echo "warning : busybox is not statically linked." - echo "warning : The template script may not correctly" --- -1.9.rc1 - diff --git a/recipes-containers/lxc/files/network.c-Add-missing-LXC_NET_NONE-option-refactor.patch b/recipes-containers/lxc/files/network.c-Add-missing-LXC_NET_NONE-option-refactor.patch deleted file mode 100644 index 81fde83..0000000 --- a/recipes-containers/lxc/files/network.c-Add-missing-LXC_NET_NONE-option-refactor.patch +++ /dev/null @@ -1,38 +0,0 @@ -From b343592b45c91db8c18e863fac5ab8eeb94445d6 Mon Sep 17 00:00:00 2001 -From: Bogdan Purcareata -Date: Wed, 26 Mar 2014 11:35:09 -0400 -Subject: [PATCH] network.c: Add missing LXC_NET_NONE option + refactor - -Add LXC_NET_NONE to known lxc_network_types, so parsing a config -file with lxc.network.type = none does not result in failure -(e.g. doc/examples/lxc-no-netns.conf). Options have also been -reordered to match the enum in conf.h. - -Signed-off-by: Bogdan Purcareata -Signed-off-by: Serge Hallyn ---- - src/lxc/network.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/src/lxc/network.c b/src/lxc/network.c -index 090b9bd..a9900de 100644 ---- a/src/lxc/network.c -+++ b/src/lxc/network.c -@@ -1202,11 +1202,12 @@ int lxc_bridge_attach(const char *bridge, const char *ifname) - } - - static const char* const lxc_network_types[LXC_NET_MAXCONFTYPE + 1] = { -+ [LXC_NET_EMPTY] = "empty", - [LXC_NET_VETH] = "veth", - [LXC_NET_MACVLAN] = "macvlan", -- [LXC_NET_VLAN] = "vlan", - [LXC_NET_PHYS] = "phys", -- [LXC_NET_EMPTY] = "empty", -+ [LXC_NET_VLAN] = "vlan", -+ [LXC_NET_NONE] = "none", - }; - - const char *lxc_net_type_to_str(int type) --- -1.9.rc1 - diff --git a/recipes-containers/lxc/lxc_1.0.1.bb b/recipes-containers/lxc/lxc_1.0.4.bb similarity index 86% rename from recipes-containers/lxc/lxc_1.0.1.bb rename to recipes-containers/lxc/lxc_1.0.4.bb index 4ef80d6..86e6a42 100644 --- a/recipes-containers/lxc/lxc_1.0.1.bb +++ b/recipes-containers/lxc/lxc_1.0.4.bb @@ -24,15 +24,12 @@ RDEPENDS_${PN}-ptest += "file make" SRC_URI = "http://linuxcontainers.org/downloads/${BPN}-${PV}.tar.gz \ file://lxc-1.0.0-disable-udhcp-from-busybox-template.patch \ - file://config_network_type-set-macvlan-default-mode-to-priv.patch \ - file://lxc-busybox-follow-symlinks-when-inspecting-busybox-.patch \ - file://network.c-Add-missing-LXC_NET_NONE-option-refactor.patch \ file://runtest.patch \ file://run-ptest \ file://automake-ensure-VPATH-builds-work-correctly.patch \ " -SRC_URI[md5sum] = "3c7379891e45713817ec873a167070b0" -SRC_URI[sha256sum] = "17d8e5b575207b4fb57da0b8ba2d13f3e5ee20ce8ccd1259d6eae4bd5ca575b1" +SRC_URI[md5sum] = "2689080af03a8ac1f1ce577728dd3619" +SRC_URI[sha256sum] = "a06eb4aa7c6d0a11f90e40221fc5cc4045f02c364127bf111c4ce79bd45c4e06" S = "${WORKDIR}/${BPN}-${PV}" @@ -76,4 +73,3 @@ pkg_postinst_${PN}() { /etc/init.d/populate-volatile.sh update fi } - -- 1.9.1