You are not logged in.

#1 2006-04-06 15:31:10

EAD
Member
Registered: 2006-03-11
Posts: 255

emacs conflicts with ctags

Hii, I am using VIM, so I need ctags, but I want emacs too, so when doing "pacman -S emacs", I get

:: emacs conflicts with ctags. Remove ctags? [Y/n]

How can I install then both at the same time?
:?:

Offline

#2 2006-04-06 23:43:33

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: emacs conflicts with ctags

Emacs installs it's own version of ctags, it's not the same , but it's close.  Remove ctags and let emacs install it's own.

Offline

#3 2006-04-07 00:15:58

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: emacs conflicts with ctags

But then, should not emacs -- provides=('ctags') -- otherwise you get problems like this:

[root@home:~]# pacman -S source-highlight

Targets: boost-1.33.1-4 ctags-5.5.4-1 source-highlight-2.3-4

Total Package Size:   18.1 MB

Proceed with upgrade? [Y/n] n
[root@home:~]#
[root@home:~]# pacman -S source-highlight

Targets: boost-1.33.1-4 ctags-5.5.4-1 source-highlight-2.3-4

Total Package Size:   18.1 MB

Proceed with upgrade? [Y/n]

checking package integrity... done.
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
  ctags: /usr/bin/ctags: exists in filesystem
  ctags: /usr/bin/etags: exists in filesystem
  ctags: /usr/man/man1/ctags.1.gz: exists in filesystem
  ctags: /usr/man/man1/etags.1.gz: exists in filesystem


errors occurred, no packages were upgraded.

[root@home:~]#

Offline

#4 2006-04-07 06:14:35

EAD
Member
Registered: 2006-03-11
Posts: 255

Re: emacs conflicts with ctags

Ok, so why do I get this file conflicts ?
I know emacs should have ctags, but when I use VIM I need ctags too and I need to install it.

Offline

#5 2006-04-07 08:36:10

rohandhruva
Member
Registered: 2005-04-23
Posts: 25

Re: emacs conflicts with ctags

Also, emacs' ctags doesnt support as many languages as "ctags" i.e. the exuberant ctags.

Offline

#6 2006-04-07 08:40:29

EAD
Member
Registered: 2006-03-11
Posts: 255

Re: emacs conflicts with ctags

rohandhruva wrote:

Also, emacs' ctags doesnt support as many languages as "ctags" i.e. the exuberant ctags.

so why can't I use both emacs ctags and ctags?
:?:

Offline

#7 2006-04-07 16:38:57

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: emacs conflicts with ctags

That is a good point - I've never bothered with emacs' ctags.  Please post a bug report about installing the two side-by-side

Offline

#8 2006-04-07 20:38:53

rohandhruva
Member
Registered: 2005-04-23
Posts: 25

Re: emacs conflicts with ctags

No, they cannot be installed at the same time, EAD, since both use the name "ctags" in /usr/bin .. We are left with two options :

1) Rename the  ctags executable to /usr/bin/exuberant-ctags, and inform the user about it. Also, a cherry on the cake would be to do

in ctags post_install
[ -f /usr/bin/ctags ] || ln -s /usr/bin/exuberant-ctags /usr/bin/ctags

in emacs pre_install
[ -f /usr/bin/ctags ] && rm /usr/bin/ctags

2) Use the 'alternatives' system that debian, fedora etc. use. This is a long time process, cannot be implemented as quickly, but it is the most efficient way. It allows emacs and ctags both to be installed with different executable names, and the user selects which one to put in /usr/bin .. So you could use emacs and ctags simultaneously. You just need to do "update-alternatives --config ctags" and then choose the one you want.

HTH,
Rohan.

Offline

#9 2006-05-03 08:40:22

dejari
Member
From: Germany
Registered: 2005-09-12
Posts: 72

Re: emacs conflicts with ctags

You should file a bug on this if you want it to be fixed.

Offline

#10 2006-05-06 01:01:35

allucid
Member
Registered: 2006-01-06
Posts: 259

Re: emacs conflicts with ctags

I have multiple versions of emacs installed and I have the following:
/usr/bin/ctags
/usr/bin/ctags.emacs
/usr/bin/etags
/usr/bin/etags.emacs

:shock:

Offline

Board footer

Powered by FluxBB