[MacPorts] #67533: shared-mime-info @2.2_1: non sudo build clashes with sudo build
MacPorts
noreply at macports.org
Tue May 30 12:34:02 UTC 2023
#67533: shared-mime-info @2.2_1: non sudo build clashes with sudo build
--------------------+------------------------------
Reporter: lukaso | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: shared-mime-info
--------------------+------------------------------
This build fails without asking for `sudo` access. And also fails because
the existing `plist` was placed there by a `sudo` version of MacPorts.
There's also what feels like an anomaly with how the file is being
installed in the first place.
I don't know what should be happening, but I think the ideal would be that
the port let's the user know that to get the feature to launch
automatically, a command needs to be run (with `sudo`). (For my usecase, I
don't need the `plist` to be installed.)
{{{
---> Installing shared-mime-info @2.2_1
---> Activating shared-mime-info @2.2_1
Error: Failed to activate shared-mime-info: error renaming "/Users/user
/macports-gimp3-arm64/var/macports/software/shared-mime-
info/mpextract07AJw27y/Users/user/macports-
gimp3-arm64/etc/LaunchDaemons/org.macports.shared-mime-info-updater.plist"
to "/Library/LaunchDaemons/org.macports.shared-mime-info-updater.plist":
file already exists
while executing
"::file rename $srcfile $dstfile"
(procedure "_activate_file" line 33)
invoked from within
"_activate_file ${extracted_dir}${src} $dest"
("foreach" body line 4)
invoked from within
"foreach {src dest} $confirmed_rename_list {
$port deactivate [list $src]
$port activate [list $src] [list $des..."
("try" body line 8)
while executing
"throw [dict get $eOptions -errorcode] [dict get $eOptions -errorinfo]"
("try ... on" handler line 5)
invoked from within
"registry::write {
# Activate it, and catch errors so we can roll-back
try {
$port activate $imagefiles
..."
Error: See /Users/user/macports-gimp3-arm64/var/macports/logs
/_Users_user_macports-gimp3-arm64_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_devel_shared-mime-info/shared-mime-
info/main.log for details.
}}}
{{{
$ ls -las /Library/LaunchDaemons/org.macports.shared-mime-info-
updater.plist
0 lrwxr-xr-x 1 root admin 110 24 May 18:47
/Library/LaunchDaemons/org.macports.shared-mime-info-updater.plist ->
/opt/local/etc/LaunchDaemons/org.macports.shared-mime-info-
updater/org.macports.shared-mime-info-updater.plist
}}}
And looking at the `/Library/LaunchDaemons` folder, things look a little
bit odd (group is `admin` instead of `wheel`)
{{{
$ ll /Library/LaunchDaemons
(gimp-2-10 $=)
total 80
0 drwxr-xr-x 15 root wheel 480 28 May 21:53 .
0 drwxr-xr-x 68 root wheel 2176 8 Apr 02:45 ..
8 -rw-r--r-- 1 root wheel 627 28 Mar 08:44 com.docker.socket.plist
8 -rw-r--r-- 1 root wheel 1347 27 Mar 23:38
com.expressvpn.expressvpnd.plist
8 -rw-r--r--@ 1 root wheel 810 15 Apr 23:58 com.fing.service.plist
8 -rw-r--r--@ 1 root wheel 828 28 Mar 00:01
com.google.keystone.daemon.plist
8 -rw-r--r-- 1 root wheel 793 29 Mar 17:17
com.microsoft.OneDriveStandaloneUpdaterDaemon.plist
8 -rw-r--r-- 1 root wheel 749 29 Mar 17:17
com.microsoft.OneDriveUpdaterDaemon.plist
8 -rw-r--r-- 1 root wheel 428 17 May 00:40
com.microsoft.autoupdate.helper.plist
8 -rw-r--r-- 1 root wheel 657 12 Mar 12:45
com.microsoft.office.licensingV2.helper.plist
8 -rw------- 1 root wheel 271 11 May 14:04
com.microsoft.teams.TeamsUpdaterDaemon.plist
0 lrwxr-xr-x 1 root admin 90 16 Apr 17:57 org.freedesktop.dbus-
system.plist -> /opt/local/etc/LaunchDaemons/org.freedesktop.dbus-
system/org.freedesktop.dbus-system.plist
0 lrwxr-xr-x 1 root admin 74 1 Apr 23:58 org.macports.rsyncd.plist
->
/opt/local/etc/LaunchDaemons/org.macports.rsyncd/org.macports.rsyncd.plist
0 lrwxr-xr-x 1 root admin 110 24 May 18:47 org.macports.shared-mime-
info-updater.plist -> /opt/local/etc/LaunchDaemons/org.macports.shared-
mime-info-updater/org.macports.shared-mime-info-updater.plist
8 -rw-r--r-- 1 root wheel 622 28 Mar 17:30 us.zoom.ZoomDaemon.plist
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67533>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list