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.04): add SDF for libarchive-tools and dependencies #455

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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
19 changes: 19 additions & 0 deletions slices/libarchive-tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package: libarchive-tools

essential:
- libarchive-tools_copyright

slices:
bins:
essential:
- libarchive13t64_libs
- libc6_libs
contents:
/usr/bin/bsdcat:
/usr/bin/bsdcpio:
/usr/bin/bsdtar:
/usr/bin/bsdunzip:

copyright:
contents:
/usr/share/doc/libarchive-tools/copyright:
24 changes: 24 additions & 0 deletions slices/libarchive13t64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package: libarchive13t64

essential:
- libarchive13t64_copyright

slices:
libs:
essential:
- libacl1_libs
- libbz2-1.0_libs
- libc6_libs
- liblz4-1_libs
- liblzma5_libs
- libnettle8t64_libs
- libxml2_libs
- libzstd1_libs
- zlib1g_libs
contents:
/usr/lib/*-linux-*/libarchive.so.13*:
/usr/share/lintian/overrides/libarchive13t64:
eunufe marked this conversation as resolved.
Show resolved Hide resolved

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

execute: |
rootfs="$(install-slices libarchive-tools_bins)"
chroot "${rootfs}/" bsdcat --version
chroot "${rootfs}/" bsdcpio --version
chroot "${rootfs}/" bsdtar --version
chroot "${rootfs}/" bsdunzip --version
echo "Hello, World" > "${rootfs}/testfile.txt"
test "$(chroot "${rootfs}/" bsdcat testfile.txt)" = "Hello, World"
chroot "${rootfs}/" bsdtar -cf /testfile.tar /testfile.txt
if [ ! -f "${rootfs}/testfile.tar" ]; then
echo "bsdtar failed to create archive: testfile.tar"
exit 1
fi
cp "${rootfs}/testfile.txt" "${rootfs}/testfile_tar.txt"
chroot "${rootfs}/" bsdtar -xf testfile.tar
test "$(cat ${rootfs}/testfile.txt)" = "$( cat ${rootfs}/testfile_tar.txt)"
eunufe marked this conversation as resolved.
Show resolved Hide resolved
echo "testfile.txt" | chroot "${rootfs}/" bsdcpio -o -c \
> "${rootfs}/testfile.cpio"
if [ ! -e "${rootfs}/testfile.cpio" ]; then
echo "bsdcpio failed"
exit 1
fi
mv "${rootfs}/testfile.txt" "${rootfs}/testfile_comp.txt"
eunufe marked this conversation as resolved.
Show resolved Hide resolved
chroot "${rootfs}/" bsdcpio -i < "${rootfs}/testfile.cpio"
test "$(cat ${rootfs}/testfile.txt)" = "$(cat ${rootfs}/testfile_comp.txt)"
Loading