diff options
3 files changed, 36 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba/glibc_only.patch b/meta-networking/recipes-connectivity/samba/samba/glibc_only.patch new file mode 100644 index 0000000000..894bc8bb2c --- /dev/null +++ b/meta-networking/recipes-connectivity/samba/samba/glibc_only.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Index: samba-4.6.2/ctdb/tests/src/test_mutex_raw.c | ||
2 | =================================================================== | ||
3 | --- samba-4.6.2.orig/ctdb/tests/src/test_mutex_raw.c | ||
4 | +++ samba-4.6.2/ctdb/tests/src/test_mutex_raw.c | ||
5 | @@ -166,8 +166,10 @@ int main(int argc, const char **argv) | ||
6 | if (ret == 0) { | ||
7 | pthread_mutex_unlock(mutex); | ||
8 | } | ||
9 | +#ifdef __GLIBC__ | ||
10 | } else if (ret == EBUSY) { | ||
11 | printf("pid=%u\n", mutex->__data.__owner); | ||
12 | +#endif | ||
13 | } else if (ret == 0) { | ||
14 | pthread_mutex_unlock(mutex); | ||
15 | } | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba/netdb_defines.patch b/meta-networking/recipes-connectivity/samba/samba/netdb_defines.patch new file mode 100644 index 0000000000..eb06866f46 --- /dev/null +++ b/meta-networking/recipes-connectivity/samba/samba/netdb_defines.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Index: samba-4.6.2/nsswitch/wins.c | ||
2 | =================================================================== | ||
3 | --- samba-4.6.2.orig/nsswitch/wins.c | ||
4 | +++ samba-4.6.2/nsswitch/wins.c | ||
5 | @@ -39,6 +39,14 @@ static pthread_mutex_t wins_nss_mutex = | ||
6 | #define INADDRSZ 4 | ||
7 | #endif | ||
8 | |||
9 | +#ifndef NETDB_INTERNAL | ||
10 | +#define NETDB_INTERNAL (-1) | ||
11 | +#endif | ||
12 | + | ||
13 | +#ifndef NETDB_SUCCESS | ||
14 | +#define NETDB_SUCCESS 0 | ||
15 | +#endif | ||
16 | + | ||
17 | NSS_STATUS _nss_wins_gethostbyname_r(const char *hostname, | ||
18 | struct hostent *he, | ||
19 | char *buffer, | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.6.2.bb b/meta-networking/recipes-connectivity/samba/samba_4.6.2.bb index 38876c2c35..7574aefb4d 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.6.2.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.6.2.bb | |||
@@ -18,6 +18,8 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ | |||
18 | file://21-add-config-option-without-valgrind.patch \ | 18 | file://21-add-config-option-without-valgrind.patch \ |
19 | file://0001-packaging-Avoid-timeout-for-nmbd-if-started-offline-.patch \ | 19 | file://0001-packaging-Avoid-timeout-for-nmbd-if-started-offline-.patch \ |
20 | file://0006-avoid-using-colon-in-the-checking-msg.patch \ | 20 | file://0006-avoid-using-colon-in-the-checking-msg.patch \ |
21 | file://netdb_defines.patch \ | ||
22 | file://glibc_only.patch \ | ||
21 | file://volatiles.03_samba \ | 23 | file://volatiles.03_samba \ |
22 | " | 24 | " |
23 | SRC_URI_append_libc-musl = " \ | 25 | SRC_URI_append_libc-musl = " \ |