Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603526 - app-vim/vim-tmux-3.0.0 and app-misc/tmux-2.2 file collision: both install /usr/share/vim/vimfiles/ftdetect/tmux.vim
Summary: app-vim/vim-tmux-3.0.0 and app-misc/tmux-2.2 file collision: both install /us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major with 1 vote (vote)
Assignee: Patrice Clement
URL:
Whiteboard:
Keywords:
: 627032 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-22 23:18 UTC by Boris Moddemann
Modified: 2017-08-05 10:07 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge --info (emerge.info,16.48 KB, text/plain)
2016-12-22 23:18 UTC, Boris Moddemann
Details
vim-tmux-3.0.0-r1.ebuild (vim-tmux-3.0.0.ebuild,464 bytes, text/plain)
2017-08-05 08:41 UTC, zlg (RETIRED)
Details
vim-tmux-3.0.0-r1.ebuild (vim-tmux-3.0.0-r1.ebuild,468 bytes, text/plain)
2017-08-05 09:06 UTC, zlg (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Moddemann 2016-12-22 23:18:50 UTC
Created attachment 457162 [details]
Output of emerge --info

Trying to merge app-vim/vim-tmux-3.0.0 with app-misc/tmux-2.2 installed (last updated from 2.1 to 2.2 on Dec 19):

 * Detected file collision(s):
 * 
 *      /usr/share/vim/vimfiles/ftdetect/tmux.vim
 * 
 **********
 * 
 * app-misc/tmux-2.2:0::gentoo
 *      /usr/share/vim/vimfiles/ftdetect/tmux.vim

Either the update didn't remove the old file from tmux-2.1 or tmux-2.2 still has that file installed.


---

genlop -i tmux
 * app-misc/tmux


   Total builds: 6
   Global build time: 3 minutes and 35 seconds.
   Average merge time: 35 seconds.

   Info about currently installed ebuild:

   * app-misc/tmux-2.2
   Install date: Mon Dec 19 07:44:01 2016
   USE="vim-syntax kernel_linux -debug -selinux -utempter -kernel_FreeBSD"
   CFLAGS="-march=sandybridge -O2 -pipe   CXXFLAGS="-march=sandybridge -O2 -pipe   LDFLAGS="-Wl,-O1 -Wl,--as-needed"
Comment 1 Patrice Clement gentoo-dev 2017-08-03 20:11:50 UTC
commit cfd560ee7b35cfd78231d9da747c7b733c4bbf2d (HEAD)
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: Thu Aug 3 22:08:30 2017 +0200
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Thu Aug 3 22:11:19 2017 +0200

app-misc/tmux: add a dependency on app-vim/vim-tmux.

Turning on the vim-syntax USE flag will now install the app-vim/vim-tmux plugin
instead of just one single file.

This plugin can be found at https://github.com/tmux-plugins/vim-tmux.

Gentoo-Bug: https://bugs.gentoo.org/603526

Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-misc/tmux/tmux-2.5-r2.ebuild | 83 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 83 insertions(+)
create mode 100644 app-misc/tmux/tmux-2.5-r2.ebuild
Comment 2 Franz Trischberger 2017-08-04 12:02:43 UTC
We now have a circular dependency:

[nomerge       ] app-misc/tmux-2.5-r2::gentoo  USE="vim-syntax -debug (-selinux) -utempter" 
[ebuild  N     ]  app-vim/vim-tmux-3.0.0::gentoo  0 KiB
[ebuild  N    ~]   app-misc/tmux-2.5-r2::gentoo  USE="vim-syntax -debug (-selinux) -utempter" 0 KiB

Total: 2 packages (2 new), Size of downloads: 0 KiB

 * Error: circular dependencies:

(app-vim/vim-tmux-3.0.0:0/0::gentoo, ebuild scheduled for merge) depends on
 (app-misc/tmux-2.5-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (app-vim/vim-tmux-3.0.0:0/0::gentoo, ebuild scheduled for merge) (runtime)

It might be possible to break this cycle
by applying the following change:
- app-misc/tmux-2.5-r2 (Change USE: -vim-syntax)

That even persists when trying to just install vim-tmux. Temporarily changing USE Flags is possible, but I feel this to be ugly.
Comment 3 Patrice Clement gentoo-dev 2017-08-04 12:33:47 UTC
commit 63c20034193dfaef37f6b431c4eb224c4fdf6816 (HEAD -> master, origin/master, origin/HEAD)
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: Fri Aug 4 14:26:34 2017 +0200
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Fri Aug 4 14:30:05 2017 +0200

app-vim/vim-tmux: remove dependency on app-misc/tmux.

Gentoo-Bug: https://bugs.gentoo.org/603526

Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-vim/vim-tmux/vim-tmux-3.0.0.ebuild | 1 -
1 file changed, 1 deletion(-)
Comment 4 Patrice Clement gentoo-dev 2017-08-04 12:34:15 UTC
Please give it a try and report back.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-05 07:13:24 UTC
*** Bug 627032 has been marked as a duplicate of this bug. ***
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-05 07:14:18 UTC
Guys, do you really need to get back to doing the quizzes? File collisions are solved by *adding blockers*, not *removing dependencies and hoping things will randomly order right*.
Comment 7 zlg (RETIRED) gentoo-dev 2017-08-05 08:41:46 UTC
Created attachment 487998 [details]
vim-tmux-3.0.0-r1.ebuild

Proposed vim-tmux-3.0.0-r1.ebuild

Blocks <app-misc/tmux-2.5-r2
Comment 8 zlg (RETIRED) gentoo-dev 2017-08-05 09:06:34 UTC
Created attachment 488000 [details]
vim-tmux-3.0.0-r1.ebuild

Corrected keywords.
Comment 9 Patrice Clement gentoo-dev 2017-08-05 10:07:56 UTC
510fb8ff0e10a7702dda487f7c550b69078f22e8