dev-util/docker-language-server: compile with symbol tables

I originally copied the compile command from the Makefile, and modified
it according to the needs

However, it originally was passing on the `-s` and `-w` flag to the go
linker

From https://pkg.go.dev/cmd/link
```
-s
	Omit the symbol table and debug information.
	Implies the -w flag, which can be negated with -w=0.

-w
	Omit the DWARF symbol table.
```

So when the install phase happened, portage was complaining about pre
stripped files

This should be fixed now

Thanks goes to ago for finding this bug!

Closes: https://bugs.gentoo.org/977875
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
This commit is contained in:
ingenarel (NeoJesus)
2026-06-22 09:00:49 +06:00
parent d31c449fdc
commit e33a3ab7fa

View File

@@ -50,7 +50,7 @@ src_compile(){
VERSION="${PV}"
fi
CGO_ENABLED=0 ego build \
-ldflags="-s -w -X 'github.com/docker/docker-language-server/internal/pkg/cli/metadata.Version=${VERSION}'" \
-ldflags="-X 'github.com/docker/docker-language-server/internal/pkg/cli/metadata.Version=${VERSION}'" \
-o ./bin/"${PN}" ./cmd/"${PN}"
}