Skip to content

Commit 23b8407

Browse files
committed
app-containers/docker-cli: Sync with Gentoo and backport fix to stable
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
1 parent 0bec7ab commit 23b8407

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

sdk_container/src/third_party/portage-stable/app-containers/docker-cli/docker-cli-28.4.0.ebuild

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
EAPI=8
55

6-
inherit shell-completion go-module
6+
inherit shell-completion go-env go-module toolchain-funcs
77
MY_PV=${PV/_/-}
88

99
# update this on every bump
@@ -43,14 +43,14 @@ src_prepare() {
4343

4444
src_compile() {
4545
export DISABLE_WARN_OUTSIDE_CONTAINER=1
46-
# setup CFLAGS and LDFLAGS for separate build target
47-
# see https://github.com/tianon/docker-overlay/pull/10
48-
CGO_CFLAGS+=" -I${ESYSROOT}/usr/include"
49-
CGO_LDFLAGS+=" -L${ESYSROOT}/usr/$(get_libdir)"
50-
emake \
51-
VERSION="${PV}" \
52-
GITCOMMIT="${GIT_COMMIT}" \
53-
dynbinary manpages
46+
47+
myemakeargs=(
48+
VERSION="${PV}"
49+
GITCOMMIT="${GIT_COMMIT}"
50+
)
51+
52+
emake "${myemakeargs[@]}" dynbinary
53+
tc-env_build go-env_run emake "${myemakeargs[@]}" manpages
5454
}
5555

5656
src_install() {

sdk_container/src/third_party/portage-stable/app-containers/docker-cli/docker-cli-29.1.3.ebuild

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
EAPI=8
55

6-
inherit shell-completion go-module
6+
inherit shell-completion go-env go-module toolchain-funcs
77
MY_PV=${PV/_/-}
88

99
# update this on every bump
@@ -32,14 +32,14 @@ src_prepare() {
3232

3333
src_compile() {
3434
export DISABLE_WARN_OUTSIDE_CONTAINER=1
35-
# setup CFLAGS and LDFLAGS for separate build target
36-
# see https://github.com/tianon/docker-overlay/pull/10
37-
CGO_CFLAGS+=" -I${ESYSROOT}/usr/include"
38-
CGO_LDFLAGS+=" -L${ESYSROOT}/usr/$(get_libdir)"
39-
emake \
40-
VERSION="${PV}" \
41-
GITCOMMIT="${GIT_COMMIT}" \
42-
dynbinary manpages
35+
36+
myemakeargs=(
37+
VERSION="${PV}"
38+
GITCOMMIT="${GIT_COMMIT}"
39+
)
40+
41+
emake "${myemakeargs[@]}" dynbinary
42+
tc-env_build go-env_run emake "${myemakeargs[@]}" manpages
4343
}
4444

4545
src_install() {

0 commit comments

Comments
 (0)