Opened 14 years ago

Closed 14 years ago

#24236 closed defect (fixed)

erc depends on emacs but conflicts with it

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: drkp (Dan Ports)
Port: erc, emacs

Description

erc depends on emacs, but tries to install /opt/local/share/info/erc which is already installed by the emacs port:

--->  Activating erc @5.3_0
Error: Target org.macports.activate returned: Image error: /opt/local/share/info/erc is being used by the active emacs port.  Please deactivate this port first, or use 'port -f activate erc' to force the activation.

Attachments (2)

patch-emacs.diff (547 bytes) - added by drkp (Dan Ports) 14 years ago.
patch-org-mode.diff (701 bytes) - added by drkp (Dan Ports) 14 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 14 years ago by drkp (Dan Ports)

erc is included in emacs and it looks like the included version is 5.3, same as the port. This seems to be the latest version. So it's possible the port is redundant. Though http://www.emacswiki.org/emacs/?action=browse;id=ERC suggests there are extra modules not included with emacs, maybe the port includes these?

I dealt with this in the org-mode port (which provides a newer version than the one included with emacs) by renaming the info file to include the version number. If it's going to come up for lots of emacs packages, though, it might be worth putting all of emacs's info files into /opt/local/share/info/emacs-$version/ or something like that -- this would also be useful if you want the info for both emacs and emacs22 installed. I'll see what it would take to do that; I'm not that familiar with info files.

comment:2 in reply to:  1 Changed 14 years ago by drkp (Dan Ports)

Replying to dports@…:

it might be worth putting all of emacs's info files into /opt/local/share/info/emacs-$version/ or something like that -- this would also be useful if you want the info for both emacs and emacs22 installed. I'll see what it would take to do that; I'm not that familiar with info files.

Looks like just installing the info files into a different directory will do nicely. I was worried that we'd need to hack the contents of the portfiles so they'd show up separately in info directories, but that appears unnecessary as info seems to pick the right one by default.

Here's a very simple patch for emacs. With it, emacs installs its info files into share/info/emacs/. emacs22 already installs its into share/info/emacs22/. Any ports that provide emacs packages (e.g. erc) can install their info files directly into share/info, which is probably the default.

Can you also apply the attached patch to org-mode which brings it into line with the above?

Changed 14 years ago by drkp (Dan Ports)

Attachment: patch-emacs.diff added

Changed 14 years ago by drkp (Dan Ports)

Attachment: patch-org-mode.diff added

comment:3 Changed 14 years ago by drkp (Dan Ports)

Owner: changed from macports-tickets@… to dports@…
Status: newassigned

comment:4 Changed 14 years ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

Patches applied in r68451 and r68452.

Note: See TracTickets for help on using tickets.