diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-03-28 20:11:06 -0700 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-04-25 15:55:36 -0400 |
commit | 764c7f46da2dfd1baa091e76dedf03f4676287d6 (patch) | |
tree | 861a9cb3db67583f15a4315cf5f2d063df0542e8 /meta-networking/recipes-daemons/vsftpd | |
parent | d946331bc00f89fd8f232405bd9fff6da035ae72 (diff) | |
download | meta-openembedded-764c7f46da2dfd1baa091e76dedf03f4676287d6.tar.gz |
vsftpd: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons/vsftpd')
-rw-r--r-- | meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch | 28 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb | 7 |
2 files changed, 32 insertions, 3 deletions
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch b/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch new file mode 100644 index 0000000000..c3919e1174 --- /dev/null +++ b/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From e55135c2a4ea7eae3cb1f4dccf69ca477ea095bf Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 28 Mar 2017 20:09:12 -0700 | ||
4 | Subject: [PATCH] sysdeputil.c: Fix with musl which does not have utmpx | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | sysdeputil.c | 4 +++- | ||
9 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/sysdeputil.c b/sysdeputil.c | ||
12 | index 06f01f4..a8cff3b 100644 | ||
13 | --- a/sysdeputil.c | ||
14 | +++ b/sysdeputil.c | ||
15 | @@ -58,7 +58,9 @@ | ||
16 | #define VSF_SYSDEP_HAVE_SHADOW | ||
17 | #define VSF_SYSDEP_HAVE_USERSHELL | ||
18 | #define VSF_SYSDEP_HAVE_LIBCAP | ||
19 | -#define VSF_SYSDEP_HAVE_UTMPX | ||
20 | +#if defined(__GLIBC__) | ||
21 | + #define VSF_SYSDEP_HAVE_UTMPX | ||
22 | +#endif | ||
23 | |||
24 | #define __USE_GNU | ||
25 | #include <utmpx.h> | ||
26 | -- | ||
27 | 2.12.1 | ||
28 | |||
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb index 3eaaa30b62..e524614464 100644 --- a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb +++ b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb | |||
@@ -19,7 +19,10 @@ SRC_URI = "https://security.appspot.com/downloads/vsftpd-${PV}.tar.gz \ | |||
19 | file://vsftpd.service \ | 19 | file://vsftpd.service \ |
20 | file://vsftpd-2.1.0-filter.patch \ | 20 | file://vsftpd-2.1.0-filter.patch \ |
21 | file://0001-vsftpd-allow-sysinfo-in-the-seccomp-sandbox.patch \ | 21 | file://0001-vsftpd-allow-sysinfo-in-the-seccomp-sandbox.patch \ |
22 | " | 22 | ${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://vsftpd-tcp_wrappers-support.patch', '', d)} \ |
23 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '', '${NOPAM_SRC}', d)} \ | ||
24 | file://0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch \ | ||
25 | " | ||
23 | 26 | ||
24 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271 \ | 27 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271 \ |
25 | file://COPYRIGHT;md5=04251b2eb0f298dae376d92454f6f72e \ | 28 | file://COPYRIGHT;md5=04251b2eb0f298dae376d92454f6f72e \ |
@@ -30,13 +33,11 @@ SRC_URI[sha256sum] = "9d4d2bf6e6e2884852ba4e69e157a2cecd68c5a7635d66a3a8cf8d898c | |||
30 | 33 | ||
31 | PACKAGECONFIG ??= "tcp-wrappers" | 34 | PACKAGECONFIG ??= "tcp-wrappers" |
32 | PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers" | 35 | PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers" |
33 | SRC_URI +="${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://vsftpd-tcp_wrappers-support.patch', '', d)}" | ||
34 | 36 | ||
35 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 37 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
36 | RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-listfile', '', d)}" | 38 | RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-listfile', '', d)}" |
37 | PAMLIB = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-L${STAGING_BASELIBDIR} -lpam', '', d)}" | 39 | PAMLIB = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-L${STAGING_BASELIBDIR} -lpam', '', d)}" |
38 | NOPAM_SRC ="${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://nopam-with-tcp_wrappers.patch', 'file://nopam.patch', d)}" | 40 | NOPAM_SRC ="${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://nopam-with-tcp_wrappers.patch', 'file://nopam.patch', d)}" |
39 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '', '${NOPAM_SRC}', d)}" | ||
40 | 41 | ||
41 | inherit update-rc.d useradd systemd | 42 | inherit update-rc.d useradd systemd |
42 | 43 | ||