Skip to content

Commit

Permalink
Merge pull request canonical#467 from mihalicyn/dont_strip_lxcfs_521
Browse files Browse the repository at this point in the history
snapcraft: don't strip LXCFS-related binaries (5.21-edge)
  • Loading branch information
tomponline authored Jun 13, 2024
2 parents 7e409f5 + 314b8b1 commit 950139d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ parts:
rm -rf "${CRAFT_PRIME}/usr/local/"
rm -rf "${CRAFT_PRIME}/usr/share/"
# Strip binaries (excluding shell scripts)
# Strip binaries (excluding shell scripts and LXCFS)
find "${CRAFT_PRIME}"/bin -type f \
-not -path "${CRAFT_PRIME}/bin/ceph" \
-not -path "${CRAFT_PRIME}/bin/editor" \
Expand All @@ -1537,6 +1537,7 @@ parts:
-not -path "${CRAFT_PRIME}/bin/sshfs" \
-not -path "${CRAFT_PRIME}/bin/xfs_admin" \
-not -path "${CRAFT_PRIME}/bin/uefivars.py" \
-not -path "${CRAFT_PRIME}/bin/lxcfs" \
-exec strip -s {} +
# Strip binaries not under bin/ due to being dynamically
Expand All @@ -1552,9 +1553,10 @@ parts:
find "${v}/" -type f -exec strip -s {} +
done
# Strip libraries (excluding python3 scripts)
# Strip libraries (excluding python3 scripts and liblxcfs)
find "${CRAFT_PRIME}"/lib -type f \
-not -path "${CRAFT_PRIME}/lib/python3/*" \
-not -path "${CRAFT_PRIME}/lib/liblxcfs.so" \
-exec strip -s {} +
if [ "$(uname -m)" != "riscv64" ]; then
Expand Down

0 comments on commit 950139d

Please sign in to comment.