Skip to content

Commit

Permalink
Architecture aware symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Jun 27, 2024
1 parent 0ba5fec commit 42fd537
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ parts:
stage-snaps:
- charmed-mysql/8.0/edge
override-stage: |
LIB_DIR=$CRAFT_STAGE/usr/lib/x86_64-linux-gnu
LIB_DIR=$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
craftctl default
mkdir -p $CRAFT_STAGE/var/lib/mysql
ln -sf $LIB_DIR/libnuma.so.1 \
/usr/lib/x86_64-linux-gnu/libnuma.so.1
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libnuma.so.1
ln -sf $LIB_DIR/libaio.so.1 \
/usr/lib/x86_64-linux-gnu/libaio.so.1
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libaio.so.1
ln -sf $LIB_DIR/libicuuc.so.70 \
/usr/lib/x86_64-linux-gnu/libicuuc.so.70
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libicuuc.so.70
ln -sf $LIB_DIR/libicui18n.so.70 \
/usr/lib/x86_64-linux-gnu/libicui18n.so.70
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libicui18n.so.70
ln -sf $LIB_DIR/libevent_core-2.1.so.7 \
/usr/lib/x86_64-linux-gnu/libevent_core-2.1.so.7
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libevent_core-2.1.so.7
ln -sf $LIB_DIR/libevent_pthreads-2.1.so.7 \
/usr/lib/x86_64-linux-gnu/libevent_pthreads-2.1.so.7
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libevent_pthreads-2.1.so.7
ln -sf $LIB_DIR/libprotobuf-lite.so.23 \
/usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.23
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libprotobuf-lite.so.23
ln -sf $LIB_DIR/libicudata.so.70 \
/usr/lib/x86_64-linux-gnu/libicudata.so.70
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libicudata.so.70
rm -rf /var/lib/mysql/
mysqld --initialize
cp -r /var/lib/mysql $CRAFT_STAGE/var/lib
Expand Down

0 comments on commit 42fd537

Please sign in to comment.