[FreeBSD] Going to Xorg from Xfree86

Discussion in 'Linux & BSD' started by j79zlr, Jun 1, 2004.

  1. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    Since XFree is seemingly going to disappear, here are the steps to install Xorg on FreeBSD. Here are the steps and the patch file you need to do it;

    # pkg_deinstall -f XFree*
    # pkg_deinstall -O wrapper-*
    # cd /usr/ports/x11/xorg-libraries && make install clean

    This will fail [fixed 6/2/04] becuase it looks for Wraphelp2.gz in the wrong location, so you need to copy the Wraphelp2.gz file to /usr/ports/distfiles
    #cp /usr/ports/distfiles/xorg/Wraphelp.gz /usr/ports/distfiles/
    # make install clean
    # cd /usr/ports/x11-servers/xorg-server && make install clean
    # cd /usr/ports/x11/wrapper


    now you need to patch the Makefile, save in the directory as xorg.diff
    Code:
    *** Makefile	Mon May 31 21:43:41 2004
    --- Makefile.xorg	Mon May 31 23:18:42 2004
    ***************
    *** 13,21 ****
      EXTRACT_SUFX=	# intentionally left blank
      
      MAINTAINER=	[email]trevor@FreeBSD.org[/email]
    ! COMMENT=	Wrapper for XFree86-4 server
      
    ! RUN_DEPENDS=	XFree86:${PORTSDIR}/x11-servers/XFree86-4-Server
      
      NO_WRKSUBDIR=	yes
      PLIST_FILES=	bin/Xwrapper-4
    --- 13,21 ----
      EXTRACT_SUFX=	# intentionally left blank
      
      MAINTAINER=	[email]trevor@FreeBSD.org[/email]
    ! COMMENT=	Wrapper for Xorg-server
      
    ! RUN_DEPENDS=	Xorg:${PORTSDIR}/x11-servers/xorg-server
      
      NO_WRKSUBDIR=	yes
      PLIST_FILES=	bin/Xwrapper-4
    ***************
    *** 24,30 ****
      do-fetch:
      
      do-build:
    ! 	${CC} ${CFLAGS} -DXSERVER_PATH=\"${X11BASE}/bin/XFree86\" -o ${WRKSRC}/Xwrapper-4 ${FILESDIR}/wrapper.c
      
      do-install:
      	${INSTALL_PROGRAM} ${WRKSRC}/Xwrapper-4 ${PREFIX}/bin
    --- 24,30 ----
      do-fetch:
      
      do-build:
    ! 	${CC} ${CFLAGS} -DXSERVER_PATH=\"${X11BASE}/bin/Xorg\" -o ${WRKSRC}/Xwrapper-4 ${FILESDIR}/wrapper.c
      
      do-install:
      	${INSTALL_PROGRAM} ${WRKSRC}/Xwrapper-4 ${PREFIX}/bin
    # patch Makefile xorg.diff
    # make install clean
    # cd /usr/ports/x11/xorg-clients && make install clean
    # portinstall xorg-fonts-*
    # pkgdb -F

    Fix up the dependencies,
    XFree86-fontsScalable -> xorg-fonts-type1
    XFree86-server -> xorg-server, you get the idea

    That should be it. xorg will use your existing XF86Config, but you should cp to xorg.conf just to be thorough.
     
    cpugeniusmv and NetRyder like this.
  2. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Is Xorg as good as Xfree86? Any idea btw why Xfree quits?
     
  3. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    Xfree and Xorg split basically due to license changes, it seems that everyone is moving to x.org because of the [I guess] more restrictive nature of it, so it is bad news for Xfree86. Also, XFree86-4.4 has been out for quite some time and is not in the ports collection, but xorg has just been added, hardly subtle :).

    As far as I can tell there is no major differences.
     
  4. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
    Excellent guide. Thanks! [​IMG]
     
  5. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
  6. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    I don't know anything about these operating systems, but if this guide is as good as you say netryder, I vote sticky
     
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Neat guide, was looking at switching myself. I have been helping adding ports and was looking at fixing certain issues.
     
  8. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    About the Xfree and Xorg differences:

    Xfree now has a more restrictive license that all distributors of it said they did not like, thus it is being rejected by everyone, and they move onto a fork of it. Xorg in this case, which is a simple replacement which contains all kinds of neat ideas that would never be implemented in XFree cause the person that runs the project is an *******.

    The latest Xfree is not in the ports yet because it is not a simple switch, and the port maintainer is currenly on vacation.
     
  9. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    he's back from vacation ;) but he moved xorg in before updating xfree to 4.4 which I took as an indication of the direction of things, btw xorg-clients is currently broken on 4-x, even though it is not listed as so, I've installed xorg on 4 boxes so far, xorg-clients has failed on the 2 4-x and has installed fine on the 2 5-x. You can use the XFree86-clients along with the rest of the xorg ports just fine.
     
  10. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    cool, good info, me thinks sticky should be done as well]


    *sticks
     
  11. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    Good guide, but I still don't see no reason to change, as it's only license issue and updates. If it aint broke, don't fix it. It's working fine on my freebsd 4.10 so I see no reason to change, unless it does really improve over time.
     
  12. Xie

    Xie - geek - Subscribed User Folding Team

    Messages:
    5,275
    Location:
    NY, USA
    I have read (havn't tested yet) that X.org is more stable and alot of ppl have had better luck with it so far :)
     
  13. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    X.org contains a lot of new features that are not in the Xfree tree, and with the backing of so many Distrobutions and projects it will grow faster.
     
  14. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Well, xorg is a lot easier to move in because it is so modular.
     
  15. cpugeniusmv

    cpugeniusmv Computer Genius

    Messages:
    485
  16. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    wewt

    I think I am going to install xorg instead of XFree86 when I upgrade my desktop machine
     
  17. Uruloki

    Uruloki OSNN One Post Wonder

    Messages:
    1
    How would one go about doing that? :/.
     
  18. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    when you run pkgdb -F after installing xorg.
     
  19. Xie

    Xie - geek - Subscribed User Folding Team

    Messages:
    5,275
    Location:
    NY, USA
    More info about how to go about making the switch smoothly here .
     
  20. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    On versions before that (5.2.1 or 4.10) add X_WINDOW_SYSTEM=xorg to make.conf in /etc/. Now recompile every app that links against X86Free so that it compiles against Xorg. (Easiest way to do this is to delete all ports except cvsup and portupgrade), and delete your /usr/ports tree, cvsup new ports, and start compiling from scratch.