All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/rsync: force HAVE_C99_VSNPRINTF to "yes"
@ 2022-10-19 23:34 Markus Mayer via buildroot
  2022-11-03 22:12 ` Thomas Petazzoni via buildroot
  2022-11-14 10:25 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Markus Mayer via buildroot @ 2022-10-19 23:34 UTC (permalink / raw)
  To: Buildroot Mailing List; +Cc: Fabrice Fontaine, Markus Mayer

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@broadcom.com>
---
 package/rsync/rsync.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/rsync/rsync.mk b/package/rsync/rsync.mk
index e288033b9819..0d311aa1673c 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 \
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] package/rsync: force HAVE_C99_VSNPRINTF to "yes"
  2022-10-19 23:34 [Buildroot] [PATCH] package/rsync: force HAVE_C99_VSNPRINTF to "yes" Markus Mayer via buildroot
@ 2022-11-03 22:12 ` Thomas Petazzoni via buildroot
  2022-11-14 10:25 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-11-03 22:12 UTC (permalink / raw)
  To: Markus Mayer via buildroot; +Cc: Fabrice Fontaine, Markus Mayer

On Wed, 19 Oct 2022 16:34:14 -0700
Markus Mayer via buildroot <buildroot@buildroot.org> wrote:

> 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@broadcom.com>
> ---
>  package/rsync/rsync.mk | 3 +++
>  1 file changed, 3 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] package/rsync: force HAVE_C99_VSNPRINTF to "yes"
  2022-10-19 23:34 [Buildroot] [PATCH] package/rsync: force HAVE_C99_VSNPRINTF to "yes" Markus Mayer via buildroot
  2022-11-03 22:12 ` Thomas Petazzoni via buildroot
@ 2022-11-14 10:25 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-11-14 10:25 UTC (permalink / raw)
  To: Markus Mayer via buildroot; +Cc: Fabrice Fontaine, Markus Mayer

>>>>> "Markus" == Markus Mayer via buildroot <buildroot@buildroot.org> writes:

 > 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@broadcom.com>

Committed to 2022.08.x and 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-14 10:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 23:34 [Buildroot] [PATCH] package/rsync: force HAVE_C99_VSNPRINTF to "yes" Markus Mayer via buildroot
2022-11-03 22:12 ` Thomas Petazzoni via buildroot
2022-11-14 10:25 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.