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
65444434
You need to sign in or sign up before continuing.
Commit
65444434
authored
Sep 19, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uni_build: add set __ccache_dir for rpmbuild if CCACHE_ENABLED
parent
918635bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
build
share/eterbuild/functions/build
+8
-3
No files found.
share/eterbuild/functions/build
View file @
65444434
...
@@ -16,6 +16,7 @@ uni_rpmbuild()
...
@@ -16,6 +16,7 @@ uni_rpmbuild()
local
ONEPARAM
=
"--quiet"
local
ONEPARAM
=
"--quiet"
local
TWOPARAM
=
"--quiet"
local
TWOPARAM
=
"--quiet"
local
THRPARAM
=
"--quiet"
local
THRPARAM
=
"--quiet"
local
FOURPARAM
=
"--quiet"
local
COMMIT
=
""
local
COMMIT
=
""
if
[
"
$1
"
=
"--commit"
]
;
then
if
[
"
$1
"
=
"--commit"
]
;
then
...
@@ -40,6 +41,10 @@ uni_rpmbuild()
...
@@ -40,6 +41,10 @@ uni_rpmbuild()
TWOPARAM
=
"--define=_topdir
$RPMTOPDIR
"
TWOPARAM
=
"--define=_topdir
$RPMTOPDIR
"
fi
fi
if
[
-n
"
$CCACHE_ENABLE
"
]
&&
[
-n
"
$CCACHE_DIR
"
]
;
then
FOURPARAM
=
"--define=__ccache_dir
$CCACHE_DIR
"
fi
if
is_gear
$SPECDIR
;
then
if
is_gear
$SPECDIR
;
then
[
-f
"
$SPECNAME
"
]
||
fatal
"run uni_rpmbuild with spec as 2nd parameter"
[
-f
"
$SPECNAME
"
]
||
fatal
"run uni_rpmbuild with spec as 2nd parameter"
shift
# skip spec name
shift
# skip spec name
...
@@ -53,7 +58,7 @@ uni_rpmbuild()
...
@@ -53,7 +58,7 @@ uni_rpmbuild()
fi
fi
# build package without MENV checking
# build package without MENV checking
if
true
||
[
"
$MENV
"
=
"SS"
]
;
then
if
true
||
[
"
$MENV
"
=
"SS"
]
;
then
$NICE
$GEAR
$COMMIT
$GEARRULES
--rpmbuild
--
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
$@
||
RET
=
$?
$NICE
$GEAR
$COMMIT
$GEARRULES
--rpmbuild
--
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
"
$FOURPARAM
"
$@
||
RET
=
$?
else
else
fatal
"Build backported src.rpm from git is unsupported now"
fatal
"Build backported src.rpm from git is unsupported now"
# build src.rpm via hasher (on ALT)
# build src.rpm via hasher (on ALT)
...
@@ -62,9 +67,9 @@ uni_rpmbuild()
...
@@ -62,9 +67,9 @@ uni_rpmbuild()
fi
fi
else
else
mkdir
-p
$RPMTOPDIR
/BUILD
$RPMTOPDIR
/SRPMS
mkdir
-p
$RPMTOPDIR
/BUILD
$RPMTOPDIR
/SRPMS
$NICE
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
$@
||
RET
=
$?
$NICE
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
"
$FOURPARAM
"
$@
||
RET
=
$?
fi
fi
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$RPMBUILD
$ONEPARAM
$TWOPARAM
$THRPARAM
$@
"
||
:
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$RPMBUILD
$ONEPARAM
$TWOPARAM
$THRPARAM
$
FOURPARAM
$
@
"
||
:
return
$RET
return
$RET
}
}
...
...
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