From 9654131ffd50329c440c486bae51e0f5ec483f9f0f7fac4e00457187fa0dd7b1 Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Mon, 23 Oct 2017 06:05:56 +0000 Subject: [PATCH] Accepting request 535653 from home:cyphar:go:lib_timezone - Install $GOROOT/lib packages, to include upstream files such as the timezone database. bsc#1064522 OBS-URL: https://build.opensuse.org/request/show/535653 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=302 --- go.changes | 6 ++++++ go.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/go.changes b/go.changes index 2fa71c1..5d7d3e7 100644 --- a/go.changes +++ b/go.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Oct 21 11:39:37 UTC 2017 - asarai@suse.com + +- Install $GOROOT/lib packages, to include upstream files such as the timezone + database. bsc#1064522 + ------------------------------------------------------------------- Thu Oct 5 07:09:54 UTC 2017 - thipp@suse.de diff --git a/go.spec b/go.spec index 59f55fa..5eed6d8 100644 --- a/go.spec +++ b/go.spec @@ -299,10 +299,12 @@ mkdir -p $GOROOT/src for i in $(ls %{buildroot}/usr/share/go/%{go_api}/src);do ln -s /usr/share/go/%{go_api}/src/$i $GOROOT/src/$i done +# add lib files that are needed (such as the timezone database). +install -d $GOROOT/lib +find lib -type f -exec install -D -m644 {} $GOROOT/{} \; # copy document templates, packages, obj libs and command utilities mkdir -p $GOROOT/bin -mkdir -p $GOROOT/lib # remove bootstrap rm -rf pkg/bootstrap mv pkg $GOROOT