[MacPorts] #67533: shared-mime-info @2.2_1: non sudo build clashes with sudo build

MacPorts noreply at macports.org
Wed May 31 10:10:14 UTC 2023


#67533: shared-mime-info @2.2_1: non sudo build clashes with sudo build
-------------------------------+----------------------
  Reporter:  lukaso            |      Owner:  mascguy
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.8.1
Resolution:                    |   Keywords:
      Port:  shared-mime-info  |
-------------------------------+----------------------

Comment (by lukaso):

 Having set all the variables above, it appears to install without
 problems.

 When I then went to uninstall:

 {{{
 $ ~/macports-gimp3-arm64/bin/port uninstall shared-mime-info
 Note: It is not recommended to uninstall/deactivate a port that has
 dependents as it breaks the dependents.
 The following ports will break:
  gdk-pixbuf2 @2.42.10_0
  gtk3 @3.24.37_1
 Continue? [y/N]: y
 Warning: Uninstall forced.  Proceeding despite dependencies.
 --->  Deactivating shared-mime-info @2.2_1
 Error: Failed to deactivate shared-mime-info: can't read "notes": no such
 variable
 Error: See /Users/user/macports-gimp3-arm64/var/macports/logs
 /_Users_lukasoberhuber_macports-gimp3
 -arm64_var_macports_registry_portfiles_shared-mime-
 info-2.2_1_69c9dfea6cbb502d01bec1aa2159ec5db0d6b2331c123e40bb82bddd6677a0d0-3054
 /shared-mime-info/main.log for details.
 Warning: Failed to execute portfile from registry for shared-mime-info
 @2.2_1
 --->  Uninstalling shared-mime-info @2.2_1
 --->  Cleaning shared-mime-info
 }}}

 Second try worked.

 Then I installed the `sudo` version and then installed the non-`sudo`
 version and that succeeded as well. It looks like your fix worked.

 > That's less painful than running `sudo port load <port_name>`? Seems
 pretty awful to me.

 I'm not familiar with this command. If that loads these things and the
 post install message suggested to do that (when doing a non-sudo MacPorts
 install), I think that's a pretty reasonable solution as well.

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


More information about the macports-tickets mailing list