Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11902 - mod_php fails to configure with pdf support
Summary: mod_php fails to configure with pdf support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
: 11946 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-10 11:31 UTC by Nathan Hollingsworth
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

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


Attachments
The fix. (mod_php-4.2.3-png_fix.patch,428 bytes, patch)
2002-12-10 12:01 UTC, Nathan Hollingsworth
Details | Diff
the fixed ebuild (mod_php-4.2.3.ebuild,7.39 KB, text/plain)
2002-12-15 10:29 UTC, Martin Holzer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Hollingsworth 2002-12-10 11:31:24 UTC
If pdf is in the use variable mod_php will fail to configure.

mod_php 4.2.3

The ebuild file is missing a line to add png parameters to the command line of
the configure script.

This patch fixes the problem:

--- mod_php-4.2.3.ebuild	2002-12-08 23:42:46.000000000 -0500
+++ mod_php-4.2.3-fixed.ebuild	2002-12-10 12:27:54.000000000 -0500
@@ -117,6 +117,7 @@
 	use gd && myconf="${myconf} --with-gd"
 	use jpeg && myconf="${myconf} --with-jpeg-dir=/usr/lib"
 	use tiff && myconf="${myconf} --with-tiff-dir=/usr"
+	use png && myconf="${myconf} --with-png-dir=/usr"
 
 	# only include support for png if pdflib is not in USE
 	# fixes #5444
Comment 1 Nathan Hollingsworth 2002-12-10 12:01:29 UTC
Created attachment 6370 [details, diff]
The fix.

The attached patch is just the same patch outlined in my first comment.
Comment 2 Roman Majer 2002-12-10 12:05:38 UTC
this was for bug #5444...  
I've tested to remove this #5444 bug around and  
added two lines to ebuild like here:  
  
use png && myconf="${myconf} --with-png-dir=/usr"  
use pdf ...  
  
and compile was without errors and small test  
from #5444 bug (ImageCreateFromPng) also...  
  
So now is the time to change the ebuild :-)  
Comment 3 Nathan Hollingsworth 2002-12-10 13:12:06 UTC
I should have looked at the change log.

Okay, if libpng can't be included whenever libpdf is included then we have a
problem.

The configure script fails at the libpdf detection because it can't find libpng.

I am going to check out my libpdf if it is indead using libpng and not the
internal png support. Does anyone know if this png fix in libpdf has been commited?
Comment 4 Roman Majer 2002-12-13 07:06:48 UTC
maybe I was not clear... 
I have libpng and libpdf compiled in my mod_php and it is not crashing 
and compile and configure is without problem... 
Comment 5 Ryan Phillips (RETIRED) gentoo-dev 2002-12-14 17:17:04 UTC
Roman: can you attach your ebuild here?
Comment 6 Ryan Phillips (RETIRED) gentoo-dev 2002-12-14 17:39:27 UTC
*** Bug 11946 has been marked as a duplicate of this bug. ***
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2002-12-15 09:29:23 UTC
this fix works for me
Comment 8 Roman Majer 2002-12-15 09:43:00 UTC
 mod_php-4.2.3-r2.ebuild seems to be exactly as my ebuild...
So you have probably catched my idea...

anyway  mod_php-4.2.3-r2.ebuild works for me without
problems... even the test with ImageCreateFromPng is 
successful

Great work Ryan...

I think this bug can be closed...
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2002-12-15 09:44:11 UTC
don't close it
1.2 has mod_php 4.2.3 as stable so this has to be fixed
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2002-12-15 10:29:19 UTC
Created attachment 6524 [details]
the fixed ebuild
Comment 11 Ryan Phillips (RETIRED) gentoo-dev 2002-12-16 14:59:58 UTC
I've unmasked -r2 of dev-php... I'll tweak the dev-php/php ebuild also and unmask.

Thanks for the help everyone.