mirror of
https://github.com/novatiq/packages.git
synced 2026-04-24 21:14:40 +01:00
php7/php7-pecl-*: introduce load order
Some PECL modules (possibly also php modules) depend on special load order, otherwise loading the module will fail due to unresolvable symbols. This changeset introduces a very simple compile-time defined order by specifying a prefix for the ini file with the load directive. If not given, it uses a default value. It also updates all current pecl module packages to take this new approach. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
@@ -34,10 +34,10 @@ define PECLPackage
|
||||
$(INSTALL_DIR) $$(1)/usr/lib/php
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/
|
||||
$(INSTALL_DIR) $$(1)/etc/php7
|
||||
ifeq ($(4),zend)
|
||||
echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(subst -,_,$(1)).ini
|
||||
ifeq ($(5),zend)
|
||||
echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
|
||||
else
|
||||
echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(subst -,_,$(1)).ini
|
||||
echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
|
||||
endif
|
||||
endef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user