Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 May 2008 22:52:31 +0200
From:      Jan Henrik Sylvester <me@janh.de>
To:        Matthew Donovan <kitche@kitchetech.com>
Cc:        stephen@math.missouri.edu, freebsd-ports@freebsd.org
Subject:   Re: ImageMagick-6.4.1-3_1 selftest fails
Message-ID:  <4838800F.4090205@janh.de>
In-Reply-To: <20080524202730.GA46063@njord.Belkin>
References:  <48381B22.30507@janh.de> <18488.8559.136513.226315@jerusalem.litteratus.org> <4838284A.3030400@janh.de> <20080524151658.GW69430@bunrab.catwhisker.org> <483864C2.5090605@math.missouri.edu> <1305.72.65.6.48.1211656566.squirrel@kitchetech.com> <48386F0A.5030202@janh.de> <1525.72.65.6.48.1211658471.squirrel@kitchetech.com> <20080524202730.GA46063@njord.Belkin>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Donovan wrote:
> On Sat, May 24, 2008 at 03:47:51PM -0400, Kitche wrote:
>>> As you can see from my original log, X is used.
>>>
>>> X is not required, since it is not used, if I build with 'su -' instead
>>> of 'su' (and thus have a clear environment without DISPLAY being set).
>>> If the build tries to use X and is denied, the test fails.
>> the whole Su and su - is not related to this it seems considering I can su
>> to my root account and it works.
>>
>> I'll try compiling ImageMagick on X to see if an error occurs.
> 
> Passes all tests in X on 7.0 for me 

Not that this really adds anything to this discussion, but I did test again:

With DISPLAY=:0.0 being set but no access to the display (XAUTHORITY 
unset) being owned by a different user, the PerlMagick tests x11/read 
and x11/write do fail.

Without DISPLAY being set, these tests do run and report 'ok', although 
they do not do anything (window does not appear). (Of course, this is 
the case if I do 'su -' in my Konsole instead of 'su'.)

With DISPLAY and XAUTHORITY both being set properly, a window appears 
during the tests and they both report 'ok'.

(This is all for 6.4.1-3_1 with all OPTIONS to default on 7.0.)

If I did not make this clear earlier, in contrast to my very first post, 
I now consider this behavior ok, since it does not really make sense to 
have DISPLAY set to something that is not accessible. (Not that it 
really makes sense to have the build fail if access to the display is 
being denied, but have it succeed, if no X is present at all...)

Jan Henrik



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4838800F.4090205>