From 1e23b4eae00443659fb9ccdff67dcbfbf3d2284e Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 3 Jul 2019 18:25:50 -0700 Subject: [PATCH] rsync: Fix compile with -Wimplicit-function-declaration The configure test for gettimeofday does not include the proper header. Override the variable as all OpenWrt libc have two arguments for gettimeofday. Signed-off-by: Rosen Penev --- net/rsync/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/net/rsync/Makefile b/net/rsync/Makefile index 02ce08635..0831a9e08 100644 --- a/net/rsync/Makefile +++ b/net/rsync/Makefile @@ -9,13 +9,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rsync PKG_VERSION:=3.1.3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://download.samba.org/pub/rsync/src PKG_HASH:=55cc554efec5fdaad70de921cd5a5eeb6c29a95524c715f3bbf849235b0800c0 + PKG_MAINTAINER:=Maxim Storchak -PKG_LICENSE:=GPL-3.0 +PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE_FILES:=COPYING PKG_INSTALL:=1 @@ -29,7 +30,7 @@ define Package/rsync SUBMENU:=File Transfer TITLE:=Fast remote file copy program (like rcp) DEPENDS:=+libpopt +RSYNC_xattr:libattr +RSYNC_acl:libacl +RSYNC_zlib:zlib - URL:=http://rsync.samba.org/ + URL:=https://rsync.samba.org/ MENU:=1 endef @@ -66,13 +67,15 @@ else CONFIGURE_ARGS+= --disable-ipv6 endif +CONFIGURE_VARS += rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes + define Package/rsyncd SECTION:=net CATEGORY:=Network SUBMENU:=File Transfer TITLE:=Rsync daemon DEPENDS:=+rsync - URL:=http://rsync.samba.org/ + URL:=https://rsync.samba.org/ endef define Package/rsync/description