summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-06-27 19:08:15 -0700
committerJoe MacDonald <joe_macdonald@mentor.com>2017-09-08 16:38:10 -0400
commit9688df7ce9f5bedb86069295706c477e0416e233 (patch)
tree73b3e544b0cafb3427eaa367a9f16232d33ce019 /meta-networking/recipes-daemons
parent6b0fb999ac3bacb0e52b03b1198e2ead6ae95ec8 (diff)
downloadmeta-openembedded-9688df7ce9f5bedb86069295706c477e0416e233.tar.gz
ncftp: Upgrade to 3.2.6
Fix build with hardening flags Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons')
-rw-r--r--meta-networking/recipes-daemons/ncftp/ncftp/unistd.patch32
-rw-r--r--meta-networking/recipes-daemons/ncftp/ncftp_3.2.6.bb (renamed from meta-networking/recipes-daemons/ncftp/ncftp_3.2.5.bb)16
2 files changed, 44 insertions, 4 deletions
diff --git a/meta-networking/recipes-daemons/ncftp/ncftp/unistd.patch b/meta-networking/recipes-daemons/ncftp/ncftp/unistd.patch
new file mode 100644
index 000000000..1c8146eda
--- /dev/null
+++ b/meta-networking/recipes-daemons/ncftp/ncftp/unistd.patch
@@ -0,0 +1,32 @@
1This patch is needed to avoid double definitions of functions
2especially when building with security flags turned on. The double
3definitions causes the sed.sh script in configure to fail since it
4starts to spit out double outputs e.g.
5
6wi_cv_gethostname_size_t size_t size_t
7
8which then caused almost all subsequent compile time tests to fail since
9this gets into confdefs.h file
10
11removing this include causes only one definitions to be emitted into
12the genrated protos.h file and thus avoiding the above failure.
13
14Other solution would to fix sed.sh to ignore double definitions
15
16Upstream-Status: Pending
17
18Signed-of-by: Khem Raj <raj.khem@gmail.com>
19
20
21Index: ncftp-3.2.6/configure
22===================================================================
23--- ncftp-3.2.6.orig/configure
24+++ ncftp-3.2.6/configure
25@@ -7859,7 +7859,6 @@ chmod 755 "$wi_tmpdir/prpp.pl"
26 cat << 'EOF' > "$wi_tmpdir/unistd.c"
27 #include <confdefs.h>
28
29-#include <unistd.h>
30 #include <sys/types.h>
31 #include <sys/socket.h>
32 #include <netinet/in.h>
diff --git a/meta-networking/recipes-daemons/ncftp/ncftp_3.2.5.bb b/meta-networking/recipes-daemons/ncftp/ncftp_3.2.6.bb
index 893eacb99..5f92f27fd 100644
--- a/meta-networking/recipes-daemons/ncftp/ncftp_3.2.5.bb
+++ b/meta-networking/recipes-daemons/ncftp/ncftp_3.2.6.bb
@@ -2,21 +2,29 @@ DESCRIPTION = "A sophisticated console ftp client"
2HOMEPAGE = "http://ncftp.com/" 2HOMEPAGE = "http://ncftp.com/"
3SECTION = "net" 3SECTION = "net"
4LICENSE = "ClArtistic" 4LICENSE = "ClArtistic"
5LIC_FILES_CHKSUM = "file://ncftp/cmds.c;beginline=3;endline=4;md5=9de76faeaedc4f908082e3f8142715f4" 5LIC_FILES_CHKSUM = "file://ncftp/cmds.c;beginline=3;endline=4;md5=9c2390809f71465aa7ff76e03dc14d91"
6DEPENDS = "ncurses" 6DEPENDS = "ncurses"
7 7
8SRC_URI = "${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}.orig.tar.gz \ 8SRC_URI = "ftp://ftp.ncftp.com/${BPN}/${BP}-src.tar.xz \
9 file://ncftp-configure-use-BUILD_CC-for-ccdv.patch \ 9 file://ncftp-configure-use-BUILD_CC-for-ccdv.patch \
10 file://unistd.patch \
10" 11"
11SRC_URI[md5sum] = "685e45f60ac11c89442c572c28af4228" 12SRC_URI[md5sum] = "42d0f896d69a4d603ec097546444245f"
12SRC_URI[sha256sum] = "ac111b71112382853b2835c42ebe7bd59acb7f85dd00d44b2c19fbd074a436c4" 13SRC_URI[sha256sum] = "5f200687c05d0807690d9fb770327b226f02dd86155b49e750853fce4e31098d"
13 14
14inherit autotools-brokensep pkgconfig 15inherit autotools-brokensep pkgconfig
15 16
17CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall"
18
16PACKAGECONFIG ??= "" 19PACKAGECONFIG ??= ""
17PACKAGECONFIG[ccdv] = "--enable-ccdv,--disable-ccdv,," 20PACKAGECONFIG[ccdv] = "--enable-ccdv,--disable-ccdv,,"
18 21
22EXTRA_OECONF = "--disable-precomp"
23TARGET_CC_ARCH_append = " ${SELECTED_OPTIMIZATION}"
24
19do_configure() { 25do_configure() {
26 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
27 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
20 oe_runconf 28 oe_runconf
21} 29}
22do_install () { 30do_install () {