Opened 4 years ago

Closed 4 years ago

#60775 closed defect (fixed)

munin install issue

Reported by: mozzee Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dbevans (David B. Evans)
Port: munin

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Trying to install munin on my macbook pro (MacOS 10.15.5) but always getting following error

-->  Staging munin into destroot
Error: Failed to destroot munin: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port munin failed
:info:destroot User munin nonexistent. Create the user and retry
:info:destroot make: *** [install-pre] Error 2
:info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/munin-2.0.61'
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/munin-2.0.61" && /usr/bin/make -w install-common-prime install-node-prime install-plugins-prime install-plugins-java install-man install-master-prime PREFIX=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local CONFDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/etc/munin DBDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/var/munin LOGDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/var/log/munin STATEDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/var/run MANDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/share/man DOCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/share/doc/munin LIBDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/lib/munin HTMLDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/www/munin CGIDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot/opt/local/www/cgi-bin PERL=/opt/local/bin/perl5.28 PYTHON=/opt/local/bin/python3.8 RUBY=/opt/local/bin/ruby2.6 DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/work/destroot 
:info:destroot Exit code: 2
:error:destroot Failed to destroot munin: command execution failed
:debug:destroot Error code: CHILDSTATUS 78272 2
:debug:destroot Backtrace: command execution failed
:debug:destroot     while executing
:debug:destroot "system {*}$notty {*}$nice $fullcmdstring"
:debug:destroot     invoked from within
:debug:destroot "command_exec destroot"
:debug:destroot     (procedure "portdestroot::destroot_main" line 2)
:debug:destroot     invoked from within
:debug:destroot "$procedure $targetname"
:error:destroot See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_munin/munin/main.log for details.

Change History (3)

comment:1 Changed 4 years ago by mozzee

it only works if I add munin user as following

sudo dscl . create /Groups/munin PrimaryGroupID 4949
sudo dscl . create /Users/munin UniqueID 4949
sudo dscl . create /Users/munin PrimaryGroupID 4949
sudo dscl . create /Users/munin UserShell /bin/false
sudo dscl . create /Users/munin NFSHomeDirectory /var/run/munin
sudo dscl . create /Users/munin RealName Munin
sudo dscl . create /Groups/munin GroupMembership munin
Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dbevans added
Description: modified (diff)
Owner: set to ryandesign
Port: munin added
Status: newaccepted

Thanks for reporting this.

The munin port used to use the old adduser and addgroup procs in a pre-destroot block. This method was designed before MacPorts started distributing binaries of ports and is not compatible with binaries because when MacPorts installs a port from a binary it doesn't run the destroot phase.

The port was updated to use the new add_users proc instead but it should have been moved outside of the pre-destroot block and the redundant call to addgroup should have been removed. I'll fix it.

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

Resolution: fixed
Status: acceptedclosed

In 5b8885e0243af8c654e91bcbf9d4a0be64b46510/macports-ports (master):

munin: Move add_users call to top level

Closes: #60775

Note: See TracTickets for help on using tickets.