We are getting build paths warnings from ALL go programs. -trimpath
doesn't actually work everywhere, which is part of the complexity of
the fix.

I have a wider scope fix in progress, but I'm out of the office, so it
won't appear in the tree until next week.

Bruce

On Mon, Aug 29, 2022 at 12:41 AM Chen Qi <[email protected]> wrote:
>
> We are get 'buldpaths' QA issue for nerdctl. We need to add
> '-trimpath' build option to it. As the docs (go help build) says:
>
> """
> -trimpath
>   remove all file system paths from the resulting executable.
>   Instead of absolute file system paths, the recorded file names
>   will begin with either "go" (for the standard library),
>   or a module path@version (when using modules),
>   or a plain import path (when using GOPATH).
> """
>
> Signed-off-by: Chen Qi <[email protected]>
> ---
>  ...1-Makefile-allow-external-specification-of-build-setti.patch | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git 
> a/recipes-containers/nerdctl/nerdctl/0001-Makefile-allow-external-specification-of-build-setti.patch
>  
> b/recipes-containers/nerdctl/nerdctl/0001-Makefile-allow-external-specification-of-build-setti.patch
> index 0661dd8..fd9c8eb 100644
> --- 
> a/recipes-containers/nerdctl/nerdctl/0001-Makefile-allow-external-specification-of-build-setti.patch
> +++ 
> b/recipes-containers/nerdctl/nerdctl/0001-Makefile-allow-external-specification-of-build-setti.patch
> @@ -18,7 +18,7 @@ Index: nerdctl-v0.17.0/src/import/Makefile
>
>  -export GO_BUILD=GO111MODULE=on CGO_ENABLED=0 GOOS=$(GOOS) $(GO) build 
> -ldflags "-s -w -X $(PACKAGE)/pkg/version.Version=$(VERSION) -X 
> $(PACKAGE)/pkg/version.Revision=$(REVISION)"
>  +#export GO_BUILD=GO111MODULE=on CGO_ENABLED=0 GOOS=$(GOOS) $(GO) build 
> -ldflags "-s -w -X $(PACKAGE)/pkg/version.Version=$(VERSION) -X 
> $(PACKAGE)/pkg/version.Revision=$(REVISION)"
> -+export GO_BUILD=$(GO) build -ldflags "-s -w -X 
> $(PACKAGE)/pkg/version.Version=$(VERSION) -X 
> $(PACKAGE)/pkg/version.Revision=$(REVISION)"
> ++export GO_BUILD=$(GO) build -ldflags "-s -w -X 
> $(PACKAGE)/pkg/version.Version=$(VERSION) -X 
> $(PACKAGE)/pkg/version.Revision=$(REVISION)" -trimpath
>
>   ifdef VERBOSE
>         VERBOSE_FLAG := -v
> --
> 2.37.1
>
>
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7578): 
https://lists.yoctoproject.org/g/meta-virtualization/message/7578
Mute This Topic: https://lists.yoctoproject.org/mt/93319851/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to