[MacPorts] #35670: Port install with Xcode 4.4 doesn't work
#35670: Port install with Xcode 4.4 doesn't work --------------------------------+------------------------------------------- Reporter: dpawlows@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: --------------------------------+------------------------------------------- I know that people are still trying to figure out all the issues with Xcode 4.3, but I had no choices but to move on to 4.4 as my hard drive died yesterday and was replaced. I can install macports, but um unable to install any ports due to what seems like a privileges issue. I.e.: sudo port install gnuplot ... ---> Fetching archive for aquaterm Error: org.macports.archivefetch for port aquaterm returned: could not set effective gid to 0 Error: Failed to install aquaterm ... Relevant lines from the log file: :msg:archivefetch ---> Fetching archive for aquaterm :debug:archivefetch Executing org.macports.archivefetch (aquaterm) :debug:archivefetch Can't run archivefetch on this port without elevated privileges. Escalating privileges back to root. :error:archivefetch org.macports.archivefetch for port aquaterm returned: could not set effective gid to 0 :debug:archivefetch Error code: NONE :debug:archivefetch Backtrace: could not set effective gid to 0 while executing So despite running it as root, I'm not running it as root? -- Ticket URL: <https://trac.macports.org/ticket/35670> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35670: Port install with Xcode 4.4 doesn't work --------------------------------+------------------------------------------- Reporter: dpawlows@… | Owner: mojca.miklavec.lists@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: gnuplot --------------------------------+------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mojca.miklavec.lists@… * cc: dpawlows@… (removed) * cc: ryandesign@… (added) * port: => gnuplot Old description:
I know that people are still trying to figure out all the issues with Xcode 4.3, but I had no choices but to move on to 4.4 as my hard drive died yesterday and was replaced. I can install macports, but um unable to install any ports due to what seems like a privileges issue. I.e.:
sudo port install gnuplot ... ---> Fetching archive for aquaterm Error: org.macports.archivefetch for port aquaterm returned: could not set effective gid to 0 Error: Failed to install aquaterm ...
Relevant lines from the log file:
:msg:archivefetch ---> Fetching archive for aquaterm :debug:archivefetch Executing org.macports.archivefetch (aquaterm) :debug:archivefetch Can't run archivefetch on this port without elevated privileges. Escalating privileges back to root. :error:archivefetch org.macports.archivefetch for port aquaterm returned: could not set effective gid to 0 :debug:archivefetch Error code: NONE :debug:archivefetch Backtrace: could not set effective gid to 0 while executing
So despite running it as root, I'm not running it as root?
New description: I know that people are still trying to figure out all the issues with Xcode 4.3, but I had no choices but to move on to 4.4 as my hard drive died yesterday and was replaced. I can install macports, but um unable to install any ports due to what seems like a privileges issue. I.e.: {{{ sudo port install gnuplot ... ---> Fetching archive for aquaterm Error: org.macports.archivefetch for port aquaterm returned: could not set effective gid to 0 Error: Failed to install aquaterm ... }}} Relevant lines from the log file: {{{ :msg:archivefetch ---> Fetching archive for aquaterm :debug:archivefetch Executing org.macports.archivefetch (aquaterm) :debug:archivefetch Can't run archivefetch on this port without elevated privileges. Escalating privileges back to root. :error:archivefetch org.macports.archivefetch for port aquaterm returned: could not set effective gid to 0 :debug:archivefetch Error code: NONE :debug:archivefetch Backtrace: could not set effective gid to 0 while executing }}} So despite running it as root, I'm not running it as root? -- Comment: Please remember to use WikiFormatting, to fill in the Port field, and to Cc the maintainer of that port. Cc'ing yourself is not needed when you are the reporter. Yes, despite you running as root (or using "`sudo`"), most of MacPorts does not run as root; it drops privileges to an unprivileged user (the "macports" user). MacPorts works fine with the versions of Xcode listed on our [https://www.macports.org/install.php install page], which includes 4.3 and 4.4. Please "sudo port clean gnuplot", then try again, then attach the main.log file if it fails again, so that we can see everything that happened. -- Ticket URL: <https://trac.macports.org/ticket/35670#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35670: Port install with Xcode 4.4 doesn't work --------------------------------+------------------------------------------- Reporter: dpawlows@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: aquaterm --------------------------------+------------------------------------------- Changes (by ryandesign@…): * owner: mojca.miklavec.lists@… => mcalhoun@… * port: gnuplot => aquaterm Comment: Eh, wrong port, aquaterm not gnuplot. -- Ticket URL: <https://trac.macports.org/ticket/35670#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35670: Port install with Xcode 4.4 doesn't work --------------------------------+------------------------------------------- Reporter: dpawlows@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: aquaterm --------------------------------+------------------------------------------- Comment(by dpawlows@…): Fair enough. The issue isn't with aquaterm, that will install. Port is having trouble installing dependencies or something. For example, I did a {{{sudo port install aquaterm}}} which worked. Then I tried installing gnuplot again and I got the same error, only for expat. So I installed expat sucessfully, tried gnuplot again, and this time it chokes when trying to install bzip2. I've attached the log from that attempt. This issue pops up when I try and install any port with dependencies so far, such as emacs23, texlive, and ghostscript. -- Ticket URL: <https://trac.macports.org/ticket/35670#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35670: could not set effective gid to 0 --------------------------------+------------------------------------------- Reporter: dpawlows@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Keywords: | Port: --------------------------------+------------------------------------------- Changes (by ryandesign@…): * owner: mcalhoun@… => macports-tickets@… * component: ports => base * port: aquaterm => -- Ticket URL: <https://trac.macports.org/ticket/35670#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35670: could not set effective gid to 0 -------------------------+-------------------------------- Reporter: dpawlows@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by dave@…): FWIW, I am reproducing the results of dpawlows@emich.edu -- Ticket URL: <https://trac.macports.org/ticket/35670#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#35670: could not set effective gid to 0 -------------------------+-------------------------------- Reporter: dpawlows@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by dave@…): It’s probably not a wise idea, but setting macportsuser root in macports.conf works around the problem. Another way to work around the problem seems to be to set macportsuser to a user with sudo privileges, create a group with the same name as that user and add the user to the group, and change ownership (recursively) of /opt/local/var/macports to that user. -- Ticket URL: <https://trac.macports.org/ticket/35670#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts