ID:               39890
 User updated by:  gabriel at oxeva dot fr
 Reported By:      gabriel at oxeva dot fr
-Status:           Feedback
+Status:           Open
 Bug Type:         *Compile Issues
 Operating System: Linux 2.6
 PHP Version:      5.2.0
 New Comment:

Hello again,

Thanks for the patch. I actually use autoconf version 2.61. This patch
has corrected the bug related to the man path, but CASE 2 and 3 are not
completely solved : the include_path in the PHP binary is still
".:${prefix}/share/pear" (with ${prefix} not expanded), and pear
installs itslef in /usr/pear instead of /usr/share/pear as is it stated
in the GNU layout.


Previous Comments:
------------------------------------------------------------------------

[2006-12-20 00:21:08] [EMAIL PROTECTED]

Please check out this patch:
http://tony2001.phpclub.net/dev/tmp/bug39890.diff
Apply with `patch -p0 < bug39890.diff`, run ./buildconf etc. after
that. 
The patch seems to make autoconf 2.6x happy again.

------------------------------------------------------------------------

[2006-12-20 00:00:28] [EMAIL PROTECTED]

What version of autoconf do you use?

------------------------------------------------------------------------

[2006-12-19 17:22:48] gabriel at oxeva dot fr

Description:
------------
When compiling PHP, using the configure script with the --sysconfdir or
using the GNU layout option breaks paths such as PHP_INCLUDE_PATH or
PHP_SYSCONFDIR set in main/build-defs.h. It seems there is some path
expansions are missing in the configure script

Reproduce code:
---------------
use the configure script with --prefix=/usr and --with-layout=GNU
and/or --sysconfdir=/etc/php

some examples :
first, rebuild the configure script with ./buildconf --force
then,

CASE 1 : configure line (sysconfdir, but not the GNU layout):
./configure --prefix=/usr --disable-cgi --sysconfdir=/etc/php

CASE 2 : configure with GNU layout, but without sysconfdir :
./configure --prefix=/usr --disable-cgi --with-layout=GNU

CASE 3 : configure with GNU layout and sysconfdir :
./configure --prefix=/usr --disable-cgi --sysconfdir=/etc/php
--with-layout=GNU

Expected result:
----------------
CASE 1:
- Man pages in the right place (/usr/man)

CASE 2:
- include_path : .:/usr/share/pear
- have a working --sysconfdir option

CASE 3:
- man pages in /usr/man
- pear in /usr/share/pear
- include_path : .:/usr/share/pear

Actual result:
--------------
CASE 1:
- man pages installed in /man (directly in the root filesystem!)

CASE 2:
- include_path broken : include_path => .:${prefix}/share/pear
- no option to define where to place files such as pear.conf (in
sysconfdir)


CASE 3:
- man pages installed in /man
- pear installed in /pear
- include_path broken : include_path => .:${prefix}/share/pear




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39890&edit=1

Reply via email to