From c849611c8abad1d0e34b50278348816c5cf8887e Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 20 May 2014 14:58:54 -0400 Subject: [PATCH] another fix for bz1099206 --- golang.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/golang.spec b/golang.spec index 013d442..910cec2 100644 --- a/golang.spec +++ b/golang.spec @@ -39,7 +39,7 @@ Name: golang Version: 1.2.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: The Go Programming Language License: BSD @@ -581,7 +581,13 @@ 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 "{}" \; @@ -960,6 +966,9 @@ find %{goroot}/pkg/openbsd_amd64/ -type f -name '*.a' -exec touch "{}" \; %changelog +* Tue May 20 2014 Vincent Batts 1.2.2-5 +- bz1099206 more fixing, this time for the directories themselves + * Tue May 20 2014 Vincent Batts 1.2.2-4 - fix the existence and alternatives of `go` and `gofmt`