Opened 10 years ago

Closed 10 years ago

#30055 closed defect (fixed)

port mpkg gcc45 +universal does not work on MacPorts 2.0.0b2 with nonexistent macportsuser

Reported by: wlipa (Bill Lipa) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.9.99
Keywords: Cc:
Port:

Description

$ port installed
No ports are installed.

$ sudo port mpkg gcc45 +universal
Warning: configured user/group macports does not exist, will build as root
--->  Computing dependencies for gcc45
--->  Dependencies to be installed: gcc_select gmp libiconv gperf libmpc mpfr xz gettext expat ncurses ncursesw
Error: Failed to install gcc_select
Log for gcc_select is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_gcc_select/gcc_select/main.log
Error: The following dependencies were not installed: gcc_select gmp libiconv gperf libmpc mpfr xz gettext expat ncurses ncursesw
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

$ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_gcc_select/gcc_select/main.log
version:1
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 4294967295
:debug:main euid changed to: 4294967295
:error:main Failed to install gcc_select
:notice:main Log for gcc_select is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_gcc_select/gcc_select/main.log

Might be related to #30054

Change History (7)

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Why did gcc_select fail to install? Please attach its main.log file.

comment:2 Changed 10 years ago by wlipa (Bill Lipa)

Replying to ryandesign@…:

Why did gcc_select fail to install? Please attach its main.log file.

I'm pretty sure it was to do with the macports user not existing (see #30054). Once I edited macports.conf to set the user to 'root', I was able to get by this step.

However the original main.log file for gcc_select is in the bug description above.

comment:3 Changed 10 years ago by ryandesign (Ryan Schmidt)

Oh, that's all of it. I see. "4294967295" is a pretty large user id or group id -- in fact that's the largest unsigned 32-bit integer, so that's probably an error somewhere.

comment:4 Changed 10 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.0.0

comment:5 Changed 10 years ago by jmroot (Joshua Root)

Summary: port mpkg gcc45 +universal does not work on MacPorts 2.0.0b2port mpkg gcc45 +universal does not work on MacPorts 2.0.0b2 with nonexistent macportsuser

comment:6 Changed 10 years ago by jmroot (Joshua Root)

Could we have debug output please? The error isn't happening in the portfile context so it doesn't show up in the log for the port. The big number is actually -1 (converted to unsigned), which is what name_to_uid returns when you give it a nonexistent username. But the call to that proc should only happen if privileges had been dropped previously.

comment:7 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Should be fixed by r80229, reopen if not.

Note: See TracTickets for help on using tickets.