[MacPorts] #21066: xcb overwrites entire /etc dir

MacPorts noreply at macports.org
Thu Sep 3 14:42:15 PDT 2009


#21066: xcb overwrites entire /etc dir
-----------------------------------+----------------------------------------
 Reporter:  bakvis_68@…            |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  High                   |   Milestone:                                       
Component:  ports                  |     Version:  1.8.0                                
 Keywords:                         |        Port:  xcb                                  
-----------------------------------+----------------------------------------
 I just upgraded port startup-notification to version 0.10, which pulls in
 port xcb (new dependency). After building there was a warning message
 indicating that xcb is installing something outside /opt/local:


 {{{
 ...
 --->  Compressing man pages for xcb
 man1/xcb.1:      60.0% -- replaced with man1/xcb.1.gz
 Warning: violation by /etc
 Warning: xcb violates the layout of the ports-filesystems!
 Warning: Please fix or indicate this misbehavior (if it is intended), it
 will be an error in future releases!
 --->  Installing xcb @2.4_1
 --->  Activating xcb @2.4_1
 --->  Cleaning xcb
 --->  Removing build directory for xcb
 }}}


 After uninstalling xcb I noticed that '''the entire /etc dir was gone!'''
 On Mac OS X, /etc is a symlink to /private/etc, so it was easily repaired
 by

 {{{
 sudo ln -s /private/etc /etc
 }}}

 However, this is potentially very dangerous! I don't know what would have
 happened if I had logged out?


 The offending line in the Makefile (produced after configure phase) is at
 line 379:

 {{{
 ETCX11DIR = /etc/X11
 }}}

 This should be replaced by ${prefix}/etc/X11.

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


More information about the macports-tickets mailing list