All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build with SSP
@ 2020-02-23 23:20 Fabrice Fontaine
  2020-02-24  9:59 ` Fabrice Fontaine
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2020-02-23 23:20 UTC (permalink / raw)
  To: buildroot

Thanks to this patch, kvm-unit-tests will always be built without SSP as
intented by upstream. This will fix the build on ppc64 with SSP that
started to fail for an unknown reason since November 27th.

Moreover, the Arch Linux workaround could also be removed in a follow-up
patch.

Fixes:
 - http://autobuild.buildroot.org/results/ad689b08173548af21dd1fb0e827fd561de6dfef

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...3-Makefile-fix-stack-protector-tests.patch | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/kvm-unit-tests/0003-Makefile-fix-stack-protector-tests.patch

diff --git a/package/kvm-unit-tests/0003-Makefile-fix-stack-protector-tests.patch b/package/kvm-unit-tests/0003-Makefile-fix-stack-protector-tests.patch
new file mode 100644
index 0000000000..be819f27c6
--- /dev/null
+++ b/package/kvm-unit-tests/0003-Makefile-fix-stack-protector-tests.patch
@@ -0,0 +1,36 @@
+From 9bf9155804652c0b3a94af9723c79b6de430187b Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Mon, 24 Feb 2020 00:04:06 +0100
+Subject: [PATCH] Makefile: fix stack-protector tests
+
+Rename fnostack_protector into fno_stack_protector and
+fnostack_protector_all into fnostack_protector_all otherwise build will
+fail if -fstack-protector is passed by the toolchain
+
+Fixes:
+ - http://autobuild.buildroot.org/results/ad689b08173548af21dd1fb0e827fd561de6dfef
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: sent to kvm at vger.kernel.org]
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 767b6c6..754ed65 100644
+--- a/Makefile
++++ b/Makefile
+@@ -55,8 +55,8 @@ COMMON_CFLAGS += -Wignored-qualifiers -Werror
+ 
+ frame-pointer-flag=-f$(if $(KEEP_FRAME_POINTER),no-,)omit-frame-pointer
+ fomit_frame_pointer := $(call cc-option, $(frame-pointer-flag), "")
+-fnostack_protector := $(call cc-option, -fno-stack-protector, "")
+-fnostack_protector_all := $(call cc-option, -fno-stack-protector-all, "")
++fno_stack_protector := $(call cc-option, -fno-stack-protector, "")
++fno_stack_protector_all := $(call cc-option, -fno-stack-protector-all, "")
+ wno_frame_address := $(call cc-option, -Wno-frame-address, "")
+ fno_pic := $(call cc-option, -fno-pic, "")
+ no_pie := $(call cc-option, -no-pie, "")
+-- 
+2.25.0
+
-- 
2.25.0

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

* [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build with SSP
  2020-02-23 23:20 [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build with SSP Fabrice Fontaine
@ 2020-02-24  9:59 ` Fabrice Fontaine
  2020-02-25 16:32 ` Peter Korsgaard
  2020-03-14 16:30 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2020-02-24  9:59 UTC (permalink / raw)
  To: buildroot

Dear all,

Le lun. 24 f?vr. 2020 ? 00:19, Fabrice Fontaine
<fontaine.fabrice@gmail.com> a ?crit :
>
> Thanks to this patch, kvm-unit-tests will always be built without SSP as
> intented by upstream. This will fix the build on ppc64 with SSP that
> started to fail for an unknown reason since November 27th.
>
> Moreover, the Arch Linux workaround could also be removed in a follow-up
> patch.
>
> Fixes:
>  - http://autobuild.buildroot.org/results/ad689b08173548af21dd1fb0e827fd561de6dfef
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...3-Makefile-fix-stack-protector-tests.patch | 36 +++++++++++++++++++
>  1 file changed, 36 insertions(+)
>  create mode 100644 package/kvm-unit-tests/0003-Makefile-fix-stack-protector-tests.patch
>
> diff --git a/package/kvm-unit-tests/0003-Makefile-fix-stack-protector-tests.patch b/package/kvm-unit-tests/0003-Makefile-fix-stack-protector-tests.patch
> new file mode 100644
> index 0000000000..be819f27c6
> --- /dev/null
> +++ b/package/kvm-unit-tests/0003-Makefile-fix-stack-protector-tests.patch
> @@ -0,0 +1,36 @@
> +From 9bf9155804652c0b3a94af9723c79b6de430187b Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Mon, 24 Feb 2020 00:04:06 +0100
> +Subject: [PATCH] Makefile: fix stack-protector tests
> +
> +Rename fnostack_protector into fno_stack_protector and
> +fnostack_protector_all into fnostack_protector_all otherwise build will
> +fail if -fstack-protector is passed by the toolchain
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/ad689b08173548af21dd1fb0e827fd561de6dfef
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: sent to kvm at vger.kernel.org]
It should be noted that upstream answered that the same patch was
already in their pull box:
https://patchwork.kernel.org/patch/11368845/
> +---
> + Makefile | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/Makefile b/Makefile
> +index 767b6c6..754ed65 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -55,8 +55,8 @@ COMMON_CFLAGS += -Wignored-qualifiers -Werror
> +
> + frame-pointer-flag=-f$(if $(KEEP_FRAME_POINTER),no-,)omit-frame-pointer
> + fomit_frame_pointer := $(call cc-option, $(frame-pointer-flag), "")
> +-fnostack_protector := $(call cc-option, -fno-stack-protector, "")
> +-fnostack_protector_all := $(call cc-option, -fno-stack-protector-all, "")
> ++fno_stack_protector := $(call cc-option, -fno-stack-protector, "")
> ++fno_stack_protector_all := $(call cc-option, -fno-stack-protector-all, "")
> + wno_frame_address := $(call cc-option, -Wno-frame-address, "")
> + fno_pic := $(call cc-option, -fno-pic, "")
> + no_pie := $(call cc-option, -no-pie, "")
> +--
> +2.25.0
> +
> --
> 2.25.0
>
Best Regards,

Fabrice

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

* [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build with SSP
  2020-02-23 23:20 [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build with SSP Fabrice Fontaine
  2020-02-24  9:59 ` Fabrice Fontaine
@ 2020-02-25 16:32 ` Peter Korsgaard
  2020-03-14 16:30 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2020-02-25 16:32 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Thanks to this patch, kvm-unit-tests will always be built without SSP as
 > intented by upstream. This will fix the build on ppc64 with SSP that
 > started to fail for an unknown reason since November 27th.

 > Moreover, the Arch Linux workaround could also be removed in a follow-up
 > patch.

 > Fixes:
 >  - http://autobuild.buildroot.org/results/ad689b08173548af21dd1fb0e827fd561de6dfef

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build with SSP
  2020-02-23 23:20 [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build with SSP Fabrice Fontaine
  2020-02-24  9:59 ` Fabrice Fontaine
  2020-02-25 16:32 ` Peter Korsgaard
@ 2020-03-14 16:30 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2020-03-14 16:30 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Thanks to this patch, kvm-unit-tests will always be built without SSP as
 > intented by upstream. This will fix the build on ppc64 with SSP that
 > started to fail for an unknown reason since November 27th.

 > Moreover, the Arch Linux workaround could also be removed in a follow-up
 > patch.

 > Fixes:
 >  - http://autobuild.buildroot.org/results/ad689b08173548af21dd1fb0e827fd561de6dfef

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2019.02.x and 2019.11.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2020-03-14 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-23 23:20 [Buildroot] [PATCH 1/1] package/kvm-unit-tests: fix build with SSP Fabrice Fontaine
2020-02-24  9:59 ` Fabrice Fontaine
2020-02-25 16:32 ` Peter Korsgaard
2020-03-14 16:30 ` 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.