Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
0a6ddb9c
Commit
0a6ddb9c
authored
Sep 19, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ccache support and use it in rpmbb
parent
f2618b1b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
0 deletions
+34
-0
rpmbb
bin/rpmbb
+5
-0
config
etc/config
+6
-0
common
share/eterbuild/functions/common
+17
-0
config
share/eterbuild/functions/config
+6
-0
No files found.
bin/rpmbb
View file @
0a6ddb9c
...
...
@@ -73,6 +73,11 @@ mkdir -p "$RPMTOPDIR/RPMS"
test
-z
"
$LISTNAMES
"
&&
fatal
"Please run with spec(s) name"
test
-n
"
$LISTRPMARGS
"
&&
echog
"Run
$RPMBUILD
with options: '
$LISTRPMARGS
'"
# enable ccache using
if
[
-n
"
$CCACHE_ENABLE
"
]
;
then
enable_ccache
fi
# instead cbuild req
if
[
-n
"
$BUILDREQ
"
]
;
then
uni_buildreq
$LISTNAMES
...
...
etc/config
View file @
0a6ddb9c
...
...
@@ -64,3 +64,9 @@
# Path to Sisyphus repo (where i586/RPMS.classic) for rpmunmets build
#SISYPHUSPATH=/var/ftp/pub/ALTLinux/Sisyphus/
# enable ccache using
# CCACHE_ENABLE=yes
# set dir for ccache cache
# export CCACHE_DIR=$OURTMPDIR/ccache
share/eterbuild/functions/common
View file @
0a6ddb9c
...
...
@@ -181,3 +181,20 @@ is_ssh_target()
{
echo
"
$1
"
|
grep
-q
":"
}
enable_ccache
()
{
which ccache
>
/dev/null
||
fatal
"Install ccache package before using"
# handled in gcc-common
export
GCC_USE_CCACHE
=
1
# step to gcc-common
export
CC
=
gcc
CXX
=
g++
#export CC="ccache gcc"
#export CPP="ccache gcc -E"
#export CXX="ccache g++"
#export CXXCPP="ccache g++ -E"
}
share/eterbuild/functions/config
View file @
0a6ddb9c
...
...
@@ -53,6 +53,12 @@ BUILDSERVER=
PKGREPLBASE
=
$ETERBUILDDIR
/pkgrepl
# TODO: use common ccache dir
export
CCACHE_DIR
=
$OURTMPDIR
/ccache
# enable ccache using
# CCACHE_ENABLE=yes
test
-f
/etc/eterbuild/config
&&
.
/etc/eterbuild/config
if
[
-f
~/.config/eterbuild
]
;
then
...
...
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