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
c080d950
Commit
c080d950
authored
Jan 20, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpm: remove COMMAND parameter from uni_buildrpm
parent
b365d427
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
19 deletions
+9
-19
rpmbb
bin/rpmbb
+3
-3
rpm
share/eterbuild/functions/rpm
+6
-16
No files found.
bin/rpmbb
View file @
c080d950
...
...
@@ -75,7 +75,7 @@ test -n "$LISTRPMARGS" && echog "Run $RPMBUILD with options: '$LISTRPMARGS'"
# instead cbuild req
if
[
-n
"
$BUILDREQ
"
]
;
then
uni_
rpmbuild
buildreq
$LISTNAMES
uni_buildreq
$LISTNAMES
RET
=
$?
echog
"You can run buildreq with -bi param for search a dependences for install section of the package"
exit
$RET
...
...
@@ -85,7 +85,7 @@ if [ -n "$BUILDOPT" ] ; then
is_alt
||
fatal
"Sorry, only ALT Linux systems support --short-circuit correctly"
for
it
in
$BUILDOPT
do
uni_rpmbuild
$
RPMBUILD
$
LISTNAMES
-b
$it
$LISTRPMARGS
--target
$DEFAULTARCH
--short-circuit
uni_rpmbuild
$LISTNAMES
-b
$it
$LISTRPMARGS
--target
$DEFAULTARCH
--short-circuit
done
exit
0
fi
...
...
@@ -109,7 +109,7 @@ do
LOGFILE
=
"
$LOGDIR
/
`
basename
$NAMESRPMIN
.src.rpm
`
$MENVARG
.log"
echo
"Build in native system"
>
$LOGFILE
rm
-f
$LOGFILE
.failed
(
uni_rpmbuild
$
RPMBUILD
$
i
-bb
$LISTRPMARGS
$NODEPS
--target
$DEFAULTARCH
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
(
uni_rpmbuild
$i
-bb
$LISTRPMARGS
$NODEPS
--target
$DEFAULTARCH
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
[
-r
"
$LOGFILE
.failed"
]
&&
RET
=
1
||
RET
=
0
if
[
"
$RET
"
=
"0"
]
;
then
...
...
share/eterbuild/functions/rpm
View file @
c080d950
...
...
@@ -11,12 +11,11 @@
uni_rpmbuild
()
{
local
RET
=
0
local
COMMAND
=
$1
# hack due quotes
# just for fill by something
local
ONEPARAM
=
"-v"
local
TWOPARAM
=
"-v"
shift
local
SPECNAME
=
$1
local
SPECDIR
=
`
dirname
$SPECNAME
`
local
GEAR
=
gear
...
...
@@ -31,30 +30,21 @@ uni_rpmbuild()
TWOPARAM
=
"--define=_topdir
$RPMTOPDIR
"
fi
if
[
"
$COMMAND
"
=
"buildreq"
]
;
then
if
is_gear
$SPECDIR
;
then
$NICE
$GEARBUILDREQ
--commit
--
$@
||
RET
=
$?
else
$NICE
$COMMAND
$@
||
RET
=
$?
fi
return
$RET
fi
if
is_gear
$SPECDIR
;
then
[
-f
"
$SPECNAME
"
]
||
fatal
"run uni_rpmbuild with spec as 2nd parameter"
shift
# skip spec name
[
-n
"
$SPECDIR
"
]
&&
[
"
$SPECDIR
"
!=
"."
]
&&
warning
"Spec is not in git dir"
if
[
"
$MENV
"
=
"SS"
]
;
then
$NICE
$GEAR
--commit
--rpmbuild
--
$
COMMAN
D
"
$ONEPARAM
"
"
$TWOPARAM
"
$@
||
RET
=
$?
$NICE
$GEAR
--commit
--rpmbuild
--
$
RPMBUIL
D
"
$ONEPARAM
"
"
$TWOPARAM
"
$@
||
RET
=
$?
else
# build src.rpm via hasher (on ALT)
# $NICE gear-hsh --build-args="-bs" --rpmbuild -- $COMMAND "$ONEPARAM" $@
$NICE
$GEAR
--hasher
--
myhsh
--build-prog
=
$ETERBUILDDIR
/functions/rebuild
$@
||
RET
=
$?
fi
else
$NICE
$
COMMAN
D
"
$ONEPARAM
"
"
$TWOPARAM
"
$@
||
RET
=
$?
$NICE
$
RPMBUIL
D
"
$ONEPARAM
"
"
$TWOPARAM
"
$@
||
RET
=
$?
fi
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$
COMMAN
D
$ONEPARAM
$TWOPARAM
$@
"
||
:
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$
RPMBUIL
D
$ONEPARAM
$TWOPARAM
$@
"
||
:
return
$RET
}
...
...
@@ -177,10 +167,10 @@ do
sleep
10
exit
1
fi
uni_rpmbuild
$
RPMBUILD
$
i
-bs
$ARGS
$NODEPS
--target
$DEFAULTARCH
uni_rpmbuild
$i
-bs
$ARGS
$NODEPS
--target
$DEFAULTARCH
else
echog
"Just packing
\$
NAMESRPMIN"
uni_rpmbuild
$
RPMBUILD
$
i
-bs
$ARGS
$NODEPS
--target
$DEFAULTARCH
||
fatal
"Error with rpmbuild"
uni_rpmbuild
$i
-bs
$ARGS
$NODEPS
--target
$DEFAULTARCH
||
fatal
"Error with rpmbuild"
fi
fi
if
[
-f
$RPMDIR
/SRPMS/
$NAMESRPMIN
]
;
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