[MacPorts] #58185: mkfontscale mkfontdir: File conflict

MacPorts noreply at macports.org
Sun Mar 10 00:43:04 UTC 2019


#58185: mkfontscale mkfontdir: File conflict
------------------------------------+----------------------
  Reporter:  mf2k                   |      Owner:  jeremyhu
      Type:  defect                 |     Status:  closed
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:
Resolution:  fixed                  |   Keywords:
      Port:  mkfontscale mkfontdir  |
------------------------------------+----------------------

Comment (by vallon):

 I don't know what the expectation is here, but it seems that my mkfontdir
 is installed but inactive.  Not sure how it got that way.  port upgrade
 had trouble with conflicting /opt/local/bin/mkfontdir.

 {{{
 $ date
 Sat Mar  9 19:30:45 EST 2019
 $ port installed mkfontdir
 The following ports are currently installed:
   mkfontdir @1.0.7_0
 $ port activate mkfontdir
 --->  Computing dependencies for mkfontdir
 --->  Activating mkfontdir @1.0.7_0
 Error: Failed to activate mkfontdir: Image error: /opt/local/bin/mkfontdir
 is being used by the active mkfontscale port.  Please deactivate this port
 first, or use 'port -f activate mkfontdir' to force the activation.
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_mkfontdir-1.0.7_0_469b6ad86e7ffbb26072b0825460b552eb9abe2fdd023ef26895190b3e9c7651-873/mkfontdir/main.log
 for details.
 Warning: Failed to execute portfile from registry for mkfontdir @1.0.7_0
 --->  Activating mkfontdir @1.0.7_0
 Error: port activate failed: Image error: /opt/local/bin/mkfontdir is
 being used by the active mkfontscale port.  Please deactivate this port
 first, or use 'port -f activate mkfontdir' to force the activation.
 $ sudo port uninstall mkfontdir
 Note: It is not recommended to uninstall/deactivate a port that has
 dependents as it breaks the dependents.
 The following ports will break:
  font-adobe-100dpi @1.0.3_0
  font-adobe-75dpi @1.0.3_0
 Continue? [y/N]:
 ...
 $ sudo port -u uninstall
 Note: It is not recommended to uninstall/deactivate a port that has
 dependents as it breaks the dependents.
 The following ports will break:
  font-adobe-100dpi @1.0.3_0
  font-adobe-75dpi @1.0.3_0
 ...
 Continue? [y/N]: n
 --->  Cleaning mkfontdir
 $ port provides /opt/local/bin/mkfontdir
 /opt/local/bin/mkfontdir is provided by: mkfontscale
 $ port info font-adobe-100dpi
 font-adobe-100dpi @1.0.3 (x11, x11-font, graphics)

 Description:          X.org Adobe 100 DPI font
 Homepage:             https://www.x.org/

 Build Dependencies:   pkgconfig, bdftopcf, xorg-font-util, gzip
 Library Dependencies: fontconfig, mkfontscale
 Platforms:            darwin
 License:              X11
 Maintainers:          Email: jeremyhu at macports.org, GitHub: jeremyhu
                       Policy: openmaintainer

 $ port upgrade outdated
 Nothing to upgrade.
 }}}

 It isn't clear to me why it thinks font-adobe-100dpi depends on mkfontdir.

 I would guess "uninstall -f" might fix this, but just wondering whether
 this broken-state should have resolved itself automatically.

-- 
Ticket URL: <https://trac.macports.org/ticket/58185#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list