net-misc/rsync-bpc: fix gettimeofday error

Closes: https://bugs.gentoo.org/874666
Suggested-by: Grant Taylor <gentoo@gtaylor.tnetconsulting.net>
Signed-off-by: Dennis Eisele <kernlpanic@dennis-eisele.de>
Part-of: https://github.com/gentoo/gentoo/pull/41625
Closes: https://github.com/gentoo/gentoo/pull/41625
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Dennis Eisele 2025-04-17 02:44:08 +02:00 committed by Sam James
parent 0f9c1aad3f
commit 6b543468e5
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- rsync-bpc-3.1.3.0/configure.ac.old 2025-02-21 20:05:47.000000000 -0600
+++ rsync-bpc-3.1.3.0/configure.ac 2025-02-21 20:02:27.000000000 -0600
@@ -852,7 +852,9 @@
AC_CACHE_CHECK([if gettimeofday takes tz argument],rsync_cv_HAVE_GETTIMEOFDAY_TZ,[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>
-#include <unistd.h>]], [[struct timeval tv; exit(gettimeofday(&tv, NULL));]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])])
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif]], [[struct timeval tv; return gettimeofday(&tv, NULL);]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])])
if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday() takes a time-zone arg])
fi

View File

@ -9,4 +9,7 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">backuppc/rsync-bpc</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,26 @@
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Rsync-bpc is a customized version of rsync that is used as part of BackupPC"
HOMEPAGE="https://github.com/backuppc/rsync-bpc"
SRC_URI="https://github.com/backuppc/rsync-bpc/releases/download/${PV}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="virtual/ssh"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${P}-fix-gettimeofday-error.patch" #874666
)
src_prepare() {
default
eautoreconf
}