Opened 15 years ago

Last modified 15 years ago

#21066 closed defect

xcb overwrites entire /etc dir — at Version 2

Reported by: bakvis_68@… Owned by: qbarnes@…
Priority: High Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: xcb

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

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.

Change History (2)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to qbarnes@…

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

Description: modified (diff)
Note: See TracTickets for help on using tickets.