summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Goltzsche <max.goltzsche@gmail.com>2020-02-09 21:15:23 +0100
committerMax Goltzsche <max.goltzsche@gmail.com>2020-02-09 21:25:59 +0100
commitc588ae1428306101eb4d730405119b9fb3f78489 (patch)
tree54b449cabd48bedda1bfd32e9ba629815a87d7ac
parentee811431d29962c3a801903ca3ca342a2000f65e (diff)
downloadpodman-c588ae1428306101eb4d730405119b9fb3f78489.tar.gz
podman-c588ae1428306101eb4d730405119b9fb3f78489.tar.bz2
podman-c588ae1428306101eb4d730405119b9fb3f78489.zip
Fix varlink code generation target.
Closes #5130. varlink code generation was skipped when `uname -o` did not print "GNU/Linux". However on some Linux systems (e.g. alpine) only "Linux" is printed which results in cmd/podman/varlink/iopodman.go not being generated. Thus the Makefile target condition has been changed to match "Linux". Signed-off-by: Max Goltzsche <max.goltzsche@gmail.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1e5aa4d77..5f71cb513 100644
--- a/Makefile
+++ b/Makefile
@@ -582,7 +582,7 @@ install.libseccomp.sudo:
cmd/podman/varlink/iopodman.go: .gopathok cmd/podman/varlink/io.podman.varlink
-ifeq ("$(shell uname -o)", "GNU/Linux")
+ifneq (,$(findstring Linux,$(shell uname -o)))
# Only generate the varlink code on Linux (see issue #4814).
GO111MODULE=off $(GO) generate ./cmd/podman/varlink/...
endif