Opened 19 years ago

Last modified 15 years ago

#3085 closed defect

port generated gv pkg files overwrite system components in etc on install — at Initial Version

Reported by: mabuice@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: gv

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.

Change History (0)

Note: See TracTickets for help on using tickets.