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
This commit is contained in:
Thomas Hipp 2017-10-23 06:05:56 +00:00 committed by Git OBS Bridge
parent be292d868a
commit 9654131ffd
2 changed files with 9 additions and 1 deletions

View File

@ -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 Thu Oct 5 07:09:54 UTC 2017 - thipp@suse.de

View File

@ -299,10 +299,12 @@ mkdir -p $GOROOT/src
for i in $(ls %{buildroot}/usr/share/go/%{go_api}/src);do for i in $(ls %{buildroot}/usr/share/go/%{go_api}/src);do
ln -s /usr/share/go/%{go_api}/src/$i $GOROOT/src/$i ln -s /usr/share/go/%{go_api}/src/$i $GOROOT/src/$i
done 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 # copy document templates, packages, obj libs and command utilities
mkdir -p $GOROOT/bin mkdir -p $GOROOT/bin
mkdir -p $GOROOT/lib
# remove bootstrap # remove bootstrap
rm -rf pkg/bootstrap rm -rf pkg/bootstrap
mv pkg $GOROOT mv pkg $GOROOT