[Buildroot] [git commit branch/2022.08.x] package/rsync: force HAVE_C99_VSNPRINTF to "yes"

Peter Korsgaard peter at korsgaard.com
Mon Nov 14 10:25:29 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=72c53e5fbd802c4999cd9d066902ba9c40af89ca
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.08.x

We know the system will have a modern-enough C library that implements
the required snprintf() functionality. Since the configure stage can't
detect the system's capabilities (because it is cross-compiling), let's
hard-code the decision.

As a result, rsync won't be linking in its own copy of snprintf().

Signed-off-by: Markus Mayer <mmayer at broadcom.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 0b17cd017e8b946d718c81f0e38fd570e6a6bc0d)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/rsync/rsync.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/rsync/rsync.mk b/package/rsync/rsync.mk
index e288033b98..0d311aa167 100644
--- a/package/rsync/rsync.mk
+++ b/package/rsync/rsync.mk
@@ -11,6 +11,9 @@ RSYNC_LICENSE_FILES = COPYING
 RSYNC_CPE_ID_VENDOR = samba
 RSYNC_SELINUX_MODULES = rsync
 RSYNC_DEPENDENCIES = zlib popt
+# We know that our C library is modern enough for C99 vsnprintf(). Since
+# configure can't detect this, we tell configure that vsnprintf() is safe.
+RSYNC_CONF_ENV = rsync_cv_HAVE_C99_VSNPRINTF=yes
 RSYNC_CONF_OPTS = \
 	--with-included-zlib=no \
 	--with-included-popt=no \



More information about the buildroot mailing list