All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] go-mod.bbclass: use append to add `modcacherw`
@ 2020-09-26 10:53 Peter A. Bigot
  2020-09-26 13:47 ` [OE-core] " Otavio Salvador
  0 siblings, 1 reply; 2+ messages in thread
From: Peter A. Bigot @ 2020-09-26 10:53 UTC (permalink / raw)
  To: openembedded-core; +Cc: otavio, Peter A. Bigot

This class provided default build flags but includes the base go class
which also provides default flags.  Use a different mechanism to
extend the default flags without discarding `-trimpath` from the base
class.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
---
 meta/classes/go-mod.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/go-mod.bbclass b/meta/classes/go-mod.bbclass
index 5871d025067..cabb04d0ec0 100644
--- a/meta/classes/go-mod.bbclass
+++ b/meta/classes/go-mod.bbclass
@@ -12,7 +12,7 @@
 
 # The '-modcacherw' option ensures we have write access to the cached objects so
 # we avoid errors during clean task as well as when removing the TMPDIR.
-export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -modcacherw"
+GOBUILDFLAGS_append = " -modcacherw"
 
 inherit go
 
-- 
2.25.1


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

* Re: [OE-core] [PATCH] go-mod.bbclass: use append to add `modcacherw`
  2020-09-26 10:53 [PATCH] go-mod.bbclass: use append to add `modcacherw` Peter A. Bigot
@ 2020-09-26 13:47 ` Otavio Salvador
  0 siblings, 0 replies; 2+ messages in thread
From: Otavio Salvador @ 2020-09-26 13:47 UTC (permalink / raw)
  To: Peter A. Bigot
  Cc: Patches and discussions about the oe-core layer, Otavio Salvador

Em sáb., 26 de set. de 2020 às 07:53, Peter A. Bigot <pab@pabigot.com> escreveu:
>
> This class provided default build flags but includes the base go class
> which also provides default flags.  Use a different mechanism to
> extend the default flags without discarding `-trimpath` from the base
> class.
>
> Signed-off-by: Peter A. Bigot <pab@pabigot.com>

Acked-by: Otavio Salvador <otavio@ossystems.com.br>

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750

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

end of thread, other threads:[~2020-09-26 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-26 10:53 [PATCH] go-mod.bbclass: use append to add `modcacherw` Peter A. Bigot
2020-09-26 13:47 ` [OE-core] " Otavio Salvador

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.