Bug #66764 [Asn->Csd]: configure doesn't define EXPANDED_DATADIR / PHP_DATADIR correctly
| From: | stas@php.net | Date: | Mon, 05 Jan 2015 05:02:36 +0000 |
| Subject: | Bug #66764 [Asn->Csd]: configure doesn't define EXPANDED_DATADIR / PHP_DATADIR correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189653@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66764&edit=1
ID: 66764
Updated by: stas@php.net
Reported by: rainer dot jung at kippdata dot de
Summary: configure doesn't define EXPANDED_DATADIR /
PHP_DATADIR correctly
-Status: Assigned
+Status: Closed
Type: Bug
Package: *Compile Issues
Operating System: All
PHP Version: 5.6.0alpha2
Assigned To: tyrael
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2014-02-24 20:33:00] rainer dot jung at kippdata dot de
Description:
------------
configure is used to determine EXPANDED_DATADIR, which in turn is used to set PHP_DATADIR in
main/build-defs.h.in / main/build-defs.h.
configure sets EXPANDED_DATADIR from datadir, which in turn is set to '$datarootdir' and
then eval'ed once.
Now datarootdir is set to '${prefix}/shared', so first datadir is set to
'$datarootdir', then once eval'ed to '${prefix}/shared' as a verbatim
string. This string ends up as the value of PHP_DATADIR in main/build-defs.h:
#define PHP_DATADIR "${prefix}/share"
To fix this one needs to eval datadir in configure.in twice:
--- configure.in 2014-02-05 11:00:36.000000000 +0100
+++ configure.in 2014-02-24 21:31:45.656842000 +0100
@@ -1172,6 +1172,7 @@
exec_prefix=
eval echo $exec_prefix
libdir=eval echo $libdir
datadir=eval echo $datadir
+datadir=eval echo $datadir
dnl Build extension directory path
Regards,
Rainer
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66764&edit=1