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
19dfa0b1
Commit
19dfa0b1
authored
Sep 01, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: add define_allow_root_build if ALLOW_ROOT_USER is set
parent
4743b4a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
build
share/eterbuild/functions/build
+4
-1
No files found.
share/eterbuild/functions/build
View file @
19dfa0b1
...
...
@@ -42,6 +42,9 @@ uni_rpmbuild()
local
SIXPARAM
=
"--quiet"
[
-n
"
$USEDMAKE
"
]
&&
SIXPARAM
=
"--define=make_build dmake"
local
SEVENPARAM
=
""
[
-n
"ALLOW_ROOT_USER"
]
&&
SEVENPARAM
=
"--define=_allow_root_build 1"
if
is_gear
$SPECDIR
;
then
[
-f
"
$SPECNAME
"
]
||
fatal
"run uni_rpmbuild with spec as 2nd parameter"
shift
# skip spec name
...
...
@@ -51,7 +54,7 @@ uni_rpmbuild()
# build package without MENV checking
if
true
||
[
"
$MENV
"
=
"SS"
]
;
then
LANG
=
$NEULOCALE
docmd
$NICE
$GEAR
$COMMIT
$GEARRULES
--rpmbuild
--
$RPMBUILD
"
$TWOPARAM
"
"
$THRPARAM
"
"
$FOURPARAM
"
"
$FIVEPARAM
"
"
$SIXPARAM
"
"
$@
"
||
RET
=
$?
LANG
=
$NEULOCALE
docmd
$NICE
$GEAR
$COMMIT
$GEARRULES
--rpmbuild
--
$RPMBUILD
"
$TWOPARAM
"
"
$THRPARAM
"
"
$FOURPARAM
"
"
$FIVEPARAM
"
"
$SIXPARAM
"
"
$
SEVENPARAM
"
"
$
@
"
||
RET
=
$?
[
-z
"
$COMMANDAFTER
"
]
||
docmd
$COMMANDAFTER
else
fatal
"Build backported src.rpm from git is unsupported now"
...
...
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