Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.package
Commits
f7a2d4d3
Commit
f7a2d4d3
authored
Sep 20, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Support extends-cache
parent
979a58b2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
3 deletions
+34
-3
obs/_generic/build-scripts/10tarball_directory.sh
obs/_generic/build-scripts/10tarball_directory.sh
+1
-1
obs/_generic/build-scripts/20obs.sh
obs/_generic/build-scripts/20obs.sh
+3
-1
obs/_generic/compilation/makefile-scripts/compilation-env.sh.in
...eneric/compilation/makefile-scripts/compilation-env.sh.in
+1
-1
obs/lunzip/compilation/30local_buildout.cfg.in
obs/lunzip/compilation/30local_buildout.cfg.in
+15
-0
obs/lunzip/compilation/40obs_buildout.cfg.in
obs/lunzip/compilation/40obs_buildout.cfg.in
+14
-0
No files found.
obs/_generic/build-scripts/10tarball_directory.sh
View file @
f7a2d4d3
...
@@ -68,7 +68,7 @@ bin/buildout buildout:newest=true -v
...
@@ -68,7 +68,7 @@ bin/buildout buildout:newest=true -v
# build locally everything with gcc to get download-cache and extends-cache ready
# build locally everything with gcc to get download-cache and extends-cache ready
echo
"Finally running buildout for the local compilation..."
echo
"Finally running buildout for the local compilation..."
cp
"
$TARBALL_DIR
"
/30local_buildout.cfg buildout.cfg
cp
"
$TARBALL_DIR
"
/30local_buildout.cfg buildout.cfg
bin/buildout buildout:newest
=
true
-v
bin/buildout buildout:newest
=
true
-v
-c
buildout.cfg
### Fix the go/ directory.
### Fix the go/ directory.
...
...
obs/_generic/build-scripts/20obs.sh
View file @
f7a2d4d3
...
@@ -22,10 +22,12 @@ copy_and_solve_templates "$DISTRIB_FILES_SOFTWARE_DIR" "$OBS_DIR"
...
@@ -22,10 +22,12 @@ copy_and_solve_templates "$DISTRIB_FILES_SOFTWARE_DIR" "$OBS_DIR"
# ARCHIVES FILES
# ARCHIVES FILES
### Finalize the tarball directory preparation
### Finalize the tarball directory preparation
# delete the buildout directory, as the extends-cache extension caches the useful buildout files
rm
-rf
"
$BUILDOUT_DIR
"
# switch to the buildout wrapper for OBS
# switch to the buildout wrapper for OBS
cp
"
$TARBALL_DIR
"
/40obs_buildout.cfg
"
$RUN_BUILDOUT_DIR
"
/buildout.cfg
cp
"
$TARBALL_DIR
"
/40obs_buildout.cfg
"
$RUN_BUILDOUT_DIR
"
/buildout.cfg
# save the local $TARBALL_DIR path so that it is replaced by the $TARBALL_DIR path from OBS' VM
# save the local $TARBALL_DIR path so that it is replaced by the $TARBALL_DIR path from OBS' VM
echo
"
$
TARBALL_DIR
"
>
"
$TARBALL_DIR
"
/local_tarball
_directory_path
echo
"
$
BUILD_DIR
"
>
"
$TARBALL_DIR
"
/local_build
_directory_path
# add a stamp so that OBS does not clean the local preparation before compiling
# add a stamp so that OBS does not clean the local preparation before compiling
touch
"
$TARBALL_DIR
/clean-stamp"
touch
"
$TARBALL_DIR
/clean-stamp"
# copy required eggs that are not cached
# copy required eggs that are not cached
...
...
obs/_generic/compilation/makefile-scripts/compilation-env.sh.in
View file @
f7a2d4d3
...
@@ -7,5 +7,5 @@ BUILD_DIR="$TARBALL_DIR"/build
...
@@ -7,5 +7,5 @@ BUILD_DIR="$TARBALL_DIR"/build
INSTALL_DIR="$DESTDIR""$TARGET_DIR"
INSTALL_DIR="$DESTDIR""$TARGET_DIR"
RUN_BUILDOUT_DIR="$BUILD_DIR""$TARGET_DIR"
RUN_BUILDOUT_DIR="$BUILD_DIR""$TARGET_DIR"
# get the path of the BUILD_DIR of the first build (performed to prepare the cache for OBS)
# get the path of the BUILD_DIR of the first build (performed to prepare the cache for OBS)
OLD_
TARBALL_DIR="$(cat local_tarball
_directory_path)"
OLD_
BUILD_DIR="$(cat local_build
_directory_path)"
SLAPOS_BOOTSTRAP_SYSTEM_PYTHON=$(which python2.7 2> /dev/null || echo python3)
SLAPOS_BOOTSTRAP_SYSTEM_PYTHON=$(which python2.7 2> /dev/null || echo python3)
obs/lunzip/compilation/30local_buildout.cfg.in
0 → 100644
View file @
f7a2d4d3
[buildout]
rootdir = %TARGET_DIR%
destdir = %BUILD_DIR%
builddir = %RUN_BUILDOUT_DIR%
extends =
file://%BUILDOUT_ENTRY_POINT%
versions = versions
extends-cache = extends-cache
download-cache = download-cache
newest = false
[versions]
setuptools = %SETUPTOOLS_VERSION%
zc.buildout = %ZC_BUILDOUT_VERSION%
zc.recipe.egg = %ZC_RECIPE_EGG_VERSION%
obs/lunzip/compilation/40obs_buildout.cfg.in
0 → 100644
View file @
f7a2d4d3
[buildout]
rootdir = %TARGET_DIR%
destdir = %BUILD_DIR%
builddir = %RUN_BUILDOUT_DIR%
extends =
file://%BUILDOUT_ENTRY_POINT%
versions = versions
extends-cache = extends-cache
download-cache = download-cache
install-from-cache = true
[versions]
setuptools = %SETUPTOOLS_VERSION%
zc.buildout = %ZC_BUILDOUT_VERSION%
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