Bug #66764 [NEW]: configure doesn't define EXPANDED_DATADIR / PHP_DATADIR correctly
| From: | rainer dot jung at kippdata dot de | Date: | Mon, 24 Feb 2014 20:33:01 +0000 |
| Subject: | Bug #66764 [NEW]: configure doesn't define EXPANDED_DATADIR / PHP_DATADIR correctly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-184398@lists.php.net to get a copy of this message | ||
From: rainer dot jung at kippdata dot de
Operating system: All
PHP version: 5.6.0alpha2
Package: *Compile Issues
Bug Type: Bug
Bug description:configure doesn't define EXPANDED_DATADIR / PHP_DATADIR correctly
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 bug report at https://bugs.php.net/bug.php?id=66764&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66764&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66764&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66764&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66764&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66764&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66764&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66764&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66764&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66764&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66764&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66764&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66764&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66764&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66764&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66764&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66764&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66764&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66764&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66764&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66764&r=mysqlcfg