Skip to content

Commit

Permalink
Merge pull request #6478 from rhatdan/abisupport
Browse files Browse the repository at this point in the history
Remove use of ABISupport buildtag
  • Loading branch information
openshift-merge-robot authored Jun 3, 2020
2 parents 986a277 + 9263ed2 commit 1f8c509
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 29 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ETCDIR ?= /etc
TMPFILESDIR ?= ${PREFIX}/lib/tmpfiles.d
SYSTEMDDIR ?= ${PREFIX}/lib/systemd/system
USERSYSTEMDDIR ?= ${PREFIX}/lib/systemd/user
REMOTETAGS ?= !ABISupport remote exclude_graphdriver_btrfs btrfs_noversion exclude_graphdriver_devicemapper containers_image_openpgp
REMOTETAGS ?= remote exclude_graphdriver_btrfs btrfs_noversion exclude_graphdriver_devicemapper containers_image_openpgp
BUILDTAGS ?= \
$(shell hack/apparmor_tag.sh) \
$(shell hack/btrfs_installed_tag.sh) \
Expand All @@ -44,7 +44,7 @@ ifeq ($(shell go help mod >/dev/null 2>&1 && echo true), true)
GO_BUILD=GO111MODULE=on $(GO) build -mod=vendor
endif

BUILDTAGS_CROSS ?= ABISupport containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay
BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay
ifneq (,$(findstring varlink,$(BUILDTAGS)))
PODMAN_VARLINK_DEPENDENCIES = pkg/varlink/iopodman.go
endif
Expand Down Expand Up @@ -185,7 +185,7 @@ ifeq (,$(findstring systemd,$(BUILDTAGS)))
@echo "Podman is being compiled without the systemd build tag. Install libsystemd on \
Ubuntu or systemd-devel on rpm based distro for journald support."
endif
$(GO_BUILD) $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN)' -tags "ABISupport $(BUILDTAGS)" -o $@ $(PROJECT)/cmd/podman
$(GO_BUILD) $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN)' -tags "$(BUILDTAGS)" -o $@ $(PROJECT)/cmd/podman

.PHONY: podman
podman: bin/podman
Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/registry/config_abi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ABISupport
// +build !remote

package registry

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/registry/config_tunnel.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !ABISupport
// +build remote

package registry

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/system/service_abi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ABISupport,!remote
// +build linux,!remote

package system

Expand Down
14 changes: 0 additions & 14 deletions cmd/podman/system/service_unsupported.go

This file was deleted.

6 changes: 3 additions & 3 deletions hack/golangci-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
declare -A BUILD_TAGS
# TODO: add systemd tag
BUILD_TAGS[default]="apparmor,seccomp,selinux"
BUILD_TAGS[abi]="${BUILD_TAGS[default]},ABISupport,varlink,!remoteclient"
BUILD_TAGS[tunnel]="${BUILD_TAGS[default]},!ABISupport,varlink,remoteclient"
BUILD_TAGS[abi]="${BUILD_TAGS[default]},varlink,!remoteclient"
BUILD_TAGS[tunnel]="${BUILD_TAGS[default]},remote,varlink,remoteclient"

declare -A SKIP_DIRS
SKIP_DIRS[abi]=""
# TODO: add "ABISupport" build tag to pkg/api
# TODO: add "remote" build tag to pkg/api
SKIP_DIRS[tunnel]="pkg/api"

[[ $1 == run ]] && shift
Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/infra/abi/manifest.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ABISupport
// +build !remote

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/infra/runtime_abi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ABISupport
// +build !remote

package infra

Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/infra/runtime_abi_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !ABISupport
// +build remote

package infra

Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/infra/runtime_libpod.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ABISupport
// +build !remote

package infra

Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/infra/runtime_proxy.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ABISupport
// +build !remote

package infra

Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/infra/runtime_tunnel.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !ABISupport
// +build remote

package infra

Expand Down

0 comments on commit 1f8c509

Please sign in to comment.