Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116774 - xorg-x11 does not build X server on OS X
Summary: xorg-x11 does not build X server on OS X
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-26 06:00 UTC by Michal Suchanek
Modified: 2008-03-03 22:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the fink patch for xorg (xorg.patch,5.01 KB, text/plain)
2005-12-26 06:13 UTC, Michal Suchanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Suchanek 2005-12-26 06:00:02 UTC
When I try to merge xorg-x11 on OS X I get quite a few errors during build and the rusulting image does not contain the X server.
Looking at the Fink info file it looks like xorg should build in a few simple steps. There is also a patch but it is very small and it looks like the build fails in places unrelated to the patch.
On the other hand, gentoo includes quite a few patches and the process of building xorg is very complicated.
Comment 1 Michal Suchanek 2005-12-26 06:13:55 UTC
Created attachment 75551 [details]
the fink patch for xorg

See bug 115647 for the build log.
the build process as reconstructed from fink info file (/sw is the fink prefix):
- get X11R6.8.2-src.tar.bz2 (md5 8131cd7ea1e4566e6e05c438a93fcfe1)
- unpack it
- change into the directory xc

 echo '#define ExtraIncDir      /sw/include'        > config/cf/host.def
 echo '#define EtcX11Directory  ProjectRoot/etc'  >> config/cf/host.def
 echo '#define CcCmd            gcc'              >> config/cf/host.def
 echo '#define CplusplusCmd     g++'              >> config/cf/host.def
 echo '#define BuildFontCache   YES'              >> config/cf/host.def
 echo '#define HasFreetype2     NO'               >> config/cf/host.def
 echo '#define InstallCmd       /usr/bin/install' >> config/cf/host.def

- apply the patch

 make WORLDOPTS= World


- you are done

There is at least one drawback to this: the xkb extension is not built on OS X which disables keyboard layout switching.

I can try to build this but it would take quite some time and it is not very useful since I cannot merge (and later unmerge) the resulting binaries with portage.
Comment 2 Fabian Groffen gentoo-dev 2005-12-26 06:18:09 UTC
the /sw/include should go, as we cannot rely on Fink with Gentoo.
Comment 3 Kito (RETIRED) gentoo-dev 2005-12-27 09:12:40 UTC
This has been complicated by the fact that gentoo(and upstream) is moving away from the monolithic release (`make world`) in favor of the modular/autoconfed xorg. I haven't tested recently, but last I checked a few of the Darwin bits had not been modularized yet. 
Comment 4 Michal Suchanek 2005-12-28 04:35:19 UTC
I can build the X server with a clean xorg soure with the fink patch applied.

suchanek:~/xorg-x11-finkinfo/xc root# cat config/cf/host.def 
#define CcCmd            gcc
#define CplusplusCmd     g++
#define BuildFontCache   YES
#define HasFreetype2     YES
#define InstallCmd       /usr/bin/install
suchanek:~/xorg-x11-finkinfo/xc root# make WORLDOPTS= World

Building Release 6.8.2.

I hope you checked the configuration parameters in ./config/cf
to see if you need to pass BOOTSTRAPCFLAGS.

Mon Dec 26 18:00:04 CET 2005

 ... 

+ rm -f XKBlib.ps
+ gzip -d
+ rm -f XKBproto.ps
+ gzip -d
making all in doc/hardcopy/XPRINT...
+ rm -f dtprint_fspec.ps
+ gzip -d

Mon Dec 26 23:27:26 CET 2005

Full build of Release 6.8.2 complete.

suchanek:~/xorg-x11-finkinfo/xc root# exit

Script done on Wed Dec 28 13:21:18 2005


Since there is going to be 6.8.3 before they stop supporting the monolithic build it will probably last for some time.

And I expect that the Darwin bits could be modularized for the next release. Otherwise we will be left with the old monolithic one, and it will be the only one that can be built easily on OS X.
Comment 5 Fabian Groffen gentoo-dev 2008-03-03 22:21:36 UTC
the modular Xorg builds on Darwin, xquartz builds to and is in principle a better head.