PHP :: Bug #66764 :: configure doesn't define EXPANDED_DATADIR
| Bug #66764 | configure doesn't define EXPANDED_DATADIR / PHP_DATADIR correctly | ||||
|---|---|---|---|---|---|
| Submitted: | 2014-02-24 20:33 UTC | Modified: | 2015-01-05 05:02 UTC | ||
| From: | rainer dot jung at kippdata dot de | Assigned: | tyrael (profile) | ||
| Status: | Closed | Package: | *Compile Issues | ||
| PHP Version: | 5.6.0alpha2 | OS: | All | ||
| Private report: | No | CVE-ID: | None | ||
[2014-02-24 20:33 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2014-10-17 14:00 UTC] tyrael@php.net
-Assigned To: +Assigned To: tyrael
[2015-01-05 05:02 UTC] stas@php.net
-Status: Assigned +Status: Closed
[2015-01-05 05:02 UTC] stas@php.net