i am working on a kodi snap with core24.
i want to improve readability for this
LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib:$SNAP/usr/lib/x86_64-linux-gnu/samba:$SNAP/lib/x86_64-linux-gnu:$LIBGL_DRIVERS_PATH:$SNAP/usr/local/lib/kodi:$LD_LIBRARY_PATH
i tried this
LD_LIBRARY_PATH: >
$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:
$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:
$SNAP/usr/lib/x86_64-linux-gnu:
$SNAP/usr/lib:
$SNAP/usr/lib/x86_64-linux-gnu/samba:
$SNAP/lib/x86_64-linux-gnu:
$LIBGL_DRIVERS_PATH:
$SNAP/usr/local/lib/kodi:
$LD_LIBRARY_PATH
and this:
LD_LIBRARY_PATH: >
$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:\
$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:\
$SNAP/usr/lib/x86_64-linux-gnu:\
$SNAP/usr/lib:\
$SNAP/usr/lib/x86_64-linux-gnu/samba:\
$SNAP/lib/x86_64-linux-gnu:\
$LIBGL_DRIVERS_PATH:\
$SNAP/usr/local/lib/kodi:\
$LD_LIBRARY_PATH
and this
LD_LIBRARY_PATH: |
$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:
$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:
$SNAP/usr/lib/x86_64-linux-gnu:
$SNAP/usr/lib:
$SNAP/usr/lib/x86_64-linux-gnu/samba:
$SNAP/lib/x86_64-linux-gnu:
$LIBGL_DRIVERS_PATH:
$SNAP/usr/local/lib/kodi:
$LD_LIBRARY_PATH
but it didn’t worked. Always some libraries are not found in the finished Snap. What is the correct way to split this line for better readability while ensuring the libraries are still correctly found in the Snap?
I have spent a lot of time trying to solve this issue, thinking I needed to add more to the stage-packages
section, until I finally realized that the issue was with the incorrect splitting of the line.