DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st February 2009
ccc ccc is offline
Shell Scout
 
Join Date: May 2008
Posts: 97
Thanked 0 Times in 1 Post
Default upgrade xorg on freebsd

hi

howto upgrade xorg from ports on freebsd 7.0-RELEASE ?
I have the following xorg packages installed:
Code:
bsd# pkg_info | grep xorg
linux-xorg-libs-6.8.2_5 Xorg libraries, linux binaries
xorg-7.3_2          X.Org complete distribution metaport
xorg-apps-7.3       X.org apps meta-port
xorg-cf-files-1.0.2_2 X.org cf files for use with imake builds
xorg-docs-1.4,1     X.org documentation files
xorg-drivers-7.3_2  X.org drivers meta-port
xorg-fonts-100dpi-7.3 X.Org 100dpi bitmap fonts
xorg-fonts-7.4      X.org fonts meta-port
xorg-fonts-75dpi-7.3 X.Org 75dpi bitmap fonts
xorg-fonts-cyrillic-7.3 X.Org Cyrillic bitmap fonts
xorg-fonts-miscbitmaps-7.3 X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-7.3 X.Org TrueType fonts
xorg-fonts-type1-7.3 X.Org Type1 fonts
xorg-libraries-7.3_2 X.org libraries meta-port
xorg-server-1.4_10,1 X.Org X server and related programs
Reply With Quote
  #2   (View Single Post)  
Old 1st February 2009
ccc ccc is offline
Shell Scout
 
Join Date: May 2008
Posts: 97
Thanked 0 Times in 1 Post
Default

according to /usr/ports/UPDATING, I'll try the following:
Code:
20070519:
  AFFECTS: users of Xorg
  AUTHOR: kris@FreeBSD.org

  Welcome, fearless user!  You are about to embark upon a mystical
  journey to the world of xorg 7.2.

  This upgrade procedure is for users of portupgrade.  Users of other
  upgrade tools should contact the author for the corresponding upgrade
  method for that tool.

  It is recommended that you run the xorg 7.2 upgrade inside a script(1)
  session.  This way, if something goes wrong, you will have hopefully
  saved enough information for the developers to debug the problem.
  Make sure you choose a filesystem with lots of space for the script
  output.

	# script xorg-upgrade

  You may wish to set BATCH=yes in the environment to avoid interactive
  dialogue boxes.

  You may want to consider using portupgrade-devel, which fixes some
  annoying bugs that cause upgrades to incorrectly be marked as failed
  when they actually completed successfully.  To switch to
  portupgrade-devel:

	# portupgrade -f -o ports-mgmt/portupgrade-devel portupgrade
	# rm -f /usr/ports/INDEX*.db /var/db/pkg/pkgdb.db
	# pkgdb -fu

  If you have changed your ports environment in /etc/make.conf,
  /usr/local/etc/pkgtools.conf or similar you need to rebuild INDEX:

	# cd /usr/ports && make index

  If you have not changed your ports environment you can save some
  time and just fetch the latest INDEX:

	# cd /usr/ports && make fetchindex

  It is necessary to set the XORG_UPGRADE environment variable while
  updating from xorg 6.9 to 7.2.  Once the upgrade is complete this
  is no longer be required.

  For users of csh-like shells:
  # setenv XORG_UPGRADE yes

  For users of sh-like shells:
  # export XORG_UPGRADE=yes

  Unfortunately portupgrade (nor portupgrade-devel) cannot yet handle
  the rigors of the xorg upgrade without a small bit of help:

	# portupgrade -Rf libXft

  If your machine does NOT have any gstreamer ports installed, you can then
  run:

	# portupgrade -a

  However, if you DO have gstreamer ports installed, you must run:

	# portupgrade -a -x 'gstreamer*'

  Followed by:

	# portupgrade -Rr 'gstreamer*'

  When packages are available (wait for the announcement on ports@), you
  may prefer to use precompiled packages to speed up the process:

	# portupgrade -aP

  Once the upgrade completes successfully, you can delete the
  xorg-manpages package, which is now orphaned.

	# pkg_delete xorg-manpages\*

  The final step is to merge remaining files from /usr/X11R6 into
  /usr/local (/usr/X11R6 is no longer used with xorg 7.2) and replace
  /usr/X11R6 with a symlink.

  A script is provided for your convenience (or you may choose to do
  this by hand): it will first attempt to back up your /usr/X11R6 into
  /usr/tmp/mergebase in case something goes wrong, then look for
  conflicts (files in /usr/X11R6 that would overwrite files in
  /usr/local).  Depending on your system configuration you may have to
  resolve some of these conflicts by hand first (if in doubt, ask for
  help on freebsd-x11@FreeBSD.org).  You may also need to edit the
  script if the default locations are not correct on your system.

  If your /usr/X11R6 is a file system, you will also need to modify the
  script to pause after /usr/X11R6 is backed up, but before the symlink is
  created.

  # sh /usr/ports/Tools/scripts/mergebase.sh

  When the merge operation completes successfully, the /usr/X11R6
  directory hierarchy will be removed and replaced by a symlink to
  /usr/local.  This symlink is necessary because some binary ports (and
  some remaining source ports) have hard-coded references to /usr/X11R6.

  Congratulations, you are done!

  # exit
Reply With Quote
  #3   (View Single Post)  
Old 1st February 2009
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Ummm, that UPDATING entry is dated May 19th of 2007, and is for Xorg 7.2 :-)

Adam
Reply With Quote
  #4   (View Single Post)  
Old 1st February 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 337
Thanked 32 Times in 30 Posts
Default

Just upgrade the metaport (or do a portupgrade -a), but keep the entries in /usr/ports/UPDATING (the recent entries) in mind. If you have the choice, wait for a week or two, because there are quite a lot of issues with X.org 7.4 which need to be ironed out. I expect a lot of minor updates in 7.4 in the coming weeks.
Reply With Quote
  #5   (View Single Post)  
Old 1st February 2009
ccc ccc is offline
Shell Scout
 
Join Date: May 2008
Posts: 97
Thanked 0 Times in 1 Post
Default

Quote:
Originally Posted by DutchDaemon View Post
Just upgrade the metaport (or do a portupgrade -a), but keep the entries in /usr/ports/UPDATING (the recent entries) in mind. If you have the choice, wait for a week or two, because there are quite a lot of issues with X.org 7.4 which need to be ironed out. I expect a lot of minor updates in 7.4 in the coming weeks.
to upgrade metaport, you mean:
Code:
# portupgrade -fr distfiles/xorg
Reply With Quote
  #6   (View Single Post)  
Old 1st February 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 337
Thanked 32 Times in 30 Posts
Default

No, just portupgrade xorg-7.3_2. No need to use force or recursion, and you never reference distfiles directly. Just the port. Since this is ia metaport, upgrading it will take care of everything belonging to it.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 7.1 Ati Xpress 200M Xorg 7.4 problem raduenea FreeBSD Installation and Upgrading 11 1st July 2009 12:46 AM
Remote FreeBSD server upgrade - Guide! carpman Guides 8 5th April 2009 05:37 PM
freebsd 7.1 upgrade buildworld error map7 FreeBSD Installation and Upgrading 9 30th October 2008 06:54 PM
FreeBSD 6.2-RELEASE > 7.0-RELEASE Upgrade Marci FreeBSD Installation and Upgrading 2 23rd July 2008 02:10 PM
upgrade from 5.5 to 6.3 keithlybsd FreeBSD Installation and Upgrading 9 27th May 2008 06:21 PM


All times are GMT. The time now is 01:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick