Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18118 - (mod_)php uses portage libgd (1.8.x) only (USE='gd'), but includes gd-2.0 internally since at least 4.3.0
Summary: (mod_)php uses portage libgd (1.8.x) only (USE='gd'), but includes gd-2.0 int...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
Depends on:
Reported: 2003-03-24 18:22 UTC by Lars Hugentobler
Modified: 2003-04-13 11:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Lars Hugentobler 2003-03-24 18:22:05 UTC
when emerging mod_php, USE='gd' causes --with-gd=/usr if media-libs/libgd is
while this is the correct path, media-libs/libgd is currently at version 1.8.x
in both masked and unmasked portage. since some time around php-4.3, php
includes a gd-2 compatible library. it is used if --with-gd is given as
configure argument without a path specification.

Reproducible: Always
Steps to Reproduce:
1.USE='apache2 gd' emerge mod_php
2.echo "<?php phpinfo(); ?>" > test.php test.php in webbrowser

Actual Results:  
unpatched version: gd version 1.8.4

Expected Results:  
patched version: bundled (2.0 compatible)

--- mod_php-4.3.1-r1.ebuild     2003-03-17 04:21:03.000000000 +0100
+++ mod_php-4.3.1-r2.ebuild     2003-03-25 00:12:27.000000000 +0100
@@ -128,7 +128,7 @@
        use jpeg && myconf="${myconf} --with-jpeg-dir=/usr"
        use tiff && myconf="${myconf} --with-tiff-dir=/usr"
        use spell && myconf="${myconf} --with-pspell"
-       use gd && myconf="${myconf} --with-gd=/usr"
+       use gd && myconf="${myconf} --with-gd"
        use png && myconf="${myconf} --with-png-dir=/usr"

        # And zlib, but we need to know if the user wants it - Quequero
Comment 1 SpanKY gentoo-dev 2003-04-13 11:51:10 UTC
yes but the internal version has other issues ... we have had bugs that are a result of using the internal version of libgd ...

i'm working on the libgd-2.x support in portage and i'm pretty sure theres a bug about that ...
Comment 2 SpanKY gentoo-dev 2003-04-13 11:51:24 UTC
if not, please re-open ;)