feat(26.04): update sensible-utils and ucf#985
Conversation
|
Diff of dependencies: slices/dpkg.yaml@@ -1,8 +1 @@
-libbz2-1.0
-libc6
-liblzma5
-libmd0
-libselinux1
-libzstd1
-tar
-zlib1g
+slices/gettext-base.yaml@@ -1 +1 @@
-libc6
+slices/sensible-utils.yaml@@ -0,0 +1 @@
+slices/ucf.yaml@@ -1,5 +1 @@
-debconf
-debconf-2.0
-libtext-wrapi18n-perl
-procps
-sensible-utils
+ |
sensible-utilssensible-utils and ucf
Test CoverageAverage Total Coverage: 28.75% Arch: aarch64Coverage: 28.75%
|
|
adding priority since its part of essential 26.04 work |
alesancor1
left a comment
There was a problem hiding this comment.
Looks good overall, couple of comments/questions below:
| # coreutils_md5sum: | ||
| coreutils_readlink: | ||
| coreutils_rm-utility: | ||
| # coreutils_seq: |
There was a problem hiding this comment.
Why are md5sum and seq commented?
| # gettext.sh can be sourced and provides eval_gettext and eval_ngettext | ||
| c='. /usr/bin/gettext.sh && eval_gettext "Hello World"' | ||
| chroot "$rootfs" sh -c "$c" | grep -q "Hello World" | ||
| c='. /usr/bin/gettext.sh && n=1 && eval_ngettext "one item" "many items" 1' |
There was a problem hiding this comment.
What is this n=1 for?
| /usr/bin/sensible-pager: | ||
| /usr/bin/sensible-terminal: | ||
|
|
||
| mime: |
There was a problem hiding this comment.
Why do we drop _mime? This is a regression without alternatives.
|
|
||
| ucfq: | ||
| hint: Query config file registry | ||
| essential: |
There was a problem hiding this comment.
| essential: | |
| essential: | |
| coreutils_md5sum: |
It's required by ucfq:
root@690f077c9c58:/work/26.04-amd64# grep -R 'md5sum' ucf
ucf/etc/ucf.conf:# md5sums for a file are looked for. Specifically, the historical
ucf/etc/ucf.conf:# md5sums are looked for in the subdirectory ${filename}.md5sum.d/
ucf/usr/bin/ucfq: if (-x "/usr/bin/md5sum") {
ucf/usr/bin/ucfq: open (my $newhash, "-|", "/usr/bin/md5sum $name") ||
ucf/usr/bin/ucfq: die "Could not run md5sum: $!";
ucf/usr/bin/ucfq: die "Could not find /usr/bin/md5sum .\n";
...
| coreutils_dirname: | ||
| coreutils_id-utility: | ||
| coreutils_mv-utility: | ||
| # coreutils_md5sum: |
There was a problem hiding this comment.
This is required by ucf:
ucf/usr/bin/ucf: md5sum "$orig_new_file" | sed "s|$orig_new_file|$dest_file|" >&2
ucf/usr/bin/ucf: md5sum "$orig_new_file" | sed "s|$orig_new_file|$dest_file|" >> \
ucf/usr/bin/ucf: echo " md5sum \"$orig_new_file\" | sed \"s|$orig_new_file|$dest_file|\"; "
ucf/usr/bin/ucf: md5sum "$orig_new_file" | sed "s|$orig_new_file|$dest_file|" > \
ucf/usr/bin/ucf: echo " md5sum \"$orig_new_file\" | sed \"s|$orig_new_file|$dest_file|\" >" \
...
| # coreutils_md5sum: | ||
| coreutils_readlink: | ||
| coreutils_rm-utility: | ||
| # coreutils_seq: |
There was a problem hiding this comment.
This is required
ucf/usr/bin/ucf: for i in $(/usr/bin/seq 6 -1 0); do
ucf/usr/bin/ucf: for i in $(/usr/bin/seq 6 -1 0); do
| coreutils_id-utility: | ||
| coreutils_mv-utility: | ||
| coreutils_readlink: | ||
| # coreutils_seq: |
There was a problem hiding this comment.
| # coreutils_seq: | |
| coreutils_seq: |
| coreutils_readlink: | ||
| # coreutils_seq: | ||
| dash_bins: | ||
| # dpkg_dpkg-divert: |
There was a problem hiding this comment.
This is required for ucfr:
root@690f077c9c58:/work/26.04-amd64# grep -R 'dpkg-divert' ucf
ucf/usr/bin/ucfr: divert_package=$(dpkg-divert --listpackage "$conf_file")
There was a problem hiding this comment.
I believe the tests need a re-work: The coverage of logics/branches in the script is way below sufficiency, if only the --help subcommand is tested.
|
Proposed changes
sensible-utilsto classify the content as scriptssensible-utilsucfto classify contents as scriptsucf. there are many bits missing from these slices which would be needed for a full test. this is still a massive improvement though.dpkgtests layout while preserving previous test casesupdate-alternativesand add tests for itgettext-baseand add tests for itRelated issues/PRs
sensible-utilsanducfslice renames #995Forward porting
n/a
Checklist