[MacPorts] #47592: File permissions causing warnings
MacPorts
noreply at macports.org
Tue Nov 17 07:45:45 PST 2015
#47592: File permissions causing warnings
----------------------+--------------------------------
Reporter: mp@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Not set | Milestone:
Component: base | Version: 2.3.99
Resolution: | Keywords:
Port: |
----------------------+--------------------------------
Comment (by mp@…):
This seems to have been fixed, so that when correctly invoked with
{{{
sudo port rev-upgrade
}}}
there are no complaints:
{{{
$ sudo port rev-upgrade
---> Scanning binaries for linking errors
---> No broken files found.
}}}
However, on a little side note, if one "accidentally" does only
{{{
port rev-upgrade
}}}
it naturally fails, but in a somewhat unfriendly way:
{{{
$ port rev-upgrade
---> Scanning binaries for linking errors
Warning: Error parsing file /opt/local/libexec/dbus-daemon-launch-helper:
Error opening or reading file
Warning: Error parsing file /opt/local/bin/cdda2wav: Error opening or
reading file
Warning: Error parsing file /opt/local/bin/cdrecord: Error opening or
reading file
Warning: Error parsing file /opt/local/bin/readcd: Error opening or
reading file
Warning: Error parsing file /opt/local/sbin/rscsi: Error opening or
reading file
Warning: Error parsing file /opt/local/lib/libADM6avcodec.56.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/lib/libADM6avformat.56.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/lib/libADM6avutil.54.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/lib/libADM6postproc.53.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/lib/libADM6swscale.3.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/libexec/ssh-keysign: Error opening
or reading file
---> Found 101 broken file(s), matching files to ports
---> Found 1 broken port(s), determining rebuild order
---> Rebuilding in order
avidemux @2.6.10 +aac+gettext+lame+sqlite+twolame+x264
Warning: MacPorts running without privileges. You may be unable to
complete certain actions (e.g. install).
---> Computing dependencies for avidemux
---> Cleaning avidemux
Warning: Only cleaning in ~/.macports; insufficient privileges for
standard locations
---> Scanning binaries for linking errors
Warning: Error parsing file /opt/local/libexec/dbus-daemon-launch-helper:
Error opening or reading file
Warning: Error parsing file /opt/local/bin/cdda2wav: Error opening or
reading file
Warning: Error parsing file /opt/local/bin/cdrecord: Error opening or
reading file
Warning: Error parsing file /opt/local/bin/readcd: Error opening or
reading file
Warning: Error parsing file /opt/local/sbin/rscsi: Error opening or
reading file
Warning: Error parsing file /opt/local/lib/libADM6avcodec.56.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/lib/libADM6avformat.56.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/lib/libADM6avutil.54.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/lib/libADM6postproc.53.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/lib/libADM6swscale.3.dylib: Error
opening or reading file
Warning: Error parsing file /opt/local/libexec/ssh-keysign: Error opening
or reading file
---> Found 101 broken file(s), matching files to ports
---> Found 1 broken port(s), determining rebuild order
---> Rebuilding in order
avidemux @2.6.10 +aac+gettext+lame+sqlite+twolame+x264
---> Computing dependencies for avidemux
---> Fetching distfiles for avidemux
---> Attempting to fetch avidemux_2.6.10.tar.gz from
http://osl.no.distfiles.macports.org/avidemux
---> Verifying checksums for avidemux
---> Extracting avidemux
---> Applying patches to avidemux
---> Configuring avidemux
---> Building avidemux
---> Staging avidemux into destroot
Error: org.macports.uninstall for port avidemux returned: MacPorts
requires root privileges for this action
Warning: Failed to execute portfile from registry for avidemux
@2.6.10_0+aac+gettext+lame+sqlite+twolame+x264
Error: org.macports.deactivate for port avidemux returned: MacPorts
requires root privileges for this action
Warning: Failed to execute portfile from registry for avidemux
@2.6.10_0+aac+gettext+lame+sqlite+twolame+x264
---> Deactivating avidemux @2.6.10_0+aac+gettext+lame+sqlite+twolame+x264
Error: Uninstall avidemux 2.6.10_0+aac+gettext+lame+sqlite+twolame+x264
failed: sqlite error: attempt to write a readonly database (8)
Error rebuilding avidemux
while executing
"error "Error rebuilding $portname""
(procedure "revupgrade_scanandrebuild" line 395)
invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
(procedure "macports::revupgrade" line 5)
invoked from within
"macports::revupgrade $opts"
(procedure "action_revupgrade" line 2)
invoked from within
"$action_proc $action $portlist [array get global_options]"
(procedure "process_cmd" line 103)
invoked from within
"process_cmd $remaining_args"
invoked from within
"if { [llength $remaining_args] > 0 } {
# If there are remaining arguments, process those as a command
set exit_status [process_cmd $remaining..."
(file "/opt/local/bin/port" line 5268)
}}}
Would be really nice if it could end with
{{{
Error: org.macports.uninstall for port avidemux returned: MacPorts
requires root privileges for this action
}}}
or maybe even better if it could stop with an informative error message
__before__ trying to rebuild in this particular case, or even before the
actual scan.
Just an idea…
--
Ticket URL: <https://trac.macports.org/ticket/47592#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list