2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-05-22 13:59:22 +02:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# ncftp
|
2007-05-22 13:59:22 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2016-11-30 18:21:52 +01:00
|
|
|
NCFTP_VERSION = 3.2.6
|
2017-04-26 08:48:24 +02:00
|
|
|
# use .gz as upstream .xz tarball has changed after the hash was added for
|
|
|
|
# 2017.02. Can be changed back to .xz when version is bumped
|
|
|
|
NCFTP_SOURCE = ncftp-$(NCFTP_VERSION)-src.tar.gz
|
2011-10-16 05:04:33 +02:00
|
|
|
NCFTP_SITE = ftp://ftp.ncftp.com/ncftp
|
|
|
|
NCFTP_TARGET_BINS = ncftp
|
2013-10-08 12:06:57 +02:00
|
|
|
NCFTP_LICENSE = Clarified Artistic License
|
|
|
|
NCFTP_LICENSE_FILES = doc/LICENSE.txt
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2014-02-21 22:00:52 +01:00
|
|
|
NCFTP_DEPENDENCIES = host-autoconf
|
ncftp: fix host/target confusion
The ncftp build process tries to build and run a small program called
ccdv to beautify the build process output. If it manages to build and
run it, then it uses it.
Unfortunately, this doesn't work well when the target architecture is
close to the host architecture, but not exactly the same. Because both
architectures are close to each other, the test run of ccdv succeeds,
but real use of ccdv during ncftp build process causes an Illegal
instruction issue.
This for example happens with the CodeSourcery AMD64 toolchain, on a
build machine running an i7-4600U, and has been detected in the
autobuilders since the CodeSourcery AMD64 toolchain was upgraded at
the end of January:
http://autobuild.buildroot.net/?reason=ncftp-3.2.6
The issue was also reported by Christopher Arguin back in July 2016:
http://lists.busybox.net/pipermail/buildroot/2016-July/168026.html
and at the time, we identified that simply disabling the ccdv tool, by
passing --disable-ccdv, was enough to solve the issue. But Christopher
never submitted the patch, so the problem remained unfixed.
Therefore, we pass --disable-ccdv to the configure script, which
fixes:
http://autobuild.buildroot.net/results/6eadad0e879ca70bb07b13b4196d42c64b11699f/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-02-28 23:54:37 +01:00
|
|
|
NCFTP_CONF_OPTS = --disable-ccdv
|
2014-02-21 22:00:52 +01:00
|
|
|
|
2014-02-25 22:01:47 +01:00
|
|
|
# The bundled configure script is generated by autoconf 2.13 and doesn't
|
|
|
|
# detect cross-compilation correctly. Therefore, we have to regenerate it.
|
|
|
|
# We need to pass -I because of the non-standard m4 directory name, and
|
|
|
|
# none of the other autotools are used, so the below is the easiest.
|
2014-02-21 22:00:52 +01:00
|
|
|
define NCFTP_RUN_AUTOCONF
|
2014-10-25 20:29:31 +02:00
|
|
|
(cd $(@D); $(HOST_DIR)/usr/bin/autoconf -I$(@D)/autoconf_local/)
|
2014-02-21 22:00:52 +01:00
|
|
|
endef
|
|
|
|
NCFTP_PRE_CONFIGURE_HOOKS += NCFTP_RUN_AUTOCONF
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_GET),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpget
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_PUT),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpput
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_LS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpls
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BATCH),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpbatch
|
|
|
|
NCFTP_INSTALL_NCFTP_BATCH = \
|
|
|
|
ln -sf /usr/bin/ncftpbatch $(TARGET_DIR)/usr/bin/ncftpspooler
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BOOKMARKS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpbookmarks
|
|
|
|
NCFTP_DEPENDENCIES += ncurses
|
2007-05-22 13:59:22 +02:00
|
|
|
endif
|
|
|
|
|
2010-09-01 23:15:59 +02:00
|
|
|
define NCFTP_INSTALL_TARGET_CMDS
|
2009-04-01 22:52:41 +02:00
|
|
|
$(INSTALL) -m 0755 $(addprefix $(NCFTP_DIR)/bin/, $(NCFTP_TARGET_BINS)) $(TARGET_DIR)/usr/bin
|
2010-09-01 23:15:59 +02:00
|
|
|
$(NCFTP_INSTALL_NCFTP_BATCH)
|
|
|
|
endef
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|