-
Notifications
You must be signed in to change notification settings - Fork 53
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 vim and vim-tiny slices #301
base: ubuntu-24.04
Are you sure you want to change the base?
Changes from 5 commits
f0a75df
417d86d
f50f960
17b7f39
0d9ab72
6b9b8f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package: libgpm2 | ||
|
||
essential: | ||
- libgpm2_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/usr/lib/*-linux-*/libgpm.so.2: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/libgpm2/copyright: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package: libpython3.12t64 | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
- libexpat1_libs | ||
- libpython3.12-stdlib_core | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you please double-check why we need
Does the shared objects in this package access any python libs?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without going into the source, |
||
- zlib1g_libs | ||
contents: | ||
/usr/lib/*-linux-*/libpython3.12.so.1*: | ||
/usr/lib/python3.12/config-3.12-*-linux-*/libpython3.12.so: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package: vim-common | ||
|
||
essential: | ||
- vim-common_copyright | ||
|
||
slices: | ||
config: | ||
contents: | ||
/etc/vim/vimrc: | ||
/usr/share/vim/vim91/debian.vim: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am a bit sceptic on whether or not we should include this file in Having said that, if we do include it upon agreement, would you kindly omit the |
||
|
||
data: | ||
contents: | ||
/usr/bin/helpztags: | ||
Comment on lines
+12
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure if #!/usr/bin/perl
#
# helpztags generates tags for Vim helpfiles, for both .txt and .txt.gz files
# Author: Jakub Turski <[email protected]>
# Artur R. Czechowski <[email protected]>
# Version: 0.4
# Please use following command for generate a manual file:
# pod2man -c "User Commands" -s 1 -q none -r "vim 6.2" -d "September 2003" helpztags helpztags.1
=head1 NAME
helpztags - generate the help tags file for directory
... How about |
||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/vim-common/copyright: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package: vim-runtime | ||
|
||
essential: | ||
- vim-runtime_copyright | ||
|
||
slices: | ||
vimtutor: | ||
contents: | ||
/usr/bin/vimtutor: | ||
/usr/share/vim/vim*/tutor/tutor*: | ||
|
||
plugins: | ||
contents: | ||
/usr/share/vim/vim*/autoload/**: | ||
/usr/share/vim/vim*/bugreport.vim: | ||
/usr/share/vim/vim*/colors/**: | ||
/usr/share/vim/vim*/compiler/**: | ||
/usr/share/vim/vim*/defaults.vim: | ||
/usr/share/vim/vim*/delmenu.vim: | ||
/usr/share/vim/vim*/evim.vim: | ||
/usr/share/vim/vim*/filetype.vim: | ||
/usr/share/vim/vim*/ftoff.vim: | ||
/usr/share/vim/vim*/ftplugin.vim: | ||
/usr/share/vim/vim*/ftplugin/**: | ||
/usr/share/vim/vim*/ftplugof.vim: | ||
/usr/share/vim/vim*/gvimrc_example.vim: | ||
/usr/share/vim/vim*/import/**: | ||
/usr/share/vim/vim*/indent.vim: | ||
/usr/share/vim/vim*/indent/**: | ||
/usr/share/vim/vim*/indoff.vim: | ||
/usr/share/vim/vim*/keymap/**: | ||
/usr/share/vim/vim*/macros/**: | ||
/usr/share/vim/vim*/menu.vim: | ||
/usr/share/vim/vim*/mswin.vim: | ||
/usr/share/vim/vim*/optwin.vim: | ||
/usr/share/vim/vim*/pack/**: | ||
/usr/share/vim/vim*/plugin/**: | ||
/usr/share/vim/vim*/print/**: | ||
/usr/share/vim/vim*/scripts.vim: | ||
/usr/share/vim/vim*/spell/**: | ||
/usr/share/vim/vim*/synmenu.vim: | ||
/usr/share/vim/vim*/syntax/**: | ||
/usr/share/vim/vim*/vimrc_example.vim: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/vim-runtime/copyright: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package: vim-tiny | ||
|
||
essential: | ||
- vim-tiny_copyright | ||
|
||
slices: | ||
bins: | ||
essential: | ||
- libacl1_libs | ||
- libc6_libs | ||
- libselinux1_libs | ||
- libtinfo6_libs | ||
- vim-common_config | ||
- vim-tiny_config | ||
contents: | ||
/usr/bin/vi: {symlink: /usr/bin/vim.tiny} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call not making the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Coming back to this again, update-alternatives --install /usr/bin/vi vi /usr/bin/vim.basic 30 Perhaps we should ignore making the |
||
/usr/bin/vim.tiny: | ||
|
||
config: | ||
contents: | ||
/etc/vim/vimrc.tiny: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/vim-tiny/copyright: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package: vim | ||
|
||
essential: | ||
- vim_copyright | ||
|
||
slices: | ||
bins: | ||
essential: | ||
- libacl1_libs | ||
- libc6_libs | ||
- libgpm2_libs | ||
- libpython3.12t64_libs | ||
- libselinux1_libs | ||
- libsodium23_libs | ||
- libtinfo6_libs | ||
- vim-common_config | ||
- vim-runtime_plugins | ||
contents: | ||
/usr/bin/vim: {symlink: /usr/bin/vim.basic} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is fine, until we have packages like
Thoughts on how we should address the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we have a similar issue with symlinking sh to various shells. Maybe we should have an explicit symlink slice in the future so we could have both bash_bins and dash_bins installed, but specify dash as sh via dash_links or dash_sh |
||
/usr/bin/vim.basic: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/vim/copyright: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
summary: Integration tests for vim and vim-tiny | ||
|
||
execute: | | ||
rootfs="$(install-slices vim-tiny_bins)" | ||
echo "hello world" > "$rootfs/test" | ||
chroot "$rootfs" vi -c ":s/hello/bye/" -c ":wq" test | ||
grep bye "$rootfs/test" | ||
|
||
rootfs="$(install-slices vim_bins)" | ||
echo "hello world" > "$rootfs/test" | ||
chroot "$rootfs" vim -c ":s/hello/bye/" -c ":wq" test | ||
grep bye "$rootfs/test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to add a copyright slice with the following path?
Have to check the deps though. It's a symlink, might need other package to fill in the target path.