Opened 13 years ago
Closed 13 years ago
#31732 closed defect (fixed)
mecab-base: mecab is being used by the active mecab port
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | humem (humem) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | rsky0711@… | |
Port: | mecab, mecab-base |
Description
Upgrading from mecab 0.98_0 to 0.98_1 is problematic:
$ port outdated mecab The following installed ports are outdated: mecab 0.98_0 < 0.98_1 $ sudo port -u upgrade mecab Password: ---> Computing dependencies for mecab-base ---> Fetching archive for mecab-base ---> Attempting to fetch mecab-base-0.98_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/mecab-base ---> Fetching mecab-base ---> Verifying checksum(s) for mecab-base ---> Extracting mecab-base ---> Applying patches to mecab-base ---> Configuring mecab-base ---> Building mecab-base ---> Staging mecab-base into destroot ---> Installing mecab-base @0.98_0+universal ---> Activating mecab-base @0.98_0+universal Error: Target org.macports.activate returned: Image error: /opt/local/bin/mecab is being used by the active mecab port. Please deactivate this port first, or use 'port -f activate mecab-base' to force the activation. Log for mecab-base is at: /opt/local/var/macports/logs/_Users_rschmidt_macports_dports_textproc_mecab-base/mecab-base/main.log Error: Problem while installing mecab-base To report a bug, see <http://guide.macports.org/#project.tickets> $
Looks like mecab now depends on mecab, and mecab-base now provides files that used to be provided by mecab. So the mecab-base port should use the "deactivate hack" to deactivate the installed mecab port before activating.
Change History (1)
comment:1 Changed 13 years ago by humem (humem)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Thank you for your pointing out, and I owe you a lot! I committed in r86233 to add the deactivate hack.
Additionally I modified mecab port to try to install the corresponding port (mecab-sjis, mecab-utf8) to a deprecated variant (+sjis, +utf8) in upgrading, though the process will fail. Committed in r86234.