mirror of https://github.com/containers/podman.git
Merge pull request #10010 from lsm5/GO111MODULE-OFF-fix-build
fix build with with GO111MODULE=off
This commit is contained in:
commit
373f15f617
|
@ -12,9 +12,9 @@
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# %if ! 0% {?gobuild:1}
|
%if ! 0%{?gobuild:1}
|
||||||
%define gobuild(o:) go build -tags="$BUILDTAGS" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
|
%define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v -x %{?**};
|
||||||
#% endif
|
%endif
|
||||||
|
|
||||||
# podman hack directory
|
# podman hack directory
|
||||||
%define hackdir %{_builddir}/%{repo}-%{shortcommit0}
|
%define hackdir %{_builddir}/%{repo}-%{shortcommit0}
|
||||||
|
@ -30,12 +30,6 @@
|
||||||
%global commit0 #COMMIT#
|
%global commit0 #COMMIT#
|
||||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:8})
|
%global shortcommit0 %(c=%{commit0}; echo ${c:0:8})
|
||||||
|
|
||||||
# People want conmon packaged with the copr rpm
|
|
||||||
%global import_path_conmon github.com/containers/conmon
|
|
||||||
%global git_conmon https://%{import_path_conmon}
|
|
||||||
%global commit_conmon 41877362fc4685d55e0473d2e4a1cbe5e1debee0
|
|
||||||
%global shortcommit_conmon %(c=%{commit_conmon}; echo ${c:0:7})
|
|
||||||
|
|
||||||
Name: podman
|
Name: podman
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
Epoch: 99
|
Epoch: 99
|
||||||
|
@ -74,7 +68,8 @@ BuildRequires: libselinux-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
Requires: skopeo-containers
|
Requires: containers-common
|
||||||
|
Requires: conmon
|
||||||
Requires: containernetworking-plugins >= 0.6.0-3
|
Requires: containernetworking-plugins >= 0.6.0-3
|
||||||
Requires: iptables
|
Requires: iptables
|
||||||
%if 0%{?rhel} < 8 || 0%{?centos} < 8
|
%if 0%{?rhel} < 8 || 0%{?centos} < 8
|
||||||
|
@ -371,6 +366,26 @@ BuildArch: noarch
|
||||||
Man pages for the %{name} commands
|
Man pages for the %{name} commands
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?fedora} && ! 0%{?centos}
|
||||||
|
%package tests
|
||||||
|
Summary: Tests for %{name}
|
||||||
|
|
||||||
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
|
Requires: bats
|
||||||
|
Requires: jq
|
||||||
|
Requires: skopeo
|
||||||
|
Requires: nmap-ncat
|
||||||
|
Requires: httpd-tools
|
||||||
|
Requires: openssl
|
||||||
|
Requires: socat
|
||||||
|
Requires: buildah
|
||||||
|
|
||||||
|
%description tests
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
This package contains system tests for %{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -Sgit -n %{repo}-%{shortcommit0}
|
%autosetup -Sgit -n %{repo}-%{shortcommit0}
|
||||||
|
|
||||||
|
@ -416,18 +431,6 @@ BUILDTAGS=$BUILDTAGS make binaries docs
|
||||||
%else
|
%else
|
||||||
BUILDTAGS=$BUILDTAGS make binaries
|
BUILDTAGS=$BUILDTAGS make binaries
|
||||||
%endif
|
%endif
|
||||||
# build conmon
|
|
||||||
pushd conmon
|
|
||||||
|
|
||||||
mkdir _output
|
|
||||||
pushd _output
|
|
||||||
mkdir -p src/%{provider}.%{provider_tld}/{containers,opencontainers}
|
|
||||||
ln -s $(dirs +1 -l) src/%{import_path_conmon}
|
|
||||||
popd
|
|
||||||
|
|
||||||
export BUILDTAGS="selinux seccomp systemd $(%{hackdir}/hack/btrfs_installed_tag.sh) $(%{hackdir}/hack/btrfs_tag.sh)"
|
|
||||||
BUILDTAGS=$BUILDTAGS make
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -dp %{buildroot}%{_unitdir}
|
install -dp %{buildroot}%{_unitdir}
|
||||||
|
@ -444,10 +447,6 @@ PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{build
|
||||||
|
|
||||||
mv pkg/hooks/README.md pkg/hooks/README-hooks.md
|
mv pkg/hooks/README.md pkg/hooks/README-hooks.md
|
||||||
|
|
||||||
# install conmon
|
|
||||||
install -dp %{buildroot}%{_libexecdir}/%{name}
|
|
||||||
install -p -m 755 conmon/bin/conmon %{buildroot}%{_libexecdir}/%{name}
|
|
||||||
|
|
||||||
# source codes for building projects
|
# source codes for building projects
|
||||||
%if 0%{?with_devel}
|
%if 0%{?with_devel}
|
||||||
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
||||||
|
@ -467,6 +466,11 @@ for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go"
|
||||||
done
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?fedora} && ! 0%{?centos}
|
||||||
|
install -d -p %{buildroot}/%{_datadir}/%{name}/test/system
|
||||||
|
cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/
|
||||||
|
%endif
|
||||||
|
|
||||||
# testing files for this project
|
# testing files for this project
|
||||||
%if 0%{?with_unit_test} && 0%{?with_devel}
|
%if 0%{?with_unit_test} && 0%{?with_devel}
|
||||||
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
||||||
|
@ -522,7 +526,6 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
||||||
%{_datadir}/bash-completion/completions/*
|
%{_datadir}/bash-completion/completions/*
|
||||||
%{_datadir}/zsh/site-functions/*
|
%{_datadir}/zsh/site-functions/*
|
||||||
%{_datadir}/fish/vendor_completions.d/*
|
%{_datadir}/fish/vendor_completions.d/*
|
||||||
%{_libexecdir}/%{name}/conmon
|
|
||||||
%config(noreplace) %{_sysconfdir}/cni/net.d/87-%{name}-bridge.conflist
|
%config(noreplace) %{_sysconfdir}/cni/net.d/87-%{name}-bridge.conflist
|
||||||
%{_unitdir}/podman-auto-update.service
|
%{_unitdir}/podman-auto-update.service
|
||||||
%{_unitdir}/podman-auto-update.timer
|
%{_unitdir}/podman-auto-update.timer
|
||||||
|
@ -558,6 +561,13 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
||||||
%{_mandir}/man5/*.5*
|
%{_mandir}/man5/*.5*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?fedora} && ! 0%{?centos}
|
||||||
|
%files tests
|
||||||
|
%license LICENSE
|
||||||
|
%{_datadir}/%{name}/test
|
||||||
|
%dir %{_datadir}/%{name}/test/system
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Aug 4 2018 Dan Walsh <dwalsh@redhat.com> - 0.8.1-1.git6b4ab2a
|
* Sat Aug 4 2018 Dan Walsh <dwalsh@redhat.com> - 0.8.1-1.git6b4ab2a
|
||||||
- Bump to v0.8.1
|
- Bump to v0.8.1
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
package types // import "github.com/docker/docker/api/types"
|
// copied from github.com/docker/docker/api/types
|
||||||
|
package types
|
||||||
|
|
||||||
// AuthConfig contains authorization information for connecting to a Registry
|
// AuthConfig contains authorization information for connecting to a Registry
|
||||||
type AuthConfig struct {
|
type AuthConfig struct {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
package types // import "github.com/docker/docker/api/types"
|
// copied from github.com/docker/docker/api/types
|
||||||
|
package types
|
||||||
|
|
||||||
// ComponentVersion describes the version information for a specific component.
|
// ComponentVersion describes the version information for a specific component.
|
||||||
type ComponentVersion struct {
|
type ComponentVersion struct {
|
||||||
|
|
Loading…
Reference in New Issue