Skip to content

Commit

Permalink
apparmor: Fix for core20 build
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Nov 12, 2024
1 parent 68b65e6 commit 0f69aa1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,7 @@ parts:
- bin/zstd

apparmor:
build-attributes: [core22-step-dependencies]
source: https://gitlab.com/apparmor/apparmor.git
source-commit: 84a6bc1b6dcdfeabb1ed3597f01e314f3bcee5c1 # v4.0.2
source-depth: 1
Expand All @@ -1250,10 +1251,10 @@ parts:
make
make install
mkdir "${CRAFT_PART_INSTALL}/bin"
cp /sbin/apparmor_parser "${CRAFT_PART_INSTALL}/bin/"
mkdir "${CRAFT_PART_INSTALL}/lib"
cp /lib/libapparmor.so* "${CRAFT_PART_INSTALL}/lib/"
mkdir "${SNAPCRAFT_PART_INSTALL}/bin"
cp /sbin/apparmor_parser "${SNAPCRAFT_PART_INSTALL}/bin/"
mkdir "${SNAPCRAFT_PART_INSTALL}/lib"
cp /lib/libapparmor.so* "${SNAPCRAFT_PART_INSTALL}/lib/"
set +ex
prime:
Expand Down

0 comments on commit 0f69aa1

Please sign in to comment.