Skip to content

Commit

Permalink
chore(appimage): also bundle libglib-2.0.so.0 and friends
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored and SkyzohKey committed May 26, 2016
1 parent 8293524 commit ca5c0bd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ wget https://raw.githubusercontent.com/RicinApp/ricin.im/master/static/images/ap
# undefined symbol: g_type_check_instance_is_fundamentally_a
# Function g_type_check_instance_is_fundamentally_a was introduced in glib2-2.41.1
# Bundle libglib-2.0.so.0 - TODO: find a better solution, e.g., downgrade libglib-2.0 at compile time
mkdir -p ./usr/lib/
cp $(ldconfig -p | grep libglib-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/
# The following come with glib2 and probably need to be treated together:
cp $(ldconfig -p | grep libgio-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/
cp $(ldconfig -p | grep libgmodule-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/
cp $(ldconfig -p | grep libgobject-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/
cp $(ldconfig -p | grep libgthread-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/

export LD_LIBRARY_PATH=/home/travis/build/RicinApp/Ricin.AppImage/usr/lib/:LD_LIBRARY_PATH
copy_deps
Expand All @@ -65,6 +72,14 @@ rm -r usr/lib/x86_64-linux-gnu/ usr/local/lib/
# https://github.com/probonopd/AppImages/blob/master/excludelist
delete_blacklisted

# In this case we need to override the blacklisting, hence doing it again
cp $(ldconfig -p | grep libglib-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/
# The following come with glib2 and probably need to be treated together:
cp $(ldconfig -p | grep libgio-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/
cp $(ldconfig -p | grep libgmodule-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/
cp $(ldconfig -p | grep libgobject-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/
cp $(ldconfig -p | grep libgthread-2.0.so.0 | head -n 1 | cut -d ">" -f 2 | xargs) ./usr/lib/

# We don't bundle the developer stuff
rm -rf usr/include || true
rm -rf usr/lib/cmake || true
Expand Down

0 comments on commit ca5c0bd

Please sign in to comment.