[MacPorts] #39941: sudo port upgrade <port> fails to untar the archive (permissions problem)
#39941: sudo port upgrade <port> fails to untar the archive (permissions problem) -------------------------------+-------------------------------- Reporter: sicot@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.0 Keywords: permissions, sudo | Port: -------------------------------+-------------------------------- Since I updated to macports 2.2.0, I am no longer able to upgrade the outdated ports. For instance {{{
sudo port upgrade bison }}}
gives {{{ ---> Computing dependencies for bison ---> Fetching distfiles for bison ---> Attempting to fetch bison-3.0.tar.xz from http://mirrors.ibiblio.org/gnu/ftp/gnu/bison ---> Verifying checksums for bison ---> Extracting bison Error: org.macports.extract for port bison returned: command execution failed Please see the log file for port bison for details: /Users/sicot/macports/var/macports/logs/_Volumes_DATA_Users_sicot_macports_var_macports_sources_www.macports.org_files_ports_devel_bison/bison/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets }}} The log file shows that there is a problem of permissions despite the sudo command (the full log is enclosed): {{{ :debug:extract Executing command line: cd "/Users/sicot/macports/var/macports/build/_Volumes_DATA_Users_sicot_macports_var_macports_sources_www.macports.org_files_ports_devel_bison/bison/work" && /Users/sicot/macports/bin/xz -dc '/Users/sicot/macports/var/macports/distfiles/bison/bison-3.0.tar.xz' | /usr/bin/gnutar --no-same-owner -xf - :info:extract /usr/bin/gnutar: bison-3.0: Cannot mkdir: Operation not permitted :info:extract /usr/bin/gnutar: bison-3.0/.prev-version: Cannot open: No such file or directory ... }}} When I run the command manually (with sudo), it works. It is like macports does not run the command with sudo permissions but when I intentionally run without sudo i get the expected error: {{{
port upgrade bison Error: Insufficient privileges to write to MacPorts install prefix. }}}
I did not installed macports in /opt/local because of HD partitioning made by my IT department. I don't know if it related. i run macos 10.7.5. -- Ticket URL: <https://trac.macports.org/ticket/39941> MacPorts <http://www.macports.org/> Ports system for OS X
#39941: sudo port upgrade <port> fails to untar the archive (permissions problem) ------------------------+-------------------------------- Reporter: sicot@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 2.2.0 Resolution: duplicate | Keywords: permissions, sudo Port: | ------------------------+-------------------------------- Changes (by cal@…): * status: new => closed * resolution: => duplicate Comment: That's #39850. -- Ticket URL: <https://trac.macports.org/ticket/39941#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts