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
e284ab9b
Commit
e284ab9b
authored
Apr 08, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small compatibility fixes
parent
5e1e0504
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
build
share/eterbuild/functions/build
+3
-4
buildsrpm
share/eterbuild/functions/buildsrpm
+3
-4
spec
share/eterbuild/functions/spec
+3
-3
No files found.
share/eterbuild/functions/build
View file @
e284ab9b
...
...
@@ -24,10 +24,6 @@ uni_rpmbuild()
local
SPECNAME
=
"
$1
"
local
SPECDIR
=
`
dirname
$SPECNAME
`
local
GEAR
=
"gear -v"
$EPMCMD
assure gear
local
THRPARAM
=
"--quiet"
[
-n
"
$USE_VENDOR
"
]
&&
THRPARAM
=
"--define=_vendor
$USE_VENDOR
"
...
...
@@ -49,6 +45,9 @@ uni_rpmbuild()
[
-f
"
$SPECNAME
"
]
||
fatal
"run uni_rpmbuild with spec as 2nd parameter"
shift
# skip spec name
local
GEAR
=
"gear -v"
$EPMCMD
assure gear
||
fatal
# FIXME: use spec name as project name
GEARRULES
=
$(
get_gear_rules_by_spec
"
$SPECNAME
"
)
...
...
share/eterbuild/functions/buildsrpm
View file @
e284ab9b
...
...
@@ -24,10 +24,6 @@ uni_rpmbuildsrpm()
local
SPECDIR
set_specdir
$SPECNAME
||
fatal
"Dir for
$SPECNAME
does not exists"
local
GEAR
=
gear
$EPMCMD
assure gear
local
ONEPARAM
=
"--quiet"
[
-n
"
$USE_LEGACY_COMPRESSION
"
]
&&
ONEPARAM
=
"--define=_source_payload w9.gzdio"
...
...
@@ -43,6 +39,9 @@ uni_rpmbuildsrpm()
[
-f
"
$SPECNAME
"
]
||
fatal
"run uni_rpmbuild with spec as 2nd parameter"
shift
# skip spec name
local
GEAR
=
gear
$EPMCMD
assure gear
||
fatal
# FIXME: use spec name as project name
GEARRULES
=
$(
get_gear_rules_by_spec
"
$SPECNAME
"
)
...
...
share/eterbuild/functions/spec
View file @
e284ab9b
...
...
@@ -37,10 +37,10 @@ eval_spec()
# Hack: just print spec if -bE failed
if
is_alt
;
then
# on ALT we have to done without errors
$USEARCH
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
||
fatal
"Check spec's fields"
$USEARCH
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
|
iconv
-f
utf8
-r
|
|
fatal
"Check spec's fields"
else
$USEARCH
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
2>/dev/null
||
cat
$SPEC
fi
| iconv
-f
utf8
-r
(
$USEARCH
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
2>/dev/null
||
cat
$SPEC
)
| iconv
-f
utf8
fi
# FIXME: hack for koi8-r in spec (grep will not work with it)
[
-n
"
$DEBUG
"
]
||
rm
-f
$SPECNAME
.tmp
$SPECNAME
.changelog
remove_file_from_remove
$SPECNAME
.tmp
$SPECNAME
.changelog
...
...
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