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
5765c576
Commit
5765c576
authored
Aug 05, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play common: add is_openssl_enough, is_pkg_enough, is_glibc_enough
parent
bbe36de7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
8 deletions
+34
-8
common.sh
play.d/common.sh
+34
-8
No files found.
play.d/common.sh
View file @
5765c576
...
...
@@ -118,6 +118,22 @@ get_pkgvendor()
epm print field Vendor
for
package
"
$1
"
}
is_pkg_enough
()
{
local
needed
=
"
$2
"
local
PKG
=
"
$1
"
if
epm installed
$PKG
;
then
local
ver
ver
=
$(
epm print version
for
package
"
$PKG
"
|
head
-n1
)
if
[
-n
"
$ver
"
]
&&
[
"
$(
epm print compare version
"
$ver
"
"
$needed
"
)
"
=
"-1"
]
;
then
return
1
fi
fi
return
0
}
# arg: minimal require of libstdc++ version
# return true is we have such version
is_stdcpp_enough
()
...
...
@@ -126,14 +142,24 @@ is_stdcpp_enough()
local
STDCPKG
=
"libstdc++"
epm installed
$STDCPKG
||
STDCPKG
=
"libstdc++6"
if
epm installed
$STDCPKG
;
then
local
stdcver
stdcver
=
$(
epm print version
for
package
"
$STDCPKG
"
|
head
-n1
)
if
[
-n
"
$stdcver
"
]
&&
[
"
$(
epm print compare version
"
$stdcver
"
"
$needed
"
)
"
=
"-1"
]
;
then
return
1
fi
fi
return
0
is_pkg_enough
$STDCPKG
$needed
}
is_glibc_enough
()
{
local
needed
=
"
$1
"
local
PKG
=
"glibc-core"
epm installed
$PKG
||
PKG
=
"glibc"
is_pkg_enough
$PKG
$needed
}
is_openssl_enough
()
{
local
needed
=
"
$1
"
local
PKG
=
"openssl"
is_pkg_enough
$PKG
$needed
}
...
...
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