Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(24.10): add SDF for file and dependecies #454

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions slices/file.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package: file

essential:
- file_copyright

slices:
bins:
essential:
- libc6_libs
- libmagic1t64_libs
contents:
/usr/bin/file:

copyright:
contents:
/usr/share/doc/file/copyright:
15 changes: 15 additions & 0 deletions slices/libmagic-mgc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package: libmagic-mgc

essential:
- libmagic-mgc_copyright

slices:
data:
contents:
/usr/lib/file/magic.mgc:
/usr/share/file/magic.mgc:
/usr/share/misc/magic.mgc:

copyright:
contents:
/usr/share/doc/libmagic-mgc/copyright:
22 changes: 22 additions & 0 deletions slices/libmagic1t64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package: libmagic1t64

essential:
- libmagic1t64_copyright

slices:
libs:
essential:
- libbz2-1.0_libs
- libc6_libs
- liblzma5_libs
- libmagic-mgc_data
- zlib1g_libs
contents:
/etc/magic:
/etc/magic.mime:
/usr/lib/*-linux-*/libmagic.so.1*:
/usr/share/misc/magic:

copyright:
contents:
/usr/share/doc/libmagic1t64/copyright:
13 changes: 13 additions & 0 deletions tests/spread/integration/file/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
summary: Integration tests for file

execute: |
rootfs="$(install-slices file_bins)"

chroot "${rootfs}/" file --help
echo "Hello World" > "${rootfs}/testfile"
output=$(chroot "${rootfs}/" \
file -b testfile)
if [ "$output" != "ASCII text" ]; then
echo "file failed"
exit 1
fi
Loading