Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
78252429
Commit
78252429
authored
Mar 17, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: add support for --verbose and --nodeps
parent
3548d5ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
common.sh
repack.d/common.sh
+19
-10
No files found.
repack.d/common.sh
View file @
78252429
#!/bin/sh
# kind of hack: inheritance --force from main epm
echo
"
$EPM_OPTIONS
"
|
grep
-q
--
"--nodeps"
&&
nodeps
=
"--nodeps"
echo
"
$EPM_OPTIONS
"
|
grep
-q
--
"--verbose"
&&
verbose
=
"--verbose"
fatal
()
{
echo
"FATAL:
$*
"
>
&2
...
...
@@ -385,18 +389,22 @@ get_libs_requires()
local
fdir
=
"
$BUILDROOT
/
$1
"
__get_binary_requires
"
$fdir
"
|
LANG
=
C
sort
-u
>
$libreqlist
info
" List of binary and libs requires:"
info
"
$(
cat
$libreqlist
| xargs
-n1000
)
"
info
" End of the list binary and libs requires."
if
[
-n
"
$verbose
"
]
;
then
info
" List of binary and libs requires:"
info
"
$(
cat
$libreqlist
| xargs
-n1000
)
"
info
" End of the list binary and libs requires."
fi
__get_library_provides
"
$fdir
"
|
LANG
=
C
sort
-u
>
$libpreslist
info
" List of libraries provided:"
info
"
$(
cat
$libpreslist
| xargs
-n1000
)
"
info
" End of the provided libraries list."
info
" List of ignored libraries:"
info
"
$EEPM_IGNORE_LIB_REQUIRES
"
info
" End of the ignored libraries."
if
[
-n
"
$verbose
"
]
;
then
info
" List of libraries provided:"
info
"
$(
cat
$libpreslist
| xargs
-n1000
)
"
info
" End of the provided libraries list."
info
" List of ignored libraries:"
info
"
$EEPM_IGNORE_LIB_REQUIRES
"
info
" End of the ignored libraries."
fi
# print out result
LANG
=
C
join
-v2
$libpreslist
$libreqlist
...
...
@@ -406,6 +414,7 @@ get_libs_requires()
add_libs_requires
()
{
local
ll
[
-n
"
$nodeps
"
]
&&
info
"Skipping any requires detection ..."
&&
return
info
"Scanning for required libs soname ..."
get_libs_requires | xargs
-n6
echo
|
grep
-ve
'^$'
|
while
read
ll
;
do
info
"Requires:
$ll
"
...
...
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