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

Conflicting file /usr/share/vim/vimfiles/syntax/PKGBUILD.vim #9

Open
Firef0x opened this issue Nov 25, 2014 · 1 comment
Open

Conflicting file /usr/share/vim/vimfiles/syntax/PKGBUILD.vim #9

Firef0x opened this issue Nov 25, 2014 · 1 comment
Assignees
Labels

Comments

@Firef0x
Copy link
Owner

Firef0x commented Nov 25, 2014

Error occurs when installing vim-pkgbuild.
安装 vim-pkgbuild 时出现错误。

error: failed to commit transaction (conflicting files)
vim-pkgbuild: /usr/share/vim/vimfiles/syntax/PKGBUILD.vim exists in filesystem
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

/usr/share/vim/vimfiles/syntax/PKGBUILD.vim is owned by pacman 4.1.2-7

By @karol_007 from AUR, thanks a lot! 🌹

@Firef0x Firef0x added the bug label Nov 25, 2014
@Firef0x Firef0x self-assigned this Nov 25, 2014
Firef0x added a commit that referenced this issue Nov 25, 2014
This reverts commit 3841afe.

For this commit results in 'conflicting files' error when installing package vim-pkgbuild.
Refer to #9
Firef0x added a commit that referenced this issue Nov 25, 2014
1. Add after/syntax/PKGBUILD.vim as supplement
   1.1 Add 2 new keywords for 'options' for syntax/PKGBUILD.vim
   1.2 Set current syntax variable
   Refer to #9
2. Update and unify comment style
Firef0x added a commit that referenced this issue Nov 25, 2014
Revert change of syntax/PKGBUILD.vim in commit
6fef11d "Add PKGBUILD template"

Make syntax/PKGBUILD.vim the same as
https://projects.archlinux.org/pacman.git/tree/contrib/PKGBUILD.vim
Refer to #9
@amagura
Copy link

amagura commented Nov 16, 2018

I have added a comment on the AUR package for this plugin--hopefully the maintainer will add pacman-contrib as a dependency.

That said, it looks like the PKGBUILD.vim files offered by pacman-contrib are less complete than the ones provided by vim-pkgbuild. Maybe the maintainers of pacman-contrib could be convinced to either remove their PKGBUILD.vim files or to create a subpackage that does not include the PKGBUILD.vim files.

Differences:

--- /usr/share/vim/vimfiles/ftdetect/PKGBUILD.vim	2018-08-05 13:56:32.000000000 -0600
+++ ./usr/share/vim/vimfiles/ftdetect/PKGBUILD.vim	2018-11-15 18:51:18.000000000 -0700
@@ -1 +1,15 @@
-au BufNewFile,BufRead PKGBUILD set filetype=PKGBUILD
+" Vim filetype detect file
+" Language:     PKGBUILD
+" Maintainer:   Firef0x <Firefgx {at) gmail [dot} com>
+" Last Change:  2014/10/13
+" Version Info: PKGBUILD-0.2 (colorphobic)
+" URL:          https://github.com/Firef0x/PKGBUILD.vim
+
+" FileType Detect Autocmd: {{{1
+autocmd BufNewFile,BufRead PKGBUILD set ft=PKGBUILD
+autocmd BufNewFile,BufRead *.install,install,.INSTALL set ft=sh
+autocmd BufNewFile,BufRead .AURINFO,.PKGINFO set ft=PKGBUILD syn=PKGINFO
+
+" Vim Modeline: {{{1
+" vim: ft=vim: ts=4 sts=4 fdm=marker com+=l\:\"
+" }}}
--- /usr/share/vim/vimfiles/ftdetect/PKGBUILD.vim	2018-08-05 13:56:32.000000000 -0600
+++ ./usr/share/vim/vimfiles/ftdetect/PKGBUILD.vim	2018-11-15 18:51:18.000000000 -0700
@@ -1 +1,15 @@
-au BufNewFile,BufRead PKGBUILD set filetype=PKGBUILD
+" Vim filetype detect file
+" Language:     PKGBUILD
+" Maintainer:   Firef0x <Firefgx {at) gmail [dot} com>
+" Last Change:  2014/10/13
+" Version Info: PKGBUILD-0.2 (colorphobic)
+" URL:          https://github.com/Firef0x/PKGBUILD.vim
+
+" FileType Detect Autocmd: {{{1
+autocmd BufNewFile,BufRead PKGBUILD set ft=PKGBUILD
+autocmd BufNewFile,BufRead *.install,install,.INSTALL set ft=sh
+autocmd BufNewFile,BufRead .AURINFO,.PKGINFO set ft=PKGBUILD syn=PKGINFO
+
+" Vim Modeline: {{{1
+" vim: ft=vim: ts=4 sts=4 fdm=marker com+=l\:\"
+" }}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants