[meta-virtualization] [PATCH 1/3] crui: update selinux patch to apply to v2.5

Bruce Ashfield bruce.ashfield at gmail.com
Mon Apr 24 19:52:22 PDT 2017


I normally let things sit longer .. but since this is already horribly
broken, I went ahead
and merged the series.

Bruce

On Mon, Apr 24, 2017 at 4:31 PM, Mark Asselstine <
mark.asselstine at windriver.com> wrote:

> I am not sure how the uprev to v2.5 was completed without seeing this
> patch failure but regardless the file being patched was moved to the
> 'criu' directory as part of the v2.5 release. Update the path found in
> the patch and update the context in the patch such that it applies.
>
> Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
> ---
>  .../criu/files/disable-selinux.patch               | 35
> +++++++++++++++-------
>  1 file changed, 24 insertions(+), 11 deletions(-)
>
> diff --git a/recipes-containers/criu/files/disable-selinux.patch
> b/recipes-containers/criu/files/disable-selinux.patch
> index da881dd..5d5d035 100644
> --- a/recipes-containers/criu/files/disable-selinux.patch
> +++ b/recipes-containers/criu/files/disable-selinux.patch
> @@ -1,3 +1,8 @@
> +From bd2eeaddfc1f12f87184d870cc9a1adde1cf0b10 Mon Sep 17 00:00:00 2001
> +From: Mark Asselstine <mark.asselstine at windriver.com>
> +Date: Mon, 24 Apr 2017 13:08:48 -0400
> +Subject: [PATCH] criu/Makefile.config: explicitly remove selinux support
> +
>  Upstream-Status: Inappropriate [disable feature]
>
>  It shows warning when build crius if libselinux has been built already:
> @@ -7,20 +12,28 @@ It shows warning when build crius if libselinux has
> been built already:
>  Apply this patch to disable selinux support when 'selinux' is not in
> PACKAGECONF.
>
>  Signed-off-by: Kai Kang <kai.kang at windriver.com>
> +[MA: Context updated to apply against criu v2.5]
> +Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
> +---
> + criu/Makefile.config | 5 -----
> + 1 file changed, 5 deletions(-)
>
> -diff --git a/Makefile.config b/Makefile.config
> -index ce4b8d8..3ac2780 100644
> ---- a/Makefile.config
> -+++ b/Makefile.config
> -@@ -8,11 +8,6 @@ ifeq ($(call try-cc,$(LIBBSD_DEV_TEST),-lbsd),y)
> -       DEFINES += -DCONFIG_HAS_LIBBSD
> +diff --git a/criu/Makefile.config b/criu/Makefile.config
> +index f531b3b..37216f8 100644
> +--- a/criu/Makefile.config
> ++++ b/criu/Makefile.config
> +@@ -7,11 +7,6 @@ ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_
> DEV),-lbsd),true)
> +         FEATURE_DEFINES       += -DCONFIG_HAS_LIBBSD
>   endif
>
>  -ifeq ($(call pkg-config-check,libselinux),y)
> --      LIBS := -lselinux $(LIBS)
> --      DEFINES += -DCONFIG_HAS_SELINUX
> +-        LIBS          += -lselinux
> +-        FEATURE_DEFINES       += -DCONFIG_HAS_SELINUX
>  -endif
>  -
> - $(CONFIG): scripts/utilities.mak scripts/feature-tests.mak
> include/config-base.h
> -       $(E) "  GEN     " $@
> -       $(Q) @echo '#ifndef __CR_CONFIG_H__' > $@
> + export DEFINES += $(FEATURE_DEFINES)
> + export CFLAGS += $(FEATURE_DEFINES)
> +
> +--
> +2.7.4
> +
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20170424/c144be60/attachment-0001.html>


More information about the meta-virtualization mailing list