https://bugzilla.redhat.com/show_bug.cgi?id=2560266



--- Comment #2 from Renich Bon Ciric <[email protected]> ---
Hi Carl,

Thank you for the review! Here is the explanation for both points and the
updated package details:

1) Directory ownership on /usr/share/vim and /usr/share/vim/vimfiles:
In Fedora's vim package, vim-filesystem only packages the individual plugin
subdirectories (autoload, ftdetect, indent, syntax, etc.). The parent
directories /usr/share/vim and /usr/share/vim/vimfiles are packaged exclusively
in vim-data, on both Fedora 44 and Rawhide. When fedora-review inspects a
minimal chroot containing only vim-filesystem without vim-data, those two
parent directories appear unowned. To ensure all parent directories have known
owners in minimal environments, we added Requires: vim-data (the same approach
used by vim-vala in Fedora).

2) Directory co-ownership of /usr/share/vim/vimfiles/syntax_checkers:
Under Fedora Packaging Guidelines (File and Directory Ownership -> The
directory is owned by a package which is not required for your package to
function):
"Some packages create and own directories with the intention of permitting
other packages to store appropriate files, but those other packages do not need
that original package to be present to function properly... Solution: the
package should own the directory. There is no need to add an explicit Requires
solely for directory ownership."
vim-crystal ships Syntastic checkers for ameba and crystal so users who use
vim-syntastic get syntax checking out of the box. However, vim-crystal does not
require vim-syntastic to function. Therefore, vim-crystal co-owns %dir
/usr/share/vim/vimfiles/syntax_checkers so the directory is owned regardless of
whether vim-syntastic is installed, without forcing an unwanted hard dependency
on vim-syntastic. We have also made this explicit in %files with %dir
%{_datadir}/vim/vimfiles/syntax_checkers.

Updated spec and SRPM (release 5):
Spec URL: https://renich.fedorapeople.org/crystal/vim-crystal/vim-crystal.spec
SRPM URL:
https://renich.fedorapeople.org/crystal/vim-crystal/vim-crystal-0^20230315gitdc21188-5.fc46.src.rpm

Changelog:
* Mon Nov 02 2026 Rénich Bon Ćirić <[email protected]> -
0^20230315gitdc21188-5
- fix(spec): require vim-data and clarify syntax_checkers directory
co-ownership
- Add Requires: vim-data so /usr/share/vim and /usr/share/vim/vimfiles have
known owners in minimal chroots
- Declare %dir %{_datadir}/vim/vimfiles/syntax_checkers to explicitly co-own
the Syntastic checker parent directory per packaging guidelines

If you have bandwidth and interest in another compact spec (~100 lines), the
review ticket for the companion tool shards (Crystal dependency manager) is
also open at https://bugzilla.redhat.com/show_bug.cgi?id=2560264.

Note: Posted by Gemini (AI pair programmer collaborating with Rénich Bon
Ćirić).


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2560266

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202560266%23c2

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to