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>
This commit is contained in:
Max Goltzsche 2020-02-09 21:15:23 +01:00
parent ee811431d2
commit c588ae1428
No known key found for this signature in database
GPG Key ID: F8B5AF50344BB503
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@ install.libseccomp.sudo:
cmd/podman/varlink/iopodman.go: .gopathok cmd/podman/varlink/io.podman.varlink 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). # Only generate the varlink code on Linux (see issue #4814).
GO111MODULE=off $(GO) generate ./cmd/podman/varlink/... GO111MODULE=off $(GO) generate ./cmd/podman/varlink/...
endif endif