Re: [GD-DEVEL] LibGD should not link against libX11

[email protected] (Jonas Smedegaard)
Newsgroups php.gd.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pierre wrote:
> Hi Jonas,
> 
> On 1/1/07, Jonas Smedegaard <[email protected]> wrote:
> 
>> It seems there is no need for libGD to link against libX11.
>>
>> Please read http://bugs.debian.org/314376 for more info (main point is
>> found by searching for "idiot" - and please ignore the last part, that
>> was a different bug).
>>
>> The attached patch seems to fix this issue.
> 
> libXPM links against X11, gd has it as part of the libXpm CFLAGS.

It is wrong to link against anything but what is actually needed.
Blindly inheriting linking from dependent libraries causes problems when
some day the linking of those dependent libraries change, perhaps in
incompatible ways. Maybe no problem on rebuild-from-scratch systems like
Gentoo, but for Debian it causes real problems.


> I'm not sure why gd-noxpm requires libX11, as it is only used by Xpm. I
> think it is a bug in the libgd-noxpm package. Or do I miss something?

As I wrote initially, please ignore that last post.



> By the way, have you asked for a CVS account? Then you can send me a
> tar.gz of the libgd-debian CVS tree, it can be imported in
> gd/gd-debian.

I have requested a CVS account this morning, thanks to the the helpful
hint of Nuno Lopes.

There's no libgd-debian tree to import. And if so, it would probably be
an SVN one :-)


 - Jonas

P.S.

Should I respond only to the list or also privately like here?

- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFmiCpn7DbMsAkQLgRAmu/AJwKfjkMcIOQEpvfdis71R9JOioRgACdFlEJ
rU/UwKzINiS7vj1T+8K4ibI=
=Y/JG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.