From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 24 May 2016 21:13:54 +0200 Subject: [Buildroot] [PATCH v2 6/6] package/go: Set file timestamp In-Reply-To: References: Message-ID: <20160524211354.20788c35@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Thu, 19 May 2016 22:25:02 +0000, Geoff Levand wrote: > Set all file timestamps to prevent the go compiler from rebuilding any > built in packages when programs are built. > > Signed-off-by: Geoff Levand > --- > package/go/go.mk | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/package/go/go.mk b/package/go/go.mk > index 8565a86..a2babab 100644 > --- a/package/go/go.mk > +++ b/package/go/go.mk > @@ -119,6 +119,10 @@ define HOST_GO_INSTALL_CMDS > # There is a known issue which requires the go sources to be installed > # https://golang.org/issue/2775 > cp -a $(@D)/src $(HOST_GO_ROOT)/ > + > + # Set all file timestamps to prevent the go compiler from rebuilding any > + # built in packages when programs are built. > + find $(HOST_GO_ROOT) -type f -exec touch -r $(HOST_GO_TMP)/bin/go {} \; > endef That's weird, why is it needed? Why are timestamps wrong in the first place? Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com