Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 May 2008 08:16:58 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Jan Henrik Sylvester <me@janh.de>
Cc:        ports-list freebsd <freebsd-ports@freebsd.org>
Subject:   Re: ImageMagick-6.4.1-3_1 selftest fails
Message-ID:  <20080524151658.GW69430@bunrab.catwhisker.org>
In-Reply-To: <4838284A.3030400@janh.de>
References:  <48381B22.30507@janh.de> <18488.8559.136513.226315@jerusalem.litteratus.org> <4838284A.3030400@janh.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--bOC9TN0n4iVUZoxs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, May 24, 2008 at 04:38:02PM +0200, Jan Henrik Sylvester wrote:
> ...
> >> ImageMagick fails to build for me. I guess it is because I do the
> >> build as root while a different user "owns the display". (I do
> >> use kdm for login and start the build after su in a Konsole.)
> >
> >	Built just fine for me, about an hour ago, on -CURRENT with no
> >KDE involved.  OPTIONS screen worked fine.
>=20
> Thanks. As I said, I tried to build with root while root was not allowed=
=20
> to use the display. Granting root access with 'xhost +local:' or 'setenv=
=20
> XAUTHORITY /usr/home/USER/.Xauthority' fixes the problem. Having to do=20
> that was kind of unexpected for me...
>=20
> Maybe I was just wrong trying this with 'su' as root instead of properly=
=20
> being logged in with 'su -'. Having a DISPLAY=3D:0 set but being=20
> disallowed from using it, may not be expected.

I don't use KDE, but I do use xdm(1), so if I understand correctly, I
have a similar $DISPLAY ownership situation as yours.

ImageMagick just built for me under 6.3-STABLE (also freshly built
today).  (Although I track RELENG_6, RELENG_7, and HEAD daily, I only
build ports under RELENG_6, as that's what I actually mostly use.)

I do the building within a run of script(1) that I start via sudo(1);
that, in turn, is run under screen(1) within an xterm(1).  (Yes, I could
investigate ways to reduce the number of those tools, but as things
stand, each is there for a specific reason that I think I understand.)

In any case, I saw no evidence that the build of ImageMagick even needed
to be run within an X11 environment.  Examining the output from
script(1) for the upgrade of ImageMagick shows no instances of the
string "DISPLAY," for example.  (The string "display" shows up, as the
name of one of the programs in the ImageMagick suite.)

Peace,
david   (who still uses a derivative of twm(1) as a WM)
--=20
David H. Wolfskill				david@catwhisker.org
I submit that "conspiracy" would be an appropriate collective noun for cats.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--bOC9TN0n4iVUZoxs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iEYEARECAAYFAkg4MWgACgkQmprOCmdXAD3tggCePQeF+zA8CNt+6KsOuuWFCfks
G4gAnApUCDO1TK38dTrZKM/m2jTZzQPI
=7RcR
-----END PGP SIGNATURE-----

--bOC9TN0n4iVUZoxs--



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