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
895290f3
Commit
895290f3
authored
Mar 04, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug in the path to replace in OBS.
parent
7a7e41e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
obs/generic/build-scripts/configuration_information.sh
obs/generic/build-scripts/configuration_information.sh
+4
-3
obs/generic/build-scripts/obs.sh
obs/generic/build-scripts/obs.sh
+2
-2
obs/generic/templates/Makefile.in
obs/generic/templates/Makefile.in
+6
-4
No files found.
obs/generic/build-scripts/configuration_information.sh
View file @
895290f3
...
...
@@ -6,10 +6,10 @@ INITIAL_DIR="$(pwd)"/
# RELEASE INFORMATION
# Modify the following variables accordingly
VERSION
=
0
VERSION
=
1
#RECIPE_VERSION=1
RELEASE
=
1
SOFTWARE_NAME
=
fluent-bit
SOFTWARE_NAME
=
lunzip
COMPOUND_VERSION
=
${
VERSION
}
-
${
RELEASE
}
VERSION_NAME
=
${
SOFTWARE_NAME
}
_
${
COMPOUND_VERSION
}
...
...
@@ -25,7 +25,7 @@ TARBALL_DIR=$INITIAL_DIR/tarballs/$VERSION_NAME
# BUILD INFORMATION
# Modify the following variables accordingly
SR_PATH
=
$TARBALL_DIR
/software_release/component/
fluent-bit
/buildout.cfg
SR_PATH
=
$TARBALL_DIR
/software_release/component/
lunzip
/buildout.cfg
TEMPLATE_DIR
=
$INITIAL_DIR
/templates
BUILD_DIR
=
$TARBALL_DIR
/build/
# former BUILD_ROOT_DIRECTORY
...
...
@@ -39,6 +39,7 @@ TARGET_DIR=`realpath -m $TARGET_DIR`
OBS_DIR
=
`
realpath
-m
$OBS_DIR
`
DIST_DIR
=
`
realpath
-m
$DIST_DIR
`
TARBALL_DIR
=
`
realpath
-m
$TARBALL_DIR
`
SR_PATH
=
`
realpath
-m
$SR_PATH
`
TEMPLATE_DIR
=
`
realpath
-m
$TEMPLATE_DIR
`
BUILD_DIR
=
`
realpath
-m
$BUILD_DIR
`
RUN_BUILDOUT_DIR
=
`
realpath
-m
$RUN_BUILDOUT_DIR
`
...
...
obs/generic/build-scripts/obs.sh
View file @
895290f3
...
...
@@ -10,8 +10,8 @@ echo TMP_DIR = $TMP_DIR
# copy the Makefile at the root of the tarball
cp
$TEMPLATE_DIR
/tmp/Makefile
$TARBALL_DIR
/Makefile
# save the local
BUILD_DIR to replace it with the BUILD
_DIR of OBS' VM
echo
$
BUILD
_DIR
>
$TARBALL_DIR
/cache_creation_build_directory
# save the local
TARBALL_DIR to replace it with the TARBALL
_DIR of OBS' VM
echo
$
TARBALL
_DIR
>
$TARBALL_DIR
/cache_creation_build_directory
# clean the parts directory
rm
-rf
$RUN_BUILDOUT_DIR
/
{
.installed.cfg,parts/
}
...
...
obs/generic/templates/Makefile.in
View file @
895290f3
...
...
@@ -5,8 +5,10 @@ PY = $(PYTHON)
# This templates are replaced by build-scripts/template_stage.sh
# according to the values and regular expressions defined in
# build-scripts/configuration_information.sh
TARGET_DIR
=
%TARGET_DIR%
# this variable is pretty useless atm
BUILD_DIR
=
$(
shell
pwd
)
/build
# The variable TARGET_DIR is pretty useless atm
TARGET_DIR
=
%TARGET_DIR%
TARBALL_DIR
=
$(
shell
pwd
)
BUILD_DIR
=
$(TARBALL_DIR)
/build
INSTALL_DIR
=
$(BUILD_DIR)$(TARGET_DIR)
RUN_BUILDOUT_DIR
=
$(BUILD_DIR)$(TARGET_DIR)
#PATCHES_DIR := $(shell pwd)/patches
...
...
@@ -20,13 +22,13 @@ all: build
build
:
build-stamp
build-stamp
:
@
echo
"Fixing buildout path to
$(
BUILD
_DIR)
rather than
$(OLD_BUILD_DIR)
for buildout"
@
echo
"Fixing buildout path to
$(
TARBALL
_DIR)
rather than
$(OLD_BUILD_DIR)
for buildout"
################################################################################
# grep -rIl '$(OLD_DIRECTORY)' $(BUILD_DIR) 2> /dev/null | \
# xargs sed -i 's#$(OLD_DIRECTORY)#$(BUILD_DIR)#g' || \
# echo "No path to fix."
################################################################################
cd
$(RUN_BUILDOUT_DIR);
sed
-i
's#$(OLD_BUILD_DIR)#$(
BUILD
_DIR)#g'
buildout.cfg
bin/*
cd
$(RUN_BUILDOUT_DIR);
sed
-i
's#$(OLD_BUILD_DIR)#$(
TARBALL
_DIR)#g'
buildout.cfg
bin/*
echo
RUN_BUILDOUT_DIR
=
$(RUN_BUILDOUT_DIR)
\;
PY
=
$(PY)
cd
$(RUN_BUILDOUT_DIR)
&&
\
$(PY)
./bin/buildout
-v
...
...
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