mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-03-06 14:27:48 +00:00
Manually adding missing libraries
This commit is contained in:
parent
a12c13254d
commit
49404701fb
|
@ -3,7 +3,8 @@
|
|||
# This file is containing some global function needed for the script such as the config file tools
|
||||
|
||||
# pathing the retrodeck components provided libraries
|
||||
export LD_LIBRARY_PATH="/app/retrodeck/lib:/app/retrodeck/lib/debug:/app/retrodeck/lib/pkgconfig:$LD_LIBRARY_PATH"
|
||||
# now disabled as we are importing everything in /app/lib. In case we are breaking something we need to restore this approach
|
||||
# export LD_LIBRARY_PATH="/app/retrodeck/lib:/app/retrodeck/lib/debug:/app/retrodeck/lib/pkgconfig:$LD_LIBRARY_PATH"
|
||||
|
||||
source /app/libexec/050_save_migration.sh
|
||||
source /app/libexec/checks.sh
|
||||
|
@ -21,7 +22,7 @@ source /app/libexec/configurator_functions.sh
|
|||
# Static variables
|
||||
rd_conf="/var/config/retrodeck/retrodeck.cfg" # RetroDECK config file path
|
||||
rd_conf_backup="/var/config/retrodeck/retrodeck.bak" # Backup of RetroDECK config file from update
|
||||
rd_logs_folder="/var/config/retrodeck/logs" # Static location to write all RetroDECK-related logs
|
||||
rd_logs_folder="/var/config/retrodeck/logs" # Static location to write all RetroDECK-related logs
|
||||
emuconfigs="/app/retrodeck/emu-configs" # folder with all the default emulator configs
|
||||
rd_defaults="$emuconfigs/defaults/retrodeck/retrodeck.cfg" # A default RetroDECK config file
|
||||
rd_update_patch="/var/config/retrodeck/rd_update.patch" # A static location for the temporary patch file used during retrodeck.cfg updates
|
||||
|
|
|
@ -728,6 +728,11 @@ modules:
|
|||
- |
|
||||
# Search for missingl ibraries in our libtmp folder
|
||||
missing_libs=$(find "${FLATPAK_DEST}/bin" -type f -exec ldd {} + 2>/dev/null | grep "not found" | awk '{print $1}' | sort | uniq)
|
||||
|
||||
# for some reason these libraries are not recognized as missing so we mantain this list
|
||||
manually_imported="libpostproc.so.56 libswscale.so.6"
|
||||
|
||||
missing_libs="$missing_libs $manually_imported"
|
||||
|
||||
# Origin paths
|
||||
src_dir="${FLATPAK_DEST}/retrodeck/tmplib"
|
||||
|
@ -753,6 +758,8 @@ modules:
|
|||
copy_missing_libs "$src_dir" "$dest_dir"
|
||||
copy_missing_libs "$src_debug_dir" "$dest_debug_dir"
|
||||
|
||||
rm -rf "$src_dir"
|
||||
|
||||
- name: retrodeck
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
|
|
Loading…
Reference in a new issue