All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp
@ 2017-02-28 22:26 Fabrice Fontaine
  2017-02-28 22:40 ` Thomas Petazzoni
  2017-03-01 20:49 ` Thomas Petazzoni
  0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2017-02-28 22:26 UTC (permalink / raw)
  To: buildroot

Set ENABLE_CUSTOM_COMPILER_FLAGS to OFF to disable custom flags, in
particular -fstack-protector-strong which depends on
BR2_TOOLCHAIN_HAS_SSP

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/cjson/cjson.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/cjson/cjson.mk b/package/cjson/cjson.mk
index aea9578..c554654 100644
--- a/package/cjson/cjson.mk
+++ b/package/cjson/cjson.mk
@@ -9,7 +9,10 @@ CJSON_SITE = $(call github,DaveGamble,cjson,$(CJSON_VERSION))
 CJSON_INSTALL_STAGING = YES
 CJSON_LICENSE = MIT
 CJSON_LICENSE_FILES = LICENSE
+# Set ENABLE_CUSTOM_COMPILER_FLAGS to OFF in particular to disable
+# -fstack-protector-strong which depends on BR2_TOOLCHAIN_HAS_SSP
 CJSON_CONF_OPTS += \
-	-DENABLE_CJSON_TEST=OFF
+	-DENABLE_CJSON_TEST=OFF \
+	-DENABLE_CUSTOM_COMPILER_FLAGS=OFF
 
 $(eval $(cmake-package))
-- 
2.5.0

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

* [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp
  2017-02-28 22:26 [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp Fabrice Fontaine
@ 2017-02-28 22:40 ` Thomas Petazzoni
       [not found]   ` <AB6B30E9-21A6-499E-927B-401E5A94682A@gmail.com>
  2017-03-01 20:49 ` Thomas Petazzoni
  1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2017-02-28 22:40 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 28 Feb 2017 23:26:07 +0100, Fabrice Fontaine wrote:
> Set ENABLE_CUSTOM_COMPILER_FLAGS to OFF to disable custom flags, in
> particular -fstack-protector-strong which depends on
> BR2_TOOLCHAIN_HAS_SSP
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Is this necessary for the 1.3.2 bump to work fine, or is it a separate
build fix that applies to the version of cjson currently packaged in
Buildroot?

Thanks,

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

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

* [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp
       [not found]   ` <AB6B30E9-21A6-499E-927B-401E5A94682A@gmail.com>
@ 2017-03-01  8:05     ` Thomas Petazzoni
  2017-03-01 11:47       ` Fabrice Fontaine
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2017-03-01  8:05 UTC (permalink / raw)
  To: buildroot

Hello,

Please keep the mailing list in CC, thanks!

On Wed, 1 Mar 2017 07:04:53 +0100, Fabrice Fontaine wrote:

> This is a separate build fix that applies to the version of cjson
> currently packaged in buildroot. I found this issue on 1.3.2 and was
> able to reproduce it on 1.3.0.

Ah, ok, it's probably new in 1.3.0, which we only have in the next
branch. Our master branch, and the 2017.02 release, only have 1.2.1,
which I guess doesn't have this issue since the autobuilders didn't
catch it.

Thanks,

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

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

* [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp
  2017-03-01  8:05     ` Thomas Petazzoni
@ 2017-03-01 11:47       ` Fabrice Fontaine
  0 siblings, 0 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2017-03-01 11:47 UTC (permalink / raw)
  To: buildroot

2017-03-01 9:05 GMT+01:00 Thomas Petazzoni <
thomas.petazzoni@free-electrons.com>:

> Hello,
>
> Please keep the mailing list in CC, thanks!
>
> On Wed, 1 Mar 2017 07:04:53 +0100, Fabrice Fontaine wrote:
>
> > This is a separate build fix that applies to the version of cjson
> > currently packaged in buildroot. I found this issue on 1.3.2 and was
> > able to reproduce it on 1.3.0.
>
> Ah, ok, it's probably new in 1.3.0, which we only have in the next
> branch. Our master branch, and the 2017.02 release, only have 1.2.1,
> which I guess doesn't have this issue since the autobuilders didn't
> catch it.
>
Yes, -fstack-protector-strong was introduced in 1.3.0.

>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170301/4cca661a/attachment.html>

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

* [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp
  2017-02-28 22:26 [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp Fabrice Fontaine
  2017-02-28 22:40 ` Thomas Petazzoni
@ 2017-03-01 20:49 ` Thomas Petazzoni
  2017-03-02  7:14   ` Peter Korsgaard
  1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2017-03-01 20:49 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 28 Feb 2017 23:26:07 +0100, Fabrice Fontaine wrote:
> Set ENABLE_CUSTOM_COMPILER_FLAGS to OFF to disable custom flags, in
> particular -fstack-protector-strong which depends on
> BR2_TOOLCHAIN_HAS_SSP
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/cjson/cjson.mk | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Applied to master, thanks. Peter: even though this is a build fix, this
one is not needed on the LTS branch, because it is only needed after
the 1.3.0 bump, which was done post 2017.02.

Best regards,

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

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

* [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp
  2017-03-01 20:49 ` Thomas Petazzoni
@ 2017-03-02  7:14   ` Peter Korsgaard
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2017-03-02  7:14 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > Hello,
 > On Tue, 28 Feb 2017 23:26:07 +0100, Fabrice Fontaine wrote:
 >> Set ENABLE_CUSTOM_COMPILER_FLAGS to OFF to disable custom flags, in
 >> particular -fstack-protector-strong which depends on
 >> BR2_TOOLCHAIN_HAS_SSP
 >> 
 >> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
 >> ---
 >> package/cjson/cjson.mk | 5 ++++-
 >> 1 file changed, 4 insertions(+), 1 deletion(-)

 > Applied to master, thanks. Peter: even though this is a build fix, this
 > one is not needed on the LTS branch, because it is only needed after
 > the 1.3.0 bump, which was done post 2017.02.

Ok, thanks for the heads up!

-- 
Bye, Peter Korsgaard

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28 22:26 [Buildroot] [PATCH 1/1] cjson: fix build for toolchains without ssp Fabrice Fontaine
2017-02-28 22:40 ` Thomas Petazzoni
     [not found]   ` <AB6B30E9-21A6-499E-927B-401E5A94682A@gmail.com>
2017-03-01  8:05     ` Thomas Petazzoni
2017-03-01 11:47       ` Fabrice Fontaine
2017-03-01 20:49 ` Thomas Petazzoni
2017-03-02  7:14   ` 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.