Skip to content

Commit

Permalink
rpm: Change absolute paths to relative paths
Browse files Browse the repository at this point in the history
The new version of rpm in fc41 now adds a subdirectory.

So the hardcoded paths to BUILD were broken, use relative.
  • Loading branch information
afbjorklund committed Jan 22, 2025
1 parent 5c70d57 commit a2b7721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packaging/rpm/SPECS/cri-dockerd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ cri-dockerd is a lightweight implementation of the CRI specification which talks
%setup -q -c -n src -a 0

%build
cp %{_topdir}/SOURCES/LICENSE /root/rpmbuild/BUILD/src/LICENSE
cp %{_topdir}/SOURCES/LICENSE LICENSE
export CRI_DOCKER_GITCOMMIT=%{_gitcommit}
mkdir -p /go/src/github.com/Mirantis
ln -s /root/rpmbuild/BUILD/src/app /go/src/github.com/Mirantis/cri-dockerd
cd /root/rpmbuild/BUILD/src/app
ln -s $PWD/app /go/src/github.com/Mirantis/cri-dockerd
cd app
GOPROXY="https://proxy.golang.org" GO111MODULE=on go build -ldflags "%{_buildldflags}"

%check
Expand Down

0 comments on commit a2b7721

Please sign in to comment.