diff options
| author | Andrei Gherzan <andrei.gherzan@huawei.com> | 2022-07-05 12:17:49 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-07-05 16:25:25 -0400 |
| commit | a33188fab89bc16a82742b0cc865dda239c225dc (patch) | |
| tree | dd4d64652a61862836b0b6ba01600b8ce0ace148 /recipes-containers/podman/podman_git.bb | |
| parent | 320f44c6e9af463a85b58e0d87ca70273c6b87f6 (diff) | |
| download | meta-virtualization-a33188fab89bc16a82742b0cc865dda239c225dc.tar.gz | |
podman: Fix host contamination
The project's internal Makefile uses BUILDFLAGS variable to pass
arguments to `go build` while Yocto/OE defines it as GOBUILDFLAGS. Add a
patch to align this and avoid using host headers in which case, a musl
build will fail similarly to:
| [...]ld: /tmp/go-link-3172010154/000015.o: in function `vfprintf':
| /usr/include/x86_64-linux-gnu/bits/stdio2.h:130: undefined reference to `__vfprintf_chk'
| [...]ld: /tmp/go-link-3172010154/000016.o: in function `fprintf':
| /usr/include/x86_64-linux-gnu/bits/stdio2.h:100: undefined reference to `__fprintf_chk'
| collect2: error: ld returned 1 exit status
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/podman/podman_git.bb')
| -rw-r--r-- | recipes-containers/podman/podman_git.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb index 913aea84..547bc4e7 100644 --- a/recipes-containers/podman/podman_git.bb +++ b/recipes-containers/podman/podman_git.bb | |||
| @@ -20,6 +20,7 @@ DEPENDS = " \ | |||
| 20 | SRCREV = "cedbbfa543651a13055a1fe093a4d0a2a28ccdfd" | 20 | SRCREV = "cedbbfa543651a13055a1fe093a4d0a2a28ccdfd" |
| 21 | SRC_URI = " \ | 21 | SRC_URI = " \ |
| 22 | git://github.com/containers/libpod.git;branch=v4.1;protocol=https \ | 22 | git://github.com/containers/libpod.git;branch=v4.1;protocol=https \ |
| 23 | file://0001-Rename-BUILDFLAGS-to-GOBUILDFLAGS.patch;patchdir=src/import \ | ||
| 23 | " | 24 | " |
| 24 | 25 | ||
| 25 | LICENSE = "Apache-2.0" | 26 | LICENSE = "Apache-2.0" |
