diff options
author | ale <ale@FreeBSD.org> | 2007-02-16 16:53:33 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2007-02-16 16:53:33 +0800 |
commit | bdffebf656beaa9e218ea803368d122fa6cda05f (patch) | |
tree | 3fcbc28462aed0a7ea477f1468c152d6bb03527d /Mk | |
parent | cb2842982ed0d443790836c0b398a581d0018edd (diff) | |
download | freebsd-ports-gnome-bdffebf656beaa9e218ea803368d122fa6cda05f.tar.gz freebsd-ports-gnome-bdffebf656beaa9e218ea803368d122fa6cda05f.tar.zst freebsd-ports-gnome-bdffebf656beaa9e218ea803368d122fa6cda05f.zip |
Fix segmentation fault on unloading, by loading php extensions in
reversal alphabetical order.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.php.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.php.mk b/Mk/bsd.php.mk index 90b70257781f..0d6d28ffbcbd 100644 --- a/Mk/bsd.php.mk +++ b/Mk/bsd.php.mk @@ -177,6 +177,8 @@ do-install: @${MKDIR} ${PREFIX}/etc/php @${ECHO_CMD} extension=${PHP_MODNAME}.so \ >> ${PREFIX}/etc/php/extensions.ini + @${SORT} -ruo ${PREFIX}/etc/php/extensions.ini \ + ${PREFIX}/etc/php/extensions.ini add-plist-info: add-plist-phpext add-plist-phpext: @@ -200,6 +202,8 @@ add-plist-phpext: >> ${TMPPLIST} @${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ >> ${TMPPLIST} + @${ECHO_CMD} "@exec sort -ruo %D/etc/php/extensions.ini %D/etc/php/extensions.ini" \ + >> ${TMPPLIST} @${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ >> ${TMPPLIST} @${ECHO_CMD} "@unexec grep -v extension=${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ |