public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH qemu 1/2] d/rules: add missing export for CFLAGS
@ 2023-02-10  9:39 Fiona Ebner
  2023-02-10  9:39 ` [pve-devel] [PATCH qemu 2/2] d/rules: add note explaining why using noopt doesn't currenlty work Fiona Ebner
  2023-02-14  9:07 ` [pve-devel] applied: Re: [PATCH qemu 1/2] d/rules: add missing export for CFLAGS Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Fiona Ebner @ 2023-02-10  9:39 UTC (permalink / raw)
  To: pve-devel

Otherwise, they don't affect the build of QEMU at all.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 6d5f882..7fa9911 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,8 @@ else
 	CFLAGS += -O2
 endif
 
+export CFLAGS
+
 ${BUILDDIR}/config.status: configure
 	dh_testdir
 	# Add here commands to configure the package.
-- 
2.30.2





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

* [pve-devel] [PATCH qemu 2/2] d/rules: add note explaining why using noopt doesn't currenlty work
  2023-02-10  9:39 [pve-devel] [PATCH qemu 1/2] d/rules: add missing export for CFLAGS Fiona Ebner
@ 2023-02-10  9:39 ` Fiona Ebner
  2023-02-14  9:07 ` [pve-devel] applied: Re: [PATCH qemu 1/2] d/rules: add missing export for CFLAGS Thomas Lamprecht
  1 sibling, 0 replies; 4+ messages in thread
From: Fiona Ebner @ 2023-02-10  9:39 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 7fa9911..e69ba47 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,9 @@ BUILDDIR=build
 
 CFLAGS = -Wall
 
+# FIXME: There is a second -02 added because of meson.build in the subproject
+# and that is appended after -O0 from here (last -O wins), so supporting noopt
+# doesn't work like this.
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0
 else
-- 
2.30.2





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

* [pve-devel] applied: Re: [PATCH qemu 1/2] d/rules: add missing export for CFLAGS
  2023-02-10  9:39 [pve-devel] [PATCH qemu 1/2] d/rules: add missing export for CFLAGS Fiona Ebner
  2023-02-10  9:39 ` [pve-devel] [PATCH qemu 2/2] d/rules: add note explaining why using noopt doesn't currenlty work Fiona Ebner
@ 2023-02-14  9:07 ` Thomas Lamprecht
  2023-02-15 12:03   ` Fiona Ebner
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Lamprecht @ 2023-02-14  9:07 UTC (permalink / raw)
  To: Proxmox VE development discussion, Fiona Ebner

On 10/02/2023 10:39, Fiona Ebner wrote:
> Otherwise, they don't affect the build of QEMU at all.
> 
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
>  debian/rules | 2 ++
>  1 file changed, 2 insertions(+)
> 
>

applied, thanks!

not sure how many use the `noopt`, on debugging - for what it's mostly useful,
building directly in the upstream source tree seems more fitting anyway, especially
for modify-build-test runs or bisects. Maybe we could just drop any mention of it?  




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

* Re: [pve-devel] applied: Re: [PATCH qemu 1/2] d/rules: add missing export for CFLAGS
  2023-02-14  9:07 ` [pve-devel] applied: Re: [PATCH qemu 1/2] d/rules: add missing export for CFLAGS Thomas Lamprecht
@ 2023-02-15 12:03   ` Fiona Ebner
  0 siblings, 0 replies; 4+ messages in thread
From: Fiona Ebner @ 2023-02-15 12:03 UTC (permalink / raw)
  To: Thomas Lamprecht, Proxmox VE development discussion

Am 14.02.23 um 10:07 schrieb Thomas Lamprecht:
> On 10/02/2023 10:39, Fiona Ebner wrote:
>> Otherwise, they don't affect the build of QEMU at all.
>>
>> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
>> ---
>>  debian/rules | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>>
> 
> applied, thanks!
> 
> not sure how many use the `noopt`, on debugging - for what it's mostly useful,
> building directly in the upstream source tree seems more fitting anyway, especially
> for modify-build-test runs or bisects. Maybe we could just drop any mention of it?  

Fine by me too. We could also make it work by using the --enable-debug
configure switch (stumbled upon that yesterday). Whichever you prefer.




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

end of thread, other threads:[~2023-02-15 12:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-10  9:39 [pve-devel] [PATCH qemu 1/2] d/rules: add missing export for CFLAGS Fiona Ebner
2023-02-10  9:39 ` [pve-devel] [PATCH qemu 2/2] d/rules: add note explaining why using noopt doesn't currenlty work Fiona Ebner
2023-02-14  9:07 ` [pve-devel] applied: Re: [PATCH qemu 1/2] d/rules: add missing export for CFLAGS Thomas Lamprecht
2023-02-15 12:03   ` Fiona Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal