All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ntp: fix build for toolchains without ssp
@ 2017-03-23 19:37 Bernd Kuhls
  2017-03-25 13:56 ` Thomas Petazzoni
  2017-03-31  7:01 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2017-03-23 19:37 UTC (permalink / raw)
  To: buildroot

ntp defaults to use ssp support
http://bk1.ntp.org/ntp-stable/sntp/harden/README

by using these flags
http://bk1.ntp.org/ntp-stable/sntp/harden/linux

If the toolchain lacks SSP support this patch forces ntp to use an
empty set of flags: http://bk1.ntp.org/ntp-stable/sntp/harden/default

Fixes
http://autobuild.buildroot.net/results/1d5/1d58bd8745b22c8eb71fea4c7255d3ace69f6f7a/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/ntp/ntp.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk
index b6eb1b186..e3e53a803 100644
--- a/package/ntp/ntp.mk
+++ b/package/ntp/ntp.mk
@@ -23,6 +23,12 @@ NTP_CONF_OPTS = \
 # 0002-ntp-syscalls-fallback.patch
 NTP_AUTORECONF = YES
 
+ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
+NTP_CONF_OPTS += --with-locfile=linux
+else
+NTP_CONF_OPTS += --with-locfile=default
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
 NTP_CONF_OPTS += --enable-linuxcaps
 NTP_DEPENDENCIES += libcap
-- 
2.11.0

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

* [Buildroot] [PATCH 1/1] package/ntp: fix build for toolchains without ssp
  2017-03-23 19:37 [Buildroot] [PATCH 1/1] package/ntp: fix build for toolchains without ssp Bernd Kuhls
@ 2017-03-25 13:56 ` Thomas Petazzoni
  2017-03-31  7:01 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-03-25 13:56 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 23 Mar 2017 20:37:00 +0100, Bernd Kuhls wrote:
> ntp defaults to use ssp support
> http://bk1.ntp.org/ntp-stable/sntp/harden/README
> 
> by using these flags
> http://bk1.ntp.org/ntp-stable/sntp/harden/linux
> 
> If the toolchain lacks SSP support this patch forces ntp to use an
> empty set of flags: http://bk1.ntp.org/ntp-stable/sntp/harden/default
> 
> Fixes
> http://autobuild.buildroot.net/results/1d5/1d58bd8745b22c8eb71fea4c7255d3ace69f6f7a/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/ntp/ntp.mk | 6 ++++++
>  1 file changed, 6 insertions(+)

I've applied to fix the immediate build issues. However, I'm wondering
if we shouldn't use --with-locfile=default unconditionally, and let
Buildroot decide what CFLAGS are appropriate.

What do you think?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] package/ntp: fix build for toolchains without ssp
  2017-03-23 19:37 [Buildroot] [PATCH 1/1] package/ntp: fix build for toolchains without ssp Bernd Kuhls
  2017-03-25 13:56 ` Thomas Petazzoni
@ 2017-03-31  7:01 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-03-31  7:01 UTC (permalink / raw)
  To: buildroot

>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:

 > ntp defaults to use ssp support
 > http://bk1.ntp.org/ntp-stable/sntp/harden/README

 > by using these flags
 > http://bk1.ntp.org/ntp-stable/sntp/harden/linux

 > If the toolchain lacks SSP support this patch forces ntp to use an
 > empty set of flags: http://bk1.ntp.org/ntp-stable/sntp/harden/default

 > Fixes
 > http://autobuild.buildroot.net/results/1d5/1d58bd8745b22c8eb71fea4c7255d3ace69f6f7a/

 > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2017-03-31  7:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-23 19:37 [Buildroot] [PATCH 1/1] package/ntp: fix build for toolchains without ssp Bernd Kuhls
2017-03-25 13:56 ` Thomas Petazzoni
2017-03-31  7:01 ` 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.