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
378a479b
Commit
378a479b
authored
Jul 27, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack common.sh: add add_libs_requires
parent
018fa989
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
common.sh
repack.d/common.sh
+29
-1
No files found.
repack.d/common.sh
View file @
378a479b
...
...
@@ -348,6 +348,34 @@ add_qt6_deps()
add_unirequires
"libxkbcommon-x11.so.0 libxkbcommon.so.0 libxkbfile.so.1 libxml2.so.2 libxshmfence.so.1 libxslt.so.1 libz.so.1"
}
# fast hack to get all extra soname list
get_libs_requires
()
{
local
libreqlist
=
$(
mktemp
)
local
libpreslist
=
$(
mktemp
)
local
fdir
=
"
$BUILDROOT
/
$1
"
find
"
$fdir
"
-type
f |
while
read
f
;
do
epm req
--short
$f
</dev/null 2>/dev/null |
sed
-e
's|().*||'
done
|
LANG
=
C
sort
-u
>
$libreqlist
find
"
$fdir
"
-name
"lib*.so*"
| xargs
-n1
objdump
-p
|
grep
"SONAME"
|
sed
-e
's|.* ||'
|
LANG
=
C
sort
-u
>
$libpreslist
LANG
=
C
join
-v2
$libpreslist
$libreqlist
rm
-f
$libreqlist
$libpreslist
}
add_libs_requires
()
{
local
ll
echo
"Scanning for required libs soname ..."
get_libs_requires | xargs
-n6
echo
|
while
read
ll
;
do
echo
"Requires:
$ll
"
add_unirequires
"
$ll
"
</dev/null
done
}
add_by_ldd_deps
()
{
local
exe
=
"
$1
"
...
...
@@ -438,7 +466,7 @@ use_system_xdg()
# like /opt/yandex/browser
if
[
-n
"
$PRODUCTDIR
"
]
&&
[
"
$(
dirname
"
$PRODUCTDIR
"
)
"
!=
"/"
]
&&
[
"
$(
dirname
"
$(
dirname
"
$PRODUCTDIR
"
)
"
)
"
!=
"/"
]
;
then
if
[
-n
"
$PRODUCTDIR
"
]
&&
[
"
$(
dirname
"
$PRODUCTDIR
"
)
"
!=
"/"
]
&&
[
"
$(
dirname
"
$(
dirname
"
$PRODUCTDIR
"
)
"
)
"
!=
"/"
]
;
then
#"
[
-n
"
$PRODUCTBASEDIR
"
]
||
PRODUCTBASEDIR
=
"
$(
dirname
"
$PRODUCTDIR
"
)
"
fi
...
...
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