On Sun, Jan 30, 2011 at 4:00 PM, Alexander Hansen
<[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 1/30/11 12:50 PM, Martin Costabel wrote:
>> On 30/01/11 17:11 , Alexander Hansen wrote:
>> []
>>> I did find was that "X -version -iokit" hangs without output if you run
>>> it in a terminal when X11 is already running, so make sure to shut down
>>> X11 if it's running.  This doesn't seem to affect Fink's X11 detection,
>>> however.
>>
>> I don't remember when this '-iokit' was useful, but it must have been a
>> long time ago, maybe on 10.4. On 10.5 and 10.6, even with Apple's X11,
>> it does not work. It either hangs or when it gives an output, the output
>> is not useful: Fink::VirtPackage::check_x11_version() looks for a line
>> containing one of
>> XFree86 Version
>> X Protocol Release
>> X.org Release
>> On 10.5 or 10.6, you get this from `X -version` *without* the '-iokit'.
>>
>> OTOH, on 10.5 or 10.6, AFAICS this part of the code shouldn't ever be
>> executed, because there is an earlier check for some *.pc files, and
>> only when these are not found, the check_x11_version subroutine is
>> called. This happens only if one of
>> 'applewm', 'fontconfig', 'freetype2', 'x11', 'xcb', 'xorg-server'
>> has no corresponding *.pc file in /usr/X11/lib/pkgconfig/.
>>
>> The output of `fink-virtual-pkgs --debug` would be helpful in this
>> situation.
>>
>
> As best as I can tell, -iokit is also not required for Fink's xorg:
>
> {
> $ X -version 2>&1
>
> Release Date: 18 December 2003
> X Protocol Version 11, Revision 0, Release 6.8.2
> }
>
> on 10.4, or for Apple's X11 there:
>
> {
> XFree86 Version 4.4.0 / X Window System
> (protocol Version 11, revision 0, vendor release 6600)
>
> (I tried to check Fink's XFree86, but the Todai .deb is misbuilt not to
> have "X" in it, at least on 10.4,  and I'm getting low on download
> bandwidth)
> }
>
> So when we finally get CVS access again it's probably worth removing
> that from VirtPackage.pm .
> - --
> Alexander Hansen, Ph.D.
> Fink User Liaison
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1F0VgACgkQB8UpO3rKjQ93UACfVuPO4Y4oTMTwJSYD2EumcG1m
> dusAoKDuANW+LhkIrGGCX8F2NTYEfwFD
> =/CON
> -----END PGP SIGNATURE-----
>

Oops.  The xorg-6.8.2 was from an orphaned Fink install of the
package--had it been in the dpkg database then there would have been
no need for VirtPackage.pm to do anything, of course.

I've verified that X11 version detection works fine for Apple's X11
and an orphaned Fink xorg-6.8.2 on 10.4  without the "-iokit" flag.
-- 
Alexander K. Hansen
akh AT finkproject DOT org
Fink User Liaison and Documenter

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to