From 2854380e2d72654115ddb90e51281e44cbff5c2c Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 23 Mar 2023 11:12:36 -0500 Subject: [PATCH] patches/ebuilds: podman: Fix cross compiling Gentoo bugs [902569][0] and [902571][1] [0]: https://bugs.gentoo.org/show_bug.cgi?id=902569 [1]: https://bugs.gentoo.org/show_bug.cgi?id=902571 --- .../ebuilds/app-containers/podman/go-md2man.patch | 13 +++++++++++++ .../ebuilds/app-containers/podman/tc-export.patch | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 patches/ebuilds/app-containers/podman/go-md2man.patch create mode 100644 patches/ebuilds/app-containers/podman/tc-export.patch diff --git a/patches/ebuilds/app-containers/podman/go-md2man.patch b/patches/ebuilds/app-containers/podman/go-md2man.patch new file mode 100644 index 0000000..74e9e9d --- /dev/null +++ b/patches/ebuilds/app-containers/podman/go-md2man.patch @@ -0,0 +1,13 @@ +--- a/podman-4.4.1.ebuild 2023-03-22 01:23:44.252387512 -0000 ++++ b/podman-4.4.1.ebuild 2023-03-22 01:36:23.424387512 -0000 +@@ -37,8 +37,8 @@ + selinux? ( sys-libs/libselinux:= ) + " + DEPEND=" +- ${COMMON_DEPEND} +- dev-go/go-md2man" ++ ${COMMON_DEPEND}" ++BDEPEND="dev-go/go-md2man" + RDEPEND="${COMMON_DEPEND} + fuse? ( sys-fs/fuse-overlayfs ) + selinux? ( sec-policy/selinux-podman )" diff --git a/patches/ebuilds/app-containers/podman/tc-export.patch b/patches/ebuilds/app-containers/podman/tc-export.patch new file mode 100644 index 0000000..beab0c9 --- /dev/null +++ b/patches/ebuilds/app-containers/podman/tc-export.patch @@ -0,0 +1,11 @@ +--- a/podman-4.4.1-r1.ebuild 2023-03-23 16:15:10.845405285 -0000 ++++ b/podman-4.4.1-r1.ebuild 2023-03-23 16:15:54.433405285 -0000 +@@ -60,6 +60,8 @@ + has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:') + + sed "${makefile_sed_args[@]}" -i Makefile || die ++ ++ tc-export CC LD + } + + src_compile() {