Re: Xquartz version change?
Re: Xquartz version change?
- Subject: Re: Xquartz version change?
- From: Jeremy Huddleston <email@hidden>
- Date: Wed, 5 Dec 2007 09:28:56 -0800
On Dec 4, 2007, at 23:26, Martin Costabel wrote:
Fink wants to know the version of X11 installed, in order to make a
virtual package representing the installed X11. This is so that Fink
packages that need a specific version of X11 will know if it is
installed or not. As with all decent version numbers, this one
should increase with time.
"need a specific version of X11" is antiquated. X11 is no longer
released as one monolithic package and hasn't been for a few years
now. Fink will need to adjust accordingly to "need a specific version
of libX11, libXft, libXt, etc, etc"... This is a "Good Thing". As an
analogy, saying you need X11 7.2 when you need libX11 is like saying
you need OS-X 10.3 when you need Carbon. The better thing to do is
check for Carbon.
Granted you want backwards compatability where appropriate, so I urge
you to do something like:
satisfiesLibX11Dependency() {
pkg-config x11 --atleast-version=1.0.3 && return 0
doThe10.4AndBeforeHacks()
}
Fink currently tries a couple of different methods to find this
version number: Until Tiger, there were a couple of man pages in /
usr/X11R6/man/man1 that had usable Version lines, for example xterm.
1, bdftruncate.1, gccmakedep.1. These had lines like
.TH XTERM 1 Version\ 4.4.0 XFree86
from which a version "4.4" could be extracted. Only as a last
resort, `X -version -iokit` was run to get a version string. On
Leopard, none of these man pages has a usable version string. They
all show uniformly "X Version 11", which is not of a high
informative value. And now suddenly `X -version` does not give the
version of the installed X11 any more, either.
The one and only file that now still has the "7.2" version string
is /usr/X11/include/xorg/xorg-server.h:
/* Vendor release */
#define XORG_RELEASE "Release 7.2"
/* Current Xorg version */
#define XORG_VERSION_CURRENT (((7) * 10000000) + ((2) * 100000) +
((0) * 1000) + 0)
Uhm, I don't think that shouldn't even be there. Please don't rely on
it in any way!
Ben... how is this getting installed? Was that on accident? 'make
install' doesn't install xorg-server.h for me, and I'm fairly certain
it isn't actually needed by anything outside of xserver, so why is it
in /usr/X11/include? Am I missing something here?
And then there is /usr/X11/lib/X11/config/xorgversion.def which has
#define XORG_VERSION_MAJOR 6
#define XORG_VERSION_MINOR 8
#define XORG_VERSION_PATCH 99
#define XORG_VERSION_SNAP 903
#define XORG_DATE "03 December 2005 + cvs"
That is just there to help make broken older things that look for it
work. It basically says that the installed components are at-least
the versions shipped when monolithic X split into modular X.
I hope this helps,
Jeremy
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden