just let go control its own freshness

This commit is contained in:
Vincent Batts 2014-05-20 15:35:45 -04:00
parent c849611c8a
commit 7619d5057c
1 changed files with 18 additions and 24 deletions

View File

@ -581,63 +581,57 @@ fi
%endif
# All these archives need to be newer than the corresponding source in goroot
# and the _directory_ of the source needs to match the source. (since the mkdir by
# rpm causes the directories to be newer)
# https://bugzilla.redhat.com/show_bug.cgi?id=1099206
%post src
ref_file=$(find %{goroot}/src/pkg/ -type f -name '*.go')
find %{goroot}/src/pkg -type d -exec touch -r $ref_file "{}" \;
%post pkg-linux-386
find %{goroot}/pkg/linux_386/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=linux GOARCH=386 go install std
%post pkg-linux-amd64
find %{goroot}/pkg/linux_amd64/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=linux GOARCH=amd64 go install std
%post pkg-linux-arm
find %{goroot}/pkg/linux_arm/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=linux GOARCH=arm go install std
%post pkg-darwin-386
find %{goroot}/pkg/darwin_386/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=darwin GOARCH=386 go install std
%post pkg-darwin-amd64
find %{goroot}/pkg/darwin_amd64/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=darwin GOARCH=amd64 go install std
%post pkg-windows-386
find %{goroot}/pkg/windows_386/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=windows GOARCH=386 go install std
%post pkg-windows-amd64
find %{goroot}/pkg/windows_amd64/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=windows GOARCH=amd64 go install std
%post pkg-plan9-386
find %{goroot}/pkg/plan9_386/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=plan9 GOARCH=386 go install std
%post pkg-plan9-amd64
find %{goroot}/pkg/plan9_amd64/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=plan9 GOARCH=amd64 go install std
%post pkg-freebsd-386
find %{goroot}/pkg/freebsd_386/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=freebsd GOARCH=386 go install std
%post pkg-freebsd-amd64
find %{goroot}/pkg/freebsd_amd64/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=freebsd GOARCH=amd64 go install std
%post pkg-freebsd-arm
find %{goroot}/pkg/freebsd_arm/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=freebsd GOARCH=arm go install std
%post pkg-netbsd-386
find %{goroot}/pkg/netbsd_386/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=netbsd GOARCH=386 go install std
%post pkg-netbsd-amd64
find %{goroot}/pkg/netbsd_amd64/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=netbsd GOARCH=amd64 go install std
%post pkg-netbsd-arm
find %{goroot}/pkg/netbsd_arm/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=netbsd GOARCH=arm go install std
%post pkg-openbsd-386
find %{goroot}/pkg/openbsd_386/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=openbsd GOARCH=386 go install std
%post pkg-openbsd-amd64
find %{goroot}/pkg/openbsd_amd64/ -type f -name '*.a' -exec touch "{}" \;
GOROOT=%{goroot} GOOS=openbsd GOARCH=amd64 go install std
%files
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS VERSION
@ -967,7 +961,7 @@ find %{goroot}/pkg/openbsd_amd64/ -type f -name '*.a' -exec touch "{}" \;
%changelog
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-5
- bz1099206 more fixing, this time for the directories themselves
- bz1099206 more fixing. Let go fix its own timestamps and freshness
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-4
- fix the existence and alternatives of `go` and `gofmt`