Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
78cef19e
Commit
78cef19e
authored
Jul 06, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
golang: expose gcc-bin
parent
3c4bbcdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
component/golang/buildout.cfg
component/golang/buildout.cfg
+7
-2
component/golang/goenv.sh.in
component/golang/goenv.sh.in
+1
-1
No files found.
component/golang/buildout.cfg
View file @
78cef19e
...
@@ -17,10 +17,12 @@ configure-command = :
...
@@ -17,10 +17,12 @@ configure-command = :
location = @@LOCATION@@
location = @@LOCATION@@
make-binary =
make-binary =
make-targets= cd src && ./all.bash && cp -alf .. ${:location}
make-targets= cd src && ./all.bash && cp -alf .. ${:location}
# gcc version to use
gcc-bin-directory = ${gcc-8.2:location}/bin
# some testdata files have an issue with slapos.extension.strip.
# some testdata files have an issue with slapos.extension.strip.
post-install = ${findutils:location}/bin/find ${:location}/src -type d -name testdata -exec rm -rf {} \; || true
post-install = ${findutils:location}/bin/find ${:location}/src -type d -name testdata -exec rm -rf {} \; || true
environment =
environment =
PATH=${
gcc-8.2:location}/bin
:%(PATH)s
PATH=${
:gcc-bin-directory}
:%(PATH)s
GOROOT_FINAL=${:location}
GOROOT_FINAL=${:location}
${:environment-extra}
${:environment-extra}
...
@@ -104,6 +106,9 @@ depends = ${gowork.goinstall:recipe}
...
@@ -104,6 +106,9 @@ depends = ${gowork.goinstall:recipe}
# go version used for the workspace (possible to override in applications)
# go version used for the workspace (possible to override in applications)
golang = ${golang1.10:location}
golang = ${golang1.10:location}
# gcc version must be compatible with go version selected
gcc-bin-directory = ${golang1.10:gcc-bin-directory}
# no special build flags by default
# no special build flags by default
buildflags =
buildflags =
...
@@ -123,7 +128,7 @@ recipe = slapos.recipe.template
...
@@ -123,7 +128,7 @@ recipe = slapos.recipe.template
url = ${:_profile_base_location_}/goenv.sh.in
url = ${:_profile_base_location_}/goenv.sh.in
output = ${gowork:directory}/env.sh
output = ${gowork:directory}/env.sh
depends = ${gowork.mkdir:recipe}
depends = ${gowork.mkdir:recipe}
md5sum = 7
a067a3974c446c3eaa0e82818ba1adb
md5sum = 7
eaad1f9aabd3cfad554975098c5d4c3
[gowork.mkdir]
[gowork.mkdir]
# NOTE do not use slapos.cookbook:mkdirectory here - if anything in software (not instance)
# NOTE do not use slapos.cookbook:mkdirectory here - if anything in software (not instance)
...
...
component/golang/goenv.sh.in
View file @
78cef19e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# ---- 8< ---- (buildout substitution here)
# ---- 8< ---- (buildout substitution here)
# PATH so that go & friends work out of the box
# PATH so that go & friends work out of the box
export PATH=${gowork:golang}/bin:${git:location}/bin:${pkgconfig:location}/bin:${buildout:bin-directory}:$PATH
export PATH=${gowork:golang}/bin:${git:location}/bin:${pkgconfig:location}/bin:${buildout:bin-directory}:$
{gowork:gcc-bin-directory}:$
PATH
X=${gowork:directory}
X=${gowork:directory}
export PKG_CONFIG_PATH=$(echo -n "${gowork:cpkgpath}" |tr '\n' ':'):$PKG_CONFIG_PATH
export PKG_CONFIG_PATH=$(echo -n "${gowork:cpkgpath}" |tr '\n' ':'):$PKG_CONFIG_PATH
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment