Bug 2131 - Darwin install fails if lndir is used to build
Summary: Darwin install fails if lndir is used to build
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/XQuartz (show other bugs)
Version: 6.8.2
Hardware: PowerPC Mac OS X (All)
: high normal
Assignee: Torrey T. Lyons
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-21 23:33 UTC by n8gray
Modified: 2007-11-02 16:49 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description n8gray 2004-12-21 23:33:42 UTC
If you use lndir to make a build tree then the XDarwin.app that gets installed by 'make install' is broken.

[n8gray@golux MainMenu.nib]$ pwd
/Applications/XDarwin.app/Contents/Resources/English.lproj/MainMenu.nib
[n8gray@golux MainMenu.nib]$ ls -l
total 0
lrwxr-xr-x    1 root     admin         103 Dec 21 18:38 classes.nib -> ../../../../../../../../xc-cvs/
programs/Xserver/hw/darwin/bundle/English.lproj/MainMenu.nib/classes.nib
lrwxr-xr-x    1 root     admin         103 Dec 21 18:38 objects.nib -> ../../../../../../../../xc-cvs/
programs/Xserver/hw/darwin/bundle/English.lproj/MainMenu.nib/objects.nib

Needless to say, these symlinks don't work and XDarwin can't start.  This is X.org 6.8.2 RC1 built with 
an lndir source tree on OS X 10.3.7.
Comment 1 Torrey T. Lyons 2004-12-22 11:28:36 UTC
Assigning to me as this is a Darwin specific build issue. Solutions are:

1. Have Apple modify Xcode to add an option to follow symlinks in assembling application bundles. I 
filed a bug/feature request with them for this awhile ago. I'm not holding my breath.

2. Stop using Xcode to assemble the application bundle. The requires teaching Imake or some other 
build system in the modular tree to be able to make application bundles. This is a bit of a moving 
target since the X11 build mechanics are in flux.
Comment 2 Han Boetes 2005-02-18 11:41:55 UTC
I wanted to use lndir as well to prepare the build and noticed lndir is provided
by xorg, so people who don't have xorg installed can't use lndir. Not to
terrible. I compile it first as follows:

    cd $BUILDDIR
    sed -e 's|X11/Xos|string|;s|X11/Xfuncproto|unistd|' \
        $PKGMK_SOURCE_DIR/xc/config/util/lndir.c \
        > lndir.c
    gcc lndir.c -o lndir
    ./lndir $PKGMK_SOURCE_DIR/xc
    rm lndir*

Perhaps it's an idea to replace the X11 headers in lndir like I did, so people
can build it without having to have x11 installed.
Comment 3 Erik Andren 2006-04-27 07:08:13 UTC
Is this still an issue using a current version of xorg?
Comment 4 Daniel Stone 2007-02-27 01:24:53 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 5 Ben Byer 2007-11-02 16:49:56 UTC
no longer an issue.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.