[MacPorts] #3085: port generated gv pkg files overwrite system components in etc on install

MacPorts noreply at macports.org
Fri Sep 26 22:30:54 PDT 2008


#3085: port generated gv pkg files overwrite system components in  etc on install
-----------------------------------+----------------------------------------
  Reporter:  mabuice at uchicago.edu  |       Owner:  macports-tickets at lists.macosforge.org
      Type:  defect                |      Status:  closed                               
  Priority:  Normal                |   Milestone:  Port Bugs                            
 Component:  ports                 |     Version:  1.0                                  
Resolution:  duplicate             |    Keywords:                                       
      Port:  gv                    |  
-----------------------------------+----------------------------------------
Changes (by ryandesign at macports.org):

  * port:  => gv
  * milestone:  => Port Bugs


Old description:

> I built an installer package from port using the following command:
>
> port pkg gv
>
> which built a package "gv-3.5.8.pkg" and put it in the
> "/opt/local/var/db/dports/build/
> file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dupdate_dports_print_gv/work"
> directory.  After installing the package by double-clicking it in the
> Finder and following the standard
> instructions, everything seemed to be fine until I launched a new
> Terminal window and got the message
>
> "unable to initialize PAM: No such file or directory"
> [process completed]
>
> and hence no shell.  After quiting and restarting Terminal I got a window
> saying that Terminal couldn't
> launch because "the administrator has set your shell to an illegal
> value".  After opening Netinfo to set
> my shell to bash (it was zsh) the problem persisted, so I rebooted.
>
> After the gray apple logo, the screen went black and I was left with a
> message saying that "/etc/
> master.passwd" could not be found.  The machine had booted into single
> user mode.
>
> Looking around, I discovered that the contents of the "/etc" directory
> were completely emptied except
> for those files installed by the "gv" package.
>
>  I suspect that this is a related issue to bug# 3075.
>
> The generated pkg file doesn't seem to be able to cope with the fact that
> "/etc" is actually a link to "/
> etc/private" and overwrites it.

New description:

 I built an installer package from port using the following command:

 {{{
 port pkg gv
 }}}

 which built a package "gv-3.5.8.pkg" and put it in the
 "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dupdate_dports_print_gv/work"
 directory.  After installing the package by double-clicking it in the
 Finder and following the standard
 instructions, everything seemed to be fine until I launched a new Terminal
 window and got the message

 {{{
 "unable to initialize PAM: No such file or directory"
 [process completed]
 }}}

 and hence no shell.  After quiting and restarting Terminal I got a window
 saying that Terminal couldn't
 launch because "the administrator has set your shell to an illegal value".
 After opening Netinfo to set
 my shell to bash (it was zsh) the problem persisted, so I rebooted.

 After the gray apple logo, the screen went black and I was left with a
 message saying that "/etc/master.passwd" could not be found.  The machine
 had booted into single user mode.

 Looking around, I discovered that the contents of the "/etc" directory
 were completely emptied except
 for those files installed by the "gv" package.

 I suspect that this is a related issue to bug #3075.

 The generated pkg file doesn't seem to be able to cope with the fact that
 "/etc" is actually a link to "/etc/private" and overwrites it.

--

-- 
Ticket URL: <http://trac.macports.org/ticket/3085#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list