diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2017-09-27 17:36:58 +0800 |
---|---|---|
committer | Jia Zhang <qianyue.zj@alibaba-inc.com> | 2017-09-27 05:36:58 -0400 |
commit | 616263c4e6e1a4157846ebdd0f2905bfd808e6be (patch) | |
tree | dda7bdc7f870ef50ccc19416b70b64986cdd8977 | |
parent | db7acb7d285c62549b3175ed7b7f57c5de34502a (diff) | |
download | meta-secure-core-616263c4e6e1a4157846ebdd0f2905bfd808e6be.tar.gz |
keyutils: update to 1.5.10 (#22)
* rebase patches:
- keyutils_fix_library_install.patch
- keyutils-remove-m32-m64.patch
* append '-Wall' to CFLAGS for fixing:
.../recipe-sysroot/usr/include/features.h:376:4: error: \
#warning _FORTIFY_SOURCE requires compiling with \
optimization (-O) [-Werror=cpp]
* cleanup alternative targets, the *keyring*.7 files have been
removed from keyutils 1.5.10.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
3 files changed, 57 insertions, 49 deletions
diff --git a/meta-integrity/recipes-support/keyutils/keyutils/keyutils-remove-m32-m64.patch b/meta-integrity/recipes-support/keyutils/keyutils/keyutils-remove-m32-m64.patch index a049fd2..120532b 100644 --- a/meta-integrity/recipes-support/keyutils/keyutils/keyutils-remove-m32-m64.patch +++ b/meta-integrity/recipes-support/keyutils/keyutils/keyutils-remove-m32-m64.patch | |||
@@ -1,19 +1,38 @@ | |||
1 | Index: keyutils-1.5.5/Makefile | 1 | From a47fef08f065003d417750abf1077387f755153f Mon Sep 17 00:00:00 2001 |
2 | =================================================================== | 2 | From: Wenzong Fan <wenzong.fan@windriver.com> |
3 | --- keyutils-1.5.5.orig/Makefile 2011-12-20 11:05:10.000000000 +0200 | 3 | Date: Tue, 26 Sep 2017 07:15:41 +0000 |
4 | +++ keyutils-1.5.5/Makefile 2011-12-20 11:06:27.000000000 +0200 | 4 | Subject: [PATCH] keyutils: fix cflags for arm, aarch64, mips, mips64, powerpc |
5 | @@ -58,12 +58,12 @@ | 5 | |
6 | LNS := ln -sf | 6 | Remove m32, m64 from the CFLAGS to fix error: |
7 | |||
8 | error: unrecognized command line option '-m32/-m64' | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
13 | --- | ||
14 | Makefile | 4 ++-- | ||
15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/Makefile b/Makefile | ||
18 | index d24cc44..230d4b6 100644 | ||
19 | --- a/Makefile | ||
20 | +++ b/Makefile | ||
21 | @@ -65,12 +65,12 @@ endif | ||
22 | BUILDFOR := $(shell file /usr/bin/make | sed -e 's!.*ELF \(32\|64\)-bit.*!\1!')-bit | ||
7 | 23 | ||
8 | ifeq ($(BUILDFOR),32-bit) | 24 | ifeq ($(BUILDFOR),32-bit) |
9 | -CFLAGS += -m32 | 25 | -CFLAGS += -m32 |
10 | +#CFLAGS += -m32 | 26 | +#CFLAGS += -m32 |
11 | LIBDIR := /usr/lib | 27 | LIBDIR := /lib |
12 | USRLIBDIR := /usr/lib | 28 | USRLIBDIR := /usr/lib |
13 | else | 29 | else |
14 | ifeq ($(BUILDFOR),64-bit) | 30 | ifeq ($(BUILDFOR),64-bit) |
15 | -CFLAGS += -m64 | 31 | -CFLAGS += -m64 |
16 | +#CFLAGS += -m64 | 32 | +#CFLAGS += -m64 |
17 | LIBDIR := /usr/lib | 33 | LIBDIR := /lib64 |
18 | USRLIBDIR := /usr/lib | 34 | USRLIBDIR := /usr/lib64 |
19 | endif | 35 | endif |
36 | -- | ||
37 | 2.11.0 | ||
38 | |||
diff --git a/meta-integrity/recipes-support/keyutils/keyutils/keyutils_fix_library_install.patch b/meta-integrity/recipes-support/keyutils/keyutils/keyutils_fix_library_install.patch index adf0643..8df21a0 100644 --- a/meta-integrity/recipes-support/keyutils/keyutils/keyutils_fix_library_install.patch +++ b/meta-integrity/recipes-support/keyutils/keyutils/keyutils_fix_library_install.patch | |||
@@ -1,30 +1,32 @@ | |||
1 | Index: keyutils-1.5.5/Makefile | 1 | From b0355cc205543ffd33752874295139d57c4fbc3e Mon Sep 17 00:00:00 2001 |
2 | =================================================================== | 2 | From: Wenzong Fan <wenzong.fan@windriver.com> |
3 | --- keyutils-1.5.5.orig/Makefile 2011-11-30 17:27:43.000000000 +0200 | 3 | Date: Tue, 26 Sep 2017 07:59:51 +0000 |
4 | +++ keyutils-1.5.5/Makefile 2011-12-21 16:05:53.000000000 +0200 | 4 | Subject: [PATCH] Subject: [PATCH] keyutils: use relative path for link |
5 | @@ -59,13 +59,13 @@ | 5 | |
6 | 6 | The absolute path of the symlink will be invalid | |
7 | ifeq ($(BUILDFOR),32-bit) | 7 | when populated in sysroot, so use relative path instead. |
8 | CFLAGS += -m32 | 8 | |
9 | -LIBDIR := /lib | 9 | Upstream-Status: Pending |
10 | +LIBDIR := /usr/lib | 10 | |
11 | USRLIBDIR := /usr/lib | 11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
12 | else | 12 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> |
13 | ifeq ($(BUILDFOR),64-bit) | 13 | --- |
14 | CFLAGS += -m64 | 14 | Makefile | 2 +- |
15 | -LIBDIR := /lib64 | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
16 | -USRLIBDIR := /usr/lib64 | 16 | |
17 | +LIBDIR := /usr/lib | 17 | diff --git a/Makefile b/Makefile |
18 | +USRLIBDIR := /usr/lib | 18 | index 824bbbf..8ce3a13 100644 |
19 | endif | 19 | --- a/Makefile |
20 | endif | 20 | +++ b/Makefile |
21 | 21 | @@ -167,7 +167,7 @@ ifeq ($(NO_SOLIB),0) | |
22 | @@ -152,7 +152,7 @@ | ||
23 | $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) | 22 | $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) |
24 | $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME) | 23 | $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME) |
25 | mkdir -p $(DESTDIR)$(USRLIBDIR) | 24 | mkdir -p $(DESTDIR)$(USRLIBDIR) |
26 | - $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB) | 25 | - $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB) |
27 | + $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB) | 26 | + $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB) |
27 | endif | ||
28 | $(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl | 28 | $(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl |
29 | $(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key | 29 | $(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key |
30 | $(INSTALL) -D request-key-debug.sh $(DESTDIR)$(SHAREDIR)/request-key-debug.sh | 30 | -- |
31 | 2.11.0 | ||
32 | |||
diff --git a/meta-integrity/recipes-support/keyutils/keyutils_git.bb b/meta-integrity/recipes-support/keyutils/keyutils_git.bb index 325bb7c..f5fcd93 100644 --- a/meta-integrity/recipes-support/keyutils/keyutils_git.bb +++ b/meta-integrity/recipes-support/keyutils/keyutils_git.bb | |||
@@ -8,7 +8,7 @@ SECTION = "base" | |||
8 | LICENSE = "GPLv2" | 8 | LICENSE = "GPLv2" |
9 | LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45" | 9 | LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45" |
10 | 10 | ||
11 | PV = "1.5.9+git${SRCPV}" | 11 | PV = "1.5.10+git${SRCPV}" |
12 | 12 | ||
13 | SRC_URI = "\ | 13 | SRC_URI = "\ |
14 | git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git \ | 14 | git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git \ |
@@ -22,12 +22,14 @@ SRC_URI_append_mips64 = " file://keyutils-remove-m32-m64.patch" | |||
22 | SRC_URI_append_x86 = " file://keyutils_fix_x86_cflags.patch" | 22 | SRC_URI_append_x86 = " file://keyutils_fix_x86_cflags.patch" |
23 | SRC_URI_append_x86-64 = " file://keyutils_fix_x86-64_cflags.patch" | 23 | SRC_URI_append_x86-64 = " file://keyutils_fix_x86-64_cflags.patch" |
24 | SRC_URI_append_powerpc = "file://keyutils-remove-m32-m64.patch" | 24 | SRC_URI_append_powerpc = "file://keyutils-remove-m32-m64.patch" |
25 | SRCREV = "9209a0c8fd63afc59f644e078b40cec531409c30" | 25 | SRCREV = "308119c61e94bcc4c710404b9f679e3bb8316713" |
26 | 26 | ||
27 | S = "${WORKDIR}/git" | 27 | S = "${WORKDIR}/git" |
28 | 28 | ||
29 | inherit autotools-brokensep | 29 | inherit autotools-brokensep |
30 | 30 | ||
31 | EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall'" | ||
32 | |||
31 | INSTALL_FLAGS = "\ | 33 | INSTALL_FLAGS = "\ |
32 | LIBDIR=${libdir} \ | 34 | LIBDIR=${libdir} \ |
33 | USRLIBDIR=${libdir} \ | 35 | USRLIBDIR=${libdir} \ |
@@ -47,18 +49,3 @@ do_install() { | |||
47 | FILES_${PN} += "${datadir}/request-key-debug.sh" | 49 | FILES_${PN} += "${datadir}/request-key-debug.sh" |
48 | 50 | ||
49 | BBCLASSEXTEND = "native nativesdk" | 51 | BBCLASSEXTEND = "native nativesdk" |
50 | |||
51 | inherit update-alternatives | ||
52 | |||
53 | ALTERNATIVE_PRIORITY = "200" | ||
54 | ALTERNATIVE_${PN}-doc = "keyrings.7 persistent-keyring.7 process-keyring.7 \ | ||
55 | session-keyring.7 thread-keyring.7 user-keyring.7 \ | ||
56 | user-session-keyring.7 \ | ||
57 | " | ||
58 | ALTERNATIVE_LINK_NAME[keyrings.7] = "${mandir}/man7/keyrings.7" | ||
59 | ALTERNATIVE_LINK_NAME[persistent-keyring.7] = "${mandir}/man7/persistent-keyring.7" | ||
60 | ALTERNATIVE_LINK_NAME[process-keyring.7] = "${mandir}/man7/process-keyring.7" | ||
61 | ALTERNATIVE_LINK_NAME[session-keyring.7] = "${mandir}/man7/session-keyring.7" | ||
62 | ALTERNATIVE_LINK_NAME[thread-keyring.7] = "${mandir}/man7/thread-keyring.7" | ||
63 | ALTERNATIVE_LINK_NAME[user-keyring.7] = "${mandir}/man7/user-keyring.7" | ||
64 | ALTERNATIVE_LINK_NAME[user-session-keyring.7] = "${mandir}/man7/user-session-keyring.7" | ||