Upgrade questions
John E Hein
jhein at timing.com
Sun Apr 27 04:25:50 UTC 2008
Ronald F. Guilmette wrote at 17:51 -0700 on Apr 26, 2008:
> OK, could the real problem possibly be that I did:
>
> portsnap fetch
> portsnap extract
>
> on a fairly stock 6.2-RELEASE systems ...
I don't know. But the symptoms (e.g., pkg_version failing due to
undefined X_WINDOW_SYSTEM - that might happen if you have a newer
bsd.port.mk but older ports Makefiles) point to problems with your
ports tree. What's the $FreeBSD$ in your Mk/bsd.port.mk ?
xorg-server/Makefile ? Compare those to what you see
at http://www.freebsd.org/cgi/cvsweb.cgi/ports/ (teaching you
to fish here as you requested).
> The Handbook instructions were really not at all clear about whether or not
> I was supposed to start by wiping out my pre-existing /usr/ports tree, and
> I get the distinct feeling that I perhaps should have done this because
> now it appears that I've got a ports tree that's got a bunch of _new_ X
> stuff in it along side a big bunch of old/stale X stuff. Example:
>
> # cd /usr/ports/x11-servers
> # ls -l
> total 38
> -rw-r--r-- 1 root wheel 410 Mar 7 13:47 Makefile
> drwxr-xr-x 4 root wheel 512 Jun 15 2007 XFree86-4-FontServer
> drwxr-xr-x 3 root wheel 512 Jun 15 2007 XFree86-4-NestServer
> drwxr-xr-x 3 root wheel 512 Jun 15 2007 XFree86-4-PrintServer
> drwxr-xr-x 4 root wheel 512 Jun 15 2007 XFree86-4-Server
> drwxr-xr-x 3 root wheel 512 Jun 15 2007 XFree86-4-VirtualFramebufferServer
> drwxr-xr-x 4 root wheel 512 Apr 26 02:51 Xfstt
> drwxr-xr-x 4 root wheel 512 Apr 26 02:52 driglide
> drwxr-xr-x 2 root wheel 512 Apr 25 23:30 mga_hal
> drwxr-xr-x 3 root wheel 512 Jun 15 2007 synaptics
> drwxr-xr-x 2 root wheel 512 Apr 25 23:30 x2vnc
> drwxr-xr-x 3 root wheel 512 Apr 25 23:30 x2x
> drwxr-xr-x 3 root wheel 512 Apr 25 23:30 xorg-dmx
> drwxr-xr-x 4 root wheel 512 Jun 15 2007 xorg-fontserver
> drwxr-xr-x 2 root wheel 512 Apr 25 23:30 xorg-nestserver
> drwxr-xr-x 2 root wheel 512 Apr 25 23:30 xorg-printserver
> drwxr-xr-x 4 root wheel 512 Apr 26 03:15 xorg-server
> drwxr-xr-x 3 root wheel 512 Apr 25 23:30 xorg-server-snap
> drwxr-xr-x 2 root wheel 512 Apr 25 23:30 xorg-vfbserver
>
> Do I correctly surmise that this is *not* tyhe way my ports tree should be
> looking?
I have no idea. Why do you surmise that? We can't tell by looking at
that directory listing. What is the PORTVERSION/PORTREVISION in
xorg-server/Makefile?
Note that if you want to update to xorg 7.3, you'll not want the
FreeBSD 6.2 version of the ports tree since xorg was still at 6.9 for
FreeBSD 6.2
> Would it make sense for me to in effect, start over, i.e. via the following:
>
> # rm -fr /usr/ports
> # portsnap fetch
> # portsnap extract
If you have nothing that you've done in /usr/ports that you want to
preserve such as local patches (if you don't know what I'm talking
about then you haven't), then removing your ports tree will be fine.
As to the portsnap part, I don't know - I've never used it - but that
looks reasonable after glancing at the man page.
You could try doing 'mv /usr/ports /usr/ports.mv' then comparing
the trees (diff -ur) after doing the fresh portsnap.
For me, I use the 'old school' method straight from CVS (with a local
copy of the repository from cvsup in CVS mode) or infrequently cvsup
in checkout mode... see cvsup man page or the cvsup faq for more.
If you had a local copy of the ports CVS repository, you could
checkout the ports tree and do a diff to verify everything is properly
up to date.
Try ports@ or questions@ if someone doesn't answer here.
These questions are not really specific to x11.
More information about the freebsd-x11
mailing list