public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [OE-core][PATCH] nerdctl: add -buildmode=pie to avoid textrel QA error
@ 2026-02-04  6:32 Qi.Chen
  2026-02-04  6:34 ` ChenQi
  0 siblings, 1 reply; 2+ messages in thread
From: Qi.Chen @ 2026-02-04  6:32 UTC (permalink / raw)
  To: openembedded-core

From: Chen Qi <Qi.Chen@windriver.com>

On qemuarm, building nerdctl fails with QA error about textrel.
Add '-buildmode=pie' to fix this issue.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 recipes-containers/nerdctl/nerdctl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-containers/nerdctl/nerdctl_git.bb b/recipes-containers/nerdctl/nerdctl_git.bb
index 1c37bcf8..5429e6e6 100644
--- a/recipes-containers/nerdctl/nerdctl_git.bb
+++ b/recipes-containers/nerdctl/nerdctl_git.bb
@@ -78,7 +78,7 @@ do_compile() {
         export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
 
         # -trimpath removes build paths from the binary (required for reproducible builds)
-        oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw" binaries
+        oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw -buildmode=pie" binaries
 }
 
 do_install() {
-- 
2.34.1



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

* Re: [OE-core][PATCH] nerdctl: add -buildmode=pie to avoid textrel QA error
  2026-02-04  6:32 [OE-core][PATCH] nerdctl: add -buildmode=pie to avoid textrel QA error Qi.Chen
@ 2026-02-04  6:34 ` ChenQi
  0 siblings, 0 replies; 2+ messages in thread
From: ChenQi @ 2026-02-04  6:34 UTC (permalink / raw)
  To: openembedded-core

Sorry, please ignore this patch.
I'll send to the correct mailing list.

Regards,
Qi

On 2/4/26 14:32, Chen Qi via lists.openembedded.org wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> On qemuarm, building nerdctl fails with QA error about textrel.
> Add '-buildmode=pie' to fix this issue.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>   recipes-containers/nerdctl/nerdctl_git.bb | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-containers/nerdctl/nerdctl_git.bb b/recipes-containers/nerdctl/nerdctl_git.bb
> index 1c37bcf8..5429e6e6 100644
> --- a/recipes-containers/nerdctl/nerdctl_git.bb
> +++ b/recipes-containers/nerdctl/nerdctl_git.bb
> @@ -78,7 +78,7 @@ do_compile() {
>           export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
>   
>           # -trimpath removes build paths from the binary (required for reproducible builds)
> -        oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw" binaries
> +        oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw -buildmode=pie" binaries
>   }
>   
>   do_install() {
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#230496): https://lists.openembedded.org/g/openembedded-core/message/230496
> Mute This Topic: https://lists.openembedded.org/mt/117630452/7304865
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [Qi.Chen@eng.windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>



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

end of thread, other threads:[~2026-02-04  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-04  6:32 [OE-core][PATCH] nerdctl: add -buildmode=pie to avoid textrel QA error Qi.Chen
2026-02-04  6:34 ` ChenQi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox