mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 14:51:03 +00:00
fix(snap): make bundled magick find libgomp at runtime (#4016)
This commit is contained in:
parent
9bdd6777e4
commit
8a4b0b208e
1 changed files with 8 additions and 1 deletions
|
|
@ -133,9 +133,16 @@ parts:
|
||||||
- --prefix=/usr
|
- --prefix=/usr
|
||||||
build-attributes:
|
build-attributes:
|
||||||
- enable-patchelf
|
- enable-patchelf
|
||||||
|
organize:
|
||||||
|
# `libgomp1` installs libgomp into the multiarch directory, but the
|
||||||
|
# `magick` binary's RPATH only searches `$ORIGIN/../lib` (i.e. usr/lib).
|
||||||
|
# Move it alongside the Magick libraries so the bundled binary can load
|
||||||
|
# it at runtime; otherwise magick fails with:
|
||||||
|
# "libgomp.so.1: cannot open shared object file: No such file or directory"
|
||||||
|
usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libgomp.so*: usr/lib/
|
||||||
prime:
|
prime:
|
||||||
- usr/bin/magick
|
- usr/bin/magick
|
||||||
- usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libgomp.so.1
|
- usr/lib/libgomp.so*
|
||||||
- usr/lib/libMagickCore-7.Q16HDRI.so*
|
- usr/lib/libMagickCore-7.Q16HDRI.so*
|
||||||
- usr/lib/libMagickWand-7.Q16HDRI.so*
|
- usr/lib/libMagickWand-7.Q16HDRI.so*
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue