diff options
| -rw-r--r-- | meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch | 51 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/samba/samba_4.18.8.bb | 5 |
2 files changed, 2 insertions, 54 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch b/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch deleted file mode 100644 index e6e8784338..0000000000 --- a/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | From 14f8ee7cd1318567b00e52217d57f0a528fd2cf7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Changqing Li <changqing.li@windriver.com> | ||
| 3 | Date: Wed, 25 Jul 2018 09:55:25 +0800 | ||
| 4 | Subject: [PATCH] samba: cmocka.h: fix musl libc conflicting types error | ||
| 5 | |||
| 6 | Fix build on qemumips64(el) | ||
| 7 | |||
| 8 | taken from: | ||
| 9 | [PATCH] libldb: fix musl libc conflicting types error | ||
| 10 | |||
| 11 | /third_party/cmocka/cmocka.h:126:28: error: conflicting types for 'uintptr_t' | ||
| 12 | typedef unsigned int uintptr_t; | ||
| 13 | ^~~~~~~~~ | ||
| 14 | use __DEFINED_uintptr_t in alltypes.h to check if uintptr already defined | ||
| 15 | |||
| 16 | Upstream-Status: Pending | ||
| 17 | |||
| 18 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 19 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | ||
| 20 | --- | ||
| 21 | third_party/cmocka/cmocka.h | 7 +++---- | ||
| 22 | 1 file changed, 3 insertions(+), 4 deletions(-) | ||
| 23 | |||
| 24 | diff --git a/third_party/cmocka/cmocka.h b/third_party/cmocka/cmocka.h | ||
| 25 | index e6861c8..238201d 100644 | ||
| 26 | --- a/third_party/cmocka/cmocka.h | ||
| 27 | +++ b/third_party/cmocka/cmocka.h | ||
| 28 | @@ -111,7 +111,7 @@ typedef uintmax_t LargestIntegralType; | ||
| 29 | ((LargestIntegralType)(value)) | ||
| 30 | |||
| 31 | /* Smallest integral type capable of holding a pointer. */ | ||
| 32 | -#if !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED) | ||
| 33 | +#if !defined(__DEFINED_uintptr_t) | ||
| 34 | # if defined(_WIN32) | ||
| 35 | /* WIN32 is an ILP32 platform */ | ||
| 36 | typedef unsigned int uintptr_t; | ||
| 37 | @@ -135,9 +135,8 @@ typedef uintmax_t LargestIntegralType; | ||
| 38 | # endif /* __WORDSIZE */ | ||
| 39 | # endif /* _WIN32 */ | ||
| 40 | |||
| 41 | -# define _UINTPTR_T | ||
| 42 | -# define _UINTPTR_T_DEFINED | ||
| 43 | -#endif /* !defined(_UINTPTR_T) || !defined(_UINTPTR_T_DEFINED) */ | ||
| 44 | +# define __DEFINED_uintptr_t | ||
| 45 | +#endif /* !defined(__DEFINED_uintptr_t) */ | ||
| 46 | |||
| 47 | /* Perform an unsigned cast to uintptr_t. */ | ||
| 48 | #define cast_to_pointer_integral_type(value) \ | ||
| 49 | -- | ||
| 50 | 2.25.1 | ||
| 51 | |||
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.18.8.bb b/meta-networking/recipes-connectivity/samba/samba_4.18.8.bb index 1ded9fe5ee..dc9bc1a7f9 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.18.8.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.18.8.bb | |||
| @@ -29,7 +29,6 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ | |||
| 29 | SRC_URI:append:libc-musl = " \ | 29 | SRC_URI:append:libc-musl = " \ |
| 30 | file://samba-pam.patch \ | 30 | file://samba-pam.patch \ |
| 31 | file://samba-4.3.9-remove-getpwent_r.patch \ | 31 | file://samba-4.3.9-remove-getpwent_r.patch \ |
| 32 | file://cmocka-uintptr_t.patch \ | ||
| 33 | " | 32 | " |
| 34 | 33 | ||
| 35 | SRC_URI[sha256sum] = "4fb87bceaeb01d832a59046c197a044b7e8e8000581548b5d577a6cda03344d1" | 34 | SRC_URI[sha256sum] = "4fb87bceaeb01d832a59046c197a044b7e8e8000581548b5d577a6cda03344d1" |
| @@ -43,7 +42,7 @@ CVE_STATUS[CVE-2011-2411] = "not-applicable-platform: vulnerable only on HP NonS | |||
| 43 | # remove default added RDEPENDS on perl | 42 | # remove default added RDEPENDS on perl |
| 44 | RDEPENDS:${PN}:remove = "perl" | 43 | RDEPENDS:${PN}:remove = "perl" |
| 45 | 44 | ||
| 46 | DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb libaio libpam libtasn1 jansson libparse-yapp-perl-native gnutls" | 45 | DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb libaio libpam libtasn1 libtasn1-native jansson libparse-yapp-perl-native gnutls cmocka" |
| 47 | 46 | ||
| 48 | inherit features_check | 47 | inherit features_check |
| 49 | REQUIRED_DISTRO_FEATURES = "pam" | 48 | REQUIRED_DISTRO_FEATURES = "pam" |
| @@ -105,7 +104,7 @@ SAMBA4_MODULES="${SAMBA4_IDMAP_MODULES},${SAMBA4_PDB_MODULES},${SAMBA4_AUTH_MODU | |||
| 105 | # .so files so there will not be a conflict. This is not done consistantly, so be very careful | 104 | # .so files so there will not be a conflict. This is not done consistantly, so be very careful |
| 106 | # when adding to this list. | 105 | # when adding to this list. |
| 107 | # | 106 | # |
| 108 | SAMBA4_LIBS="heimdal,cmocka,NONE" | 107 | SAMBA4_LIBS="heimdal,NONE" |
| 109 | 108 | ||
| 110 | EXTRA_OECONF += "--enable-fhs \ | 109 | EXTRA_OECONF += "--enable-fhs \ |
| 111 | --with-piddir=/run \ | 110 | --with-piddir=/run \ |
