diff options
author | Andrej Valek <andrej.valek@siemens.com> | 2018-04-12 09:08:57 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-04 13:28:04 +0100 |
commit | 776414fcf9e5ae237f04a7ca8365415d62da5580 (patch) | |
tree | 4943805bfb5b2e61a6113afe3cd98e345603e78c | |
parent | 6cc503ed80850d6a3ec045da1a783ccda237e506 (diff) | |
download | poky-776414fcf9e5ae237f04a7ca8365415d62da5580.tar.gz |
dropbear: update to 2018.76
- update dropbear to version 2018.76
- refresh and drop obsolete patches
- add option to use localoptions.h header file
- do not use harden stuff, which leads to QA warning
(From OE-Core rev: ec050b666ec3684918fd9dc564d2dce9a8d6a8ef)
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 files changed, 92 insertions, 265 deletions
diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc index b6b436c584..16ac6442f8 100644 --- a/meta/recipes-core/dropbear/dropbear.inc +++ b/meta/recipes-core/dropbear/dropbear.inc | |||
@@ -14,10 +14,8 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | |||
14 | 14 | ||
15 | SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \ | 15 | SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \ |
16 | file://0001-urandom-xauth-changes-to-options.h.patch \ | 16 | file://0001-urandom-xauth-changes-to-options.h.patch \ |
17 | file://0003-configure.patch \ | ||
18 | file://0004-fix-2kb-keys.patch \ | 17 | file://0004-fix-2kb-keys.patch \ |
19 | file://0007-dropbear-fix-for-x32-abi.patch \ | 18 | file://0007-fix-localoptions-search-path.patch \ |
20 | file://fix-libtomcrypt-libtommath-ordering.patch \ | ||
21 | file://init \ | 19 | file://init \ |
22 | file://dropbearkey.service \ | 20 | file://dropbearkey.service \ |
23 | file://dropbear@.service \ | 21 | file://dropbear@.service \ |
@@ -52,6 +50,10 @@ PACKAGECONFIG[system-libtom] = "--disable-bundled-libtom,--enable-bundled-libtom | |||
52 | EXTRA_OECONF += "\ | 50 | EXTRA_OECONF += "\ |
53 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" | 51 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" |
54 | 52 | ||
53 | # This option appends to CFLAGS and LDFLAGS from OE | ||
54 | # This is causing [textrel] QA warning | ||
55 | EXTRA_OECONF += "--disable-harden" | ||
56 | |||
55 | do_install() { | 57 | do_install() { |
56 | install -d ${D}${sysconfdir} \ | 58 | install -d ${D}${sysconfdir} \ |
57 | ${D}${sysconfdir}/init.d \ | 59 | ${D}${sysconfdir}/init.d \ |
diff --git a/meta/recipes-core/dropbear/dropbear/0001-urandom-xauth-changes-to-options.h.patch b/meta/recipes-core/dropbear/dropbear/0001-urandom-xauth-changes-to-options.h.patch index dc9d5782e8..684641dcbd 100644 --- a/meta/recipes-core/dropbear/dropbear/0001-urandom-xauth-changes-to-options.h.patch +++ b/meta/recipes-core/dropbear/dropbear/0001-urandom-xauth-changes-to-options.h.patch | |||
@@ -2,20 +2,20 @@ Subject: [PATCH 1/6] urandom-xauth-changes-to-options.h | |||
2 | 2 | ||
3 | Upstream-Status: Inappropriate [configuration] | 3 | Upstream-Status: Inappropriate [configuration] |
4 | --- | 4 | --- |
5 | options.h | 2 +- | 5 | default_options.h | 2 +- |
6 | 1 file changed, 1 insertion(+), 1 deletion(-) | 6 | 1 file changed, 1 insertion(+), 1 deletion(-) |
7 | 7 | ||
8 | diff --git a/options.h b/options.h | 8 | diff --git a/default_options.h b/default_options.h |
9 | index 7d06322..71a21c2 100644 | 9 | index 3b75eb8..1fd8082 100644 |
10 | --- a/options.h | 10 | --- a/default_options.h |
11 | +++ b/options.h | 11 | +++ b/default_options.h |
12 | @@ -247,7 +247,7 @@ much traffic. */ | 12 | @@ -243,7 +243,7 @@ Homedir is prepended unless path begins with / */ |
13 | |||
13 | /* The command to invoke for xauth when using X11 forwarding. | 14 | /* The command to invoke for xauth when using X11 forwarding. |
14 | * "-q" for quiet */ | 15 | * "-q" for quiet */ |
15 | #ifndef XAUTH_COMMAND | ||
16 | -#define XAUTH_COMMAND "/usr/bin/xauth -q" | 16 | -#define XAUTH_COMMAND "/usr/bin/xauth -q" |
17 | +#define XAUTH_COMMAND "xauth -q" | 17 | +#define XAUTH_COMMAND "xauth -q" |
18 | #endif | 18 | |
19 | 19 | ||
20 | /* if you want to enable running an sftp server (such as the one included with | 20 | /* if you want to enable running an sftp server (such as the one included with |
21 | -- | 21 | -- |
diff --git a/meta/recipes-core/dropbear/dropbear/0003-configure.patch b/meta/recipes-core/dropbear/dropbear/0003-configure.patch deleted file mode 100644 index 8469a50eff..0000000000 --- a/meta/recipes-core/dropbear/dropbear/0003-configure.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From 58dd24a80ca0f400d0761afd9ce2b7f684fc9125 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> | ||
3 | Date: Thu, 25 Apr 2013 00:27:25 +0200 | ||
4 | Subject: [PATCH] configure: add a variable to allow openpty check to be cached | ||
5 | |||
6 | Upstream-Status: Submitted [ https://github.com/mkj/dropbear/pull/48 ] | ||
7 | |||
8 | Signed-off-by: Dengke Du <dengke.du@windriver.com> | ||
9 | --- | ||
10 | configure.ac | 11 ++++++++--- | ||
11 | 1 file changed, 8 insertions(+), 3 deletions(-) | ||
12 | |||
13 | diff --git a/configure.ac b/configure.ac | ||
14 | index 893b904..245408d 100644 | ||
15 | --- a/configure.ac | ||
16 | +++ b/configure.ac | ||
17 | @@ -177,15 +177,20 @@ AC_ARG_ENABLE(openpty, | ||
18 | AC_MSG_NOTICE(Not using openpty) | ||
19 | else | ||
20 | AC_MSG_NOTICE(Using openpty if available) | ||
21 | - AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)]) | ||
22 | + AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes]) | ||
23 | fi | ||
24 | ], | ||
25 | [ | ||
26 | AC_MSG_NOTICE(Using openpty if available) | ||
27 | - AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)]) | ||
28 | + AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes]) | ||
29 | ] | ||
30 | ) | ||
31 | - | ||
32 | + | ||
33 | +if test "x$dropbear_cv_func_have_openpty" = "xyes"; then | ||
34 | + AC_DEFINE(HAVE_OPENPTY,,Have openpty() function) | ||
35 | + no_ptc_check=yes | ||
36 | + no_ptmx_check=yes | ||
37 | +fi | ||
38 | |||
39 | AC_ARG_ENABLE(syslog, | ||
40 | [ --disable-syslog Don't include syslog support], | ||
41 | -- | ||
42 | 2.8.1 | ||
43 | |||
diff --git a/meta/recipes-core/dropbear/dropbear/0005-dropbear-enable-pam.patch b/meta/recipes-core/dropbear/dropbear/0005-dropbear-enable-pam.patch index 539cb12e91..857681520c 100644 --- a/meta/recipes-core/dropbear/dropbear/0005-dropbear-enable-pam.patch +++ b/meta/recipes-core/dropbear/dropbear/0005-dropbear-enable-pam.patch | |||
@@ -3,7 +3,7 @@ From: Jussi Kukkonen <jussi.kukkonen@intel.com> | |||
3 | Date: Wed, 2 Dec 2015 11:36:02 +0200 | 3 | Date: Wed, 2 Dec 2015 11:36:02 +0200 |
4 | Subject: Enable pam | 4 | Subject: Enable pam |
5 | 5 | ||
6 | We need modify file option.h besides enabling pam in | 6 | We need modify file default_options.h besides enabling pam in |
7 | configure if we want dropbear to support pam. | 7 | configure if we want dropbear to support pam. |
8 | 8 | ||
9 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
@@ -11,26 +11,32 @@ Upstream-Status: Pending | |||
11 | Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> | 11 | Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> |
12 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | 12 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
13 | --- | 13 | --- |
14 | options.h | 4 ++-- | 14 | default_options.h | 4 ++-- |
15 | 1 file changed, 2 insertions(+), 2 deletions(-) | 15 | 1 file changed, 2 insertions(+), 2 deletions(-) |
16 | 16 | ||
17 | diff --git a/options.h b/options.h | 17 | diff --git a/default_options.h b/default_options.h |
18 | index 94261f6..90bfe2f 100644 | 18 | index 3b75eb8..8617cd0 100644 |
19 | --- a/options.h | 19 | --- a/default_options.h |
20 | +++ b/options.h | 20 | +++ b/default_options.h |
21 | @@ -208,10 +208,10 @@ If you test it please contact the Dropbear author */ | 21 | @@ -179,7 +179,7 @@ group1 in Dropbear server too */ |
22 | 22 | ||
23 | /* This requires crypt() */ | 23 | /* Authentication Types - at least one required. |
24 | #ifdef HAVE_CRYPT | 24 | RFC Draft requires pubkey auth, and recommends password */ |
25 | -#define ENABLE_SVR_PASSWORD_AUTH | 25 | -#define DROPBEAR_SVR_PASSWORD_AUTH 1 |
26 | +/*#define ENABLE_SVR_PASSWORD_AUTH*/ | 26 | +#define DROPBEAR_SVR_PASSWORD_AUTH 0 |
27 | #endif | 27 | |
28 | /* PAM requires ./configure --enable-pam */ | 28 | /* Note: PAM auth is quite simple and only works for PAM modules which just do |
29 | -/*#define ENABLE_SVR_PAM_AUTH */ | 29 | * a simple "Login: " "Password: " (you can edit the strings in svr-authpam.c). |
30 | +#define ENABLE_SVR_PAM_AUTH | 30 | @@ -187,7 +187,7 @@ group1 in Dropbear server too */ |
31 | #define ENABLE_SVR_PUBKEY_AUTH | 31 | * but there's an interface via a PAM module. It won't work for more complex |
32 | * PAM challenge/response. | ||
33 | * You can't enable both PASSWORD and PAM. */ | ||
34 | -#define DROPBEAR_SVR_PAM_AUTH 0 | ||
35 | +#define DROPBEAR_SVR_PAM_AUTH 1 | ||
36 | |||
37 | /* ~/.ssh/authorized_keys authentication */ | ||
38 | #define DROPBEAR_SVR_PUBKEY_AUTH 1 | ||
32 | 39 | ||
33 | /* Whether to take public key options in | ||
34 | -- | 40 | -- |
35 | 2.1.4 | 41 | 2.1.4 |
36 | 42 | ||
diff --git a/meta/recipes-core/dropbear/dropbear/0007-dropbear-fix-for-x32-abi.patch b/meta/recipes-core/dropbear/dropbear/0007-dropbear-fix-for-x32-abi.patch deleted file mode 100644 index 60b302b5cd..0000000000 --- a/meta/recipes-core/dropbear/dropbear/0007-dropbear-fix-for-x32-abi.patch +++ /dev/null | |||
@@ -1,140 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | The dropbearkey utility built in x32 abi format, when generating ssh | ||
4 | keys, was getting lost in the infinite loop. | ||
5 | |||
6 | This patch fixes the issue by fixing types of variables and | ||
7 | parameters of functions used in the code, which were getting | ||
8 | undesired size, when compiled with the x32 abi toolchain. | ||
9 | |||
10 | 2013/05/23 | ||
11 | Received this fix from H J Lu. | ||
12 | |||
13 | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
14 | |||
15 | # HG changeset patch | ||
16 | # User H.J. Lu <hjl.tools@gmail.com> | ||
17 | # Date 1369344079 25200 | ||
18 | # Node ID a10a1c46b857cc8a3923c3bb6d1504aa25b6052f | ||
19 | # Parent e76614145aea67f66e4a4257685c771efba21aa1 | ||
20 | Typdef mp_digit to unsigned long long for MP_64BIT | ||
21 | |||
22 | When GCC is used with MP_64BIT, we should typedef mp_digit to unsigned | ||
23 | long long instead of unsigned long since for x32, unsigned long is | ||
24 | 32-bit and unsigned long long is 64-bit and it is safe to use unsigned | ||
25 | long long for 64-bit integer with GCC. | ||
26 | |||
27 | diff -r e76614145aea -r a10a1c46b857 libtommath/tommath.h | ||
28 | --- a/libtommath/tommath.h Thu Apr 18 22:57:47 2013 +0800 | ||
29 | +++ b/libtommath/tommath.h Thu May 23 14:21:19 2013 -0700 | ||
30 | @@ -73,7 +73,7 @@ | ||
31 | typedef signed long long long64; | ||
32 | #endif | ||
33 | |||
34 | - typedef unsigned long mp_digit; | ||
35 | + typedef unsigned long long mp_digit; | ||
36 | typedef unsigned long mp_word __attribute__ ((mode(TI))); | ||
37 | |||
38 | #define DIGIT_BIT 60 | ||
39 | # HG changeset patch | ||
40 | # User H.J. Lu <hjl.tools@gmail.com> | ||
41 | # Date 1369344241 25200 | ||
42 | # Node ID c7555a4cb7ded3a88409ba85f4027baa7af5f536 | ||
43 | # Parent a10a1c46b857cc8a3923c3bb6d1504aa25b6052f | ||
44 | Cast to mp_digit when updating *rho | ||
45 | |||
46 | There is | ||
47 | |||
48 | int | ||
49 | mp_montgomery_setup (mp_int * n, mp_digit * rho) | ||
50 | |||
51 | We should cast to mp_digit instead of unsigned long when updating | ||
52 | *rho since mp_digit may be unsigned long long and unsigned long long | ||
53 | may be different from unsigned long, like in x32. | ||
54 | |||
55 | diff -r a10a1c46b857 -r c7555a4cb7de libtommath/bn_mp_montgomery_setup.c | ||
56 | --- a/libtommath/bn_mp_montgomery_setup.c Thu May 23 14:21:19 2013 -0700 | ||
57 | +++ b/libtommath/bn_mp_montgomery_setup.c Thu May 23 14:24:01 2013 -0700 | ||
58 | @@ -48,7 +48,7 @@ | ||
59 | #endif | ||
60 | |||
61 | /* rho = -1/m mod b */ | ||
62 | - *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; | ||
63 | + *rho = (mp_digit)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; | ||
64 | |||
65 | return MP_OKAY; | ||
66 | } | ||
67 | # HG changeset patch | ||
68 | # User H.J. Lu <hjl.tools@gmail.com> | ||
69 | # Date 1369344541 25200 | ||
70 | # Node ID 7c656e7071a6412688b2f30a529a9afac6c7bf5a | ||
71 | # Parent c7555a4cb7ded3a88409ba85f4027baa7af5f536 | ||
72 | Define LTC_FAST_TYPE to unsigned long long for __x86_64__ | ||
73 | |||
74 | We should define LTC_FAST_TYPE to unsigned long long instead of unsigned | ||
75 | long if __x86_64__ to support x32 where unsigned long long is 64-bit | ||
76 | and unsigned long is 32-bit. | ||
77 | |||
78 | diff -r c7555a4cb7de -r 7c656e7071a6 libtomcrypt/src/headers/tomcrypt_cfg.h | ||
79 | --- a/libtomcrypt/src/headers/tomcrypt_cfg.h Thu May 23 14:24:01 2013 -0700 | ||
80 | +++ b/libtomcrypt/src/headers/tomcrypt_cfg.h Thu May 23 14:29:01 2013 -0700 | ||
81 | @@ -74,7 +74,7 @@ | ||
82 | #define ENDIAN_LITTLE | ||
83 | #define ENDIAN_64BITWORD | ||
84 | #define LTC_FAST | ||
85 | - #define LTC_FAST_TYPE unsigned long | ||
86 | + #define LTC_FAST_TYPE unsigned long long | ||
87 | #endif | ||
88 | |||
89 | /* detect PPC32 */ | ||
90 | # HG changeset patch | ||
91 | # User H.J. Lu <hjl.tools@gmail.com> | ||
92 | # Date 1369344730 25200 | ||
93 | # Node ID a7d4690158fae4ede2c4e5b56233e83730bf38ee | ||
94 | # Parent 7c656e7071a6412688b2f30a529a9afac6c7bf5a | ||
95 | Use unsigned long long aas unsigned 64-bit integer for x86-64 GCC | ||
96 | |||
97 | We should use unsigned long long instead of unsigned long as unsigned | ||
98 | 64-bit integer for x86-64 GCC to support x32 where unsigned long is | ||
99 | 32-bit. | ||
100 | |||
101 | diff -r 7c656e7071a6 -r a7d4690158fa libtomcrypt/src/headers/tomcrypt_macros.h | ||
102 | --- a/libtomcrypt/src/headers/tomcrypt_macros.h Thu May 23 14:29:01 2013 -0700 | ||
103 | +++ b/libtomcrypt/src/headers/tomcrypt_macros.h Thu May 23 14:32:10 2013 -0700 | ||
104 | @@ -343,7 +343,7 @@ | ||
105 | /* 64-bit Rotates */ | ||
106 | #if !defined(__STRICT_ANSI__) && defined(__GNUC__) && defined(__x86_64__) && !defined(LTC_NO_ASM) | ||
107 | |||
108 | -static inline unsigned long ROL64(unsigned long word, int i) | ||
109 | +static inline unsigned long long ROL64(unsigned long long word, int i) | ||
110 | { | ||
111 | asm("rolq %%cl,%0" | ||
112 | :"=r" (word) | ||
113 | @@ -351,7 +351,7 @@ | ||
114 | return word; | ||
115 | } | ||
116 | |||
117 | -static inline unsigned long ROR64(unsigned long word, int i) | ||
118 | +static inline unsigned long long ROR64(unsigned long long word, int i) | ||
119 | { | ||
120 | asm("rorq %%cl,%0" | ||
121 | :"=r" (word) | ||
122 | @@ -361,7 +361,7 @@ | ||
123 | |||
124 | #ifndef LTC_NO_ROLC | ||
125 | |||
126 | -static inline unsigned long ROL64c(unsigned long word, const int i) | ||
127 | +static inline unsigned long long ROL64c(unsigned long long word, const int i) | ||
128 | { | ||
129 | asm("rolq %2,%0" | ||
130 | :"=r" (word) | ||
131 | @@ -369,7 +369,7 @@ | ||
132 | return word; | ||
133 | } | ||
134 | |||
135 | -static inline unsigned long ROR64c(unsigned long word, const int i) | ||
136 | +static inline unsigned long long ROR64c(unsigned long long word, const int i) | ||
137 | { | ||
138 | asm("rorq %2,%0" | ||
139 | :"=r" (word) | ||
140 | |||
diff --git a/meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch b/meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch new file mode 100644 index 0000000000..02a6cf9268 --- /dev/null +++ b/meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From a63288c4d203850110a5a72d27fa0d7202ceadbc Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrej Valek <andrej.valek@siemens.com> | ||
3 | Date: Tue, 10 Apr 2018 12:30:09 +0200 | ||
4 | Subject: [PATCH] fix localoptions.h searching in out of tree building | ||
5 | |||
6 | When dropbear is build out of tree, is necessary to search for localoptions | ||
7 | header file is source directory. | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/mkj/dropbear/pull/62] | ||
10 | |||
11 | Signed-off-by: Andrej Valek <andrej.valek@siemens.com> | ||
12 | --- | ||
13 | Makefile.in | 8 ++++---- | ||
14 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
15 | |||
16 | diff --git a/Makefile.in b/Makefile.in | ||
17 | index e7d52a2..a615896 100644 | ||
18 | --- a/Makefile.in | ||
19 | +++ b/Makefile.in | ||
20 | @@ -17,6 +17,9 @@ STATIC_LTM=libtommath/libtommath.a | ||
21 | |||
22 | LIBTOM_LIBS=@LIBTOM_LIBS@ | ||
23 | |||
24 | +VPATH=@srcdir@ | ||
25 | +srcdir=@srcdir@ | ||
26 | + | ||
27 | ifeq (@BUNDLED_LIBTOM@, 1) | ||
28 | LIBTOM_DEPS=$(STATIC_LTC) $(STATIC_LTM) | ||
29 | LIBTOM_CLEAN=ltc-clean ltm-clean | ||
30 | @@ -25,7 +28,7 @@ LIBTOM_LIBS=$(STATIC_LTC) $(STATIC_LTM) | ||
31 | endif | ||
32 | |||
33 | OPTION_HEADERS = default_options_guard.h sysoptions.h | ||
34 | -ifneq ($(wildcard localoptions.h),) | ||
35 | +ifneq ($(wildcard $(srcdir)/localoptions.h),) | ||
36 | CFLAGS+=-DLOCALOPTIONS_H_EXISTS | ||
37 | OPTION_HEADERS += localoptions.h | ||
38 | endif | ||
39 | @@ -65,9 +68,6 @@ dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS) | ||
40 | dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS) | ||
41 | scpobjs=$(SCPOBJS) | ||
42 | |||
43 | -VPATH=@srcdir@ | ||
44 | -srcdir=@srcdir@ | ||
45 | - | ||
46 | prefix=@prefix@ | ||
47 | exec_prefix=@exec_prefix@ | ||
48 | datarootdir = @datarootdir@ | ||
49 | -- | ||
50 | 2.11.0 | ||
51 | |||
diff --git a/meta/recipes-core/dropbear/dropbear/fix-libtomcrypt-libtommath-ordering.patch b/meta/recipes-core/dropbear/dropbear/fix-libtomcrypt-libtommath-ordering.patch deleted file mode 100644 index 2b05e1893d..0000000000 --- a/meta/recipes-core/dropbear/dropbear/fix-libtomcrypt-libtommath-ordering.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | From f37fa9a41f248fa41dd74a41c66cb41a291c03d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andre McCurdy <armccurdy@gmail.com> | ||
3 | Date: Fri, 16 Sep 2016 12:18:23 -0700 | ||
4 | Subject: [PATCH] fix libtomcrypt/libtommath ordering | ||
5 | |||
6 | To prevent build failures when using system libtom libraries and | ||
7 | linking with --as-needed, LIBTOM_LIBS should be in the order | ||
8 | -ltomcrypt -ltommath, not the other way around, ie libs should be | ||
9 | prepended to LIBTOM_LIBS as they are found, not appended. | ||
10 | |||
11 | Note that LIBTOM_LIBS is not used when linking with the bundled | ||
12 | libtom libs. | ||
13 | |||
14 | Upstream-Status: Backport [ https://github.com/mkj/dropbear/commit/f9e6bc2aecab0f4b5b529e07a92cc63c8a66cd4b ] | ||
15 | |||
16 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> | ||
17 | Signed-off-by: Dengke Du <dengke.du@windriver.com> | ||
18 | --- | ||
19 | configure.ac | 8 ++++---- | ||
20 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
21 | |||
22 | diff --git a/configure.ac b/configure.ac | ||
23 | index 245408d..d624853 100644 | ||
24 | --- a/configure.ac | ||
25 | +++ b/configure.ac | ||
26 | @@ -393,16 +393,16 @@ AC_ARG_ENABLE(bundled-libtom, | ||
27 | AC_MSG_NOTICE(Forcing bundled libtom*) | ||
28 | else | ||
29 | BUNDLED_LIBTOM=0 | ||
30 | - AC_CHECK_LIB(tommath, mp_exptmod, LIBTOM_LIBS="$LIBTOM_LIBS -ltommath", | ||
31 | + AC_CHECK_LIB(tommath, mp_exptmod, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS", | ||
32 | [AC_MSG_ERROR([Missing system libtommath and --disable-bundled-libtom was specified])] ) | ||
33 | - AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="$LIBTOM_LIBS -ltomcrypt", | ||
34 | + AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", | ||
35 | [AC_MSG_ERROR([Missing system libtomcrypt and --disable-bundled-libtom was specified])] ) | ||
36 | fi | ||
37 | ], | ||
38 | [ | ||
39 | BUNDLED_LIBTOM=0 | ||
40 | - AC_CHECK_LIB(tommath, mp_exptmod, LIBTOM_LIBS="$LIBTOM_LIBS -ltommath", BUNDLED_LIBTOM=1) | ||
41 | - AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="$LIBTOM_LIBS -ltomcrypt", BUNDLED_LIBTOM=1) | ||
42 | + AC_CHECK_LIB(tommath, mp_exptmod, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS", BUNDLED_LIBTOM=1) | ||
43 | + AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", BUNDLED_LIBTOM=1) | ||
44 | ] | ||
45 | ) | ||
46 | |||
47 | -- | ||
48 | 2.8.1 | ||
49 | |||
diff --git a/meta/recipes-core/dropbear/dropbear_2017.75.bb b/meta/recipes-core/dropbear/dropbear_2017.75.bb deleted file mode 100644 index cfb0d199b3..0000000000 --- a/meta/recipes-core/dropbear/dropbear_2017.75.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require dropbear.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "e57e9b9d25705dcb073ba15c416424fd" | ||
4 | SRC_URI[sha256sum] = "6cbc1dcb1c9709d226dff669e5604172a18cf5dbf9a201474d5618ae4465098c" | ||
5 | |||
diff --git a/meta/recipes-core/dropbear/dropbear_2018.76.bb b/meta/recipes-core/dropbear/dropbear_2018.76.bb new file mode 100644 index 0000000000..36a58d5cef --- /dev/null +++ b/meta/recipes-core/dropbear/dropbear_2018.76.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require dropbear.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "c3912f7fcdcc57c99937e4a79480d2c2" | ||
4 | SRC_URI[sha256sum] = "f2fb9167eca8cf93456a5fc1d4faf709902a3ab70dd44e352f3acbc3ffdaea65" | ||
5 | |||