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
93004a9b
Commit
93004a9b
authored
Jan 16, 2025
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Jan 18, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play sunshine: use libminiupnpc abi from system (eterbug #17913)
parent
c1268c3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
sunshine.sh
repack.d/sunshine.sh
+9
-2
No files found.
repack.d/sunshine.sh
View file @
93004a9b
...
...
@@ -38,12 +38,19 @@ BOOST_REPO_VERSION=$(LC_ALL=C epm info boost | grep -oP '^Version\s*:\s*\K[^\s]+
BOOST_FEDORA_VERSION
=
$(
ldd usr/bin/sunshine |
grep
-oP
'libboost_[^ ]+\.so\.\K[0-9]+\.[0-9]+\.[0-9]+'
|
sort
-u
)
BOOST_LIBS
=
$(
ldd usr/bin/sunshine |
grep
-oP
'libboost_[^ ]+\.so'
|
sort
-u
|
sed
's/libboost_//; s/\.so//'
)
MINIUPNPC_FEDORA_VERSION
=
$(
ldd usr/bin/sunshine |
grep
-oP
'libminiupnpc\.so\.\K[0-9]+'
)
MINIUPNPC_REPO_VERSION
=
$(
LC_ALL
=
C epm search miniupnpc |
grep
-Eo
'libminiupnpc[0-9]+'
|
grep
-Eo
'[0-9]+'
|
sort
-V
|
tail
-n1
)
if
[
-z
$MINIUPNPC_REPO_VERSION
]
;
then
MINIUPNPC_REPO_VERSION
=
$(
LC_ALL
=
C epm ql miniupnpc |
grep
-o
'libminiupnpc\.so\.[0-9]\+'
|
sed
's/.*\.so\.//'
|
sort
-V
|
tail
-n1
)
fi
# Replace fedora libboost to system libboost
for
lib
in
${
BOOST_LIBS
}
;
do
patchelf
--replace-needed
"libboost_
${
lib
}
.so.
${
BOOST_FEDORA_VERSION
}
"
"libboost_
${
lib
}
.so.
${
BOOST_REPO_VERSION
}
"
"usr/bin/sunshine"
done
#
Commented until I know how to find out the version of the library in the repository
# patchelf --replace-needed libminiupnpc.so.1{7,8}
"usr/bin/sunshine"
#
Replace fedora libminiupnpc to system libminiupnpc
patchelf
--replace-needed
"libminiupnpc.so.
$MINIUPNPC_FEDORA_VERSION
"
"libminiupnpc.so.
$MINIUPNPC_REPO_VERSION
"
"usr/bin/sunshine"
add_libs_requires
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