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 less #484

Merged
merged 8 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
32 changes: 32 additions & 0 deletions slices/less.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package: less

essential:
- less_copyright

slices:
bins:
essential:
- libc6_libs
- libtinfo6_libs
contents:
/usr/bin/less:
/usr/bin/lessecho:
# lesskey is deprecated since version 582.

scripts:
zhijie-yang marked this conversation as resolved.
Show resolved Hide resolved
essential:
- less_bins
contents:
/usr/bin/lesspipe:
zhijie-yang marked this conversation as resolved.
Show resolved Hide resolved

pager:
essential:
- less_bins
# pager conflicts with the one generated in util-linux_generated.
# Manually link pager to less if required.
contents:
# /usr/bin/pager: {symlink: /usr/bin/less}

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

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

chroot "${rootfs}" less /usr/share/doc/less/copyright > copyright.txt

cmp copyright.txt "${rootfs}"/usr/share/doc/less/copyright

test "$(chroot ${rootfs} lessecho -a hello world)" = '"hello" "world"'

Loading