Opened 18 years ago

Closed 18 years ago

#10238 closed enhancement (fixed)

RFC: XFree86-4.5.0_2: detect Apple X11 headers installed without libraries

Reported by: cssdev@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

A common problem on the mailing list is people trying to install ports that depend upon X11. They often have the X11 headers installed through XCode without the system libraries in place. Because DP doesn't detect libX11, it attempts to build XFree86. This can make for a lot of confusion for new uesrs, as DP will refuse to install when it detects conflicts trying to install the headers. One suggestion might be to catch when the headers are installed without the libraries.

The attached patch proposes one approach: have the darwin variant check for X.h without libX11.dylib. This condition will generate a ui_error indicating that the user should install X11 from the Mac OS X Install DVD. Perhaps the message could be improved, but I wonder if adding this special case to the Portfile might help to clear up some of the trouble that people encounter when trying to install X11-based ports.

Attachments (1)

patch-Portfile.diff (787 bytes) - added by cssdev@… 18 years ago.
patch for XFree86 Portfile

Download all attachments as: .zip

Change History (4)

Changed 18 years ago by cssdev@…

Attachment: patch-Portfile.diff added

patch for XFree86 Portfile

comment:1 Changed 18 years ago by cssdev@…

Any thoughts on this issue?

comment:2 Changed 18 years ago by cssdev

Owner: changed from macports-tickets@… to css@…
Status: newassigned

comment:3 Changed 18 years ago by yves@…

Resolution: fixed
Status: assignedclosed

fixed with changeset:23516

Note: See TracTickets for help on using tickets.