Make php-common Breaks all non-default versions of PHP
This commit is contained in:
parent
296f7206b6
commit
820d7080bd
3
debian/control.in
vendored
3
debian/control.in
vendored
|
@ -120,7 +120,8 @@ Breaks: php-amqp (<< 1.7.0~alpha2-4~),
|
|||
php-zmq (<< 1.1.3-3~),
|
||||
php5.6-common (<< 5.6.18+dfsg-10~),
|
||||
php5.6-json (<< 1.3.9-2~),
|
||||
php7.0-common (<< 7.0.3-11~)
|
||||
php7.0-common (<< 7.0.3-11~),
|
||||
@PHP_BREAKS_PACKAGES@
|
||||
Description: Common files for PHP packages
|
||||
This package contains common utilities shared among all packaged PHP
|
||||
versions.
|
||||
|
|
3
debian/rules
vendored
3
debian/rules
vendored
|
@ -11,9 +11,11 @@ include /usr/share/dpkg/default.mk
|
|||
|
||||
PHP_DEFAULT_VERSION := 7.4
|
||||
PHP_SUPPORTED_VERSIONS := 7.4
|
||||
PHP_BREAKS_VERSIONS := 5.6 7.0 7.1 7.2 7.3
|
||||
|
||||
, := ,
|
||||
PHP_DEV_PACKAGES := $(addprefix php,$(addsuffix -dev$(,),$(PHP_SUPPORTED_VERSIONS))), $(addprefix php,$(addsuffix -json$(,),$(PHP_SUPPORTED_VERSIONS)))
|
||||
PHP_BREAKS_PACKAGES := $(addprefix php,$(addsuffix -common$(,),$(PHP_BREAKS_VERSIONS)))
|
||||
|
||||
PHP_COMMON_DIRS := $(addprefix /etc/php/,$(addsuffix /mods-available,$(PHP_SUPPORTED_VERSIONS)))
|
||||
|
||||
|
@ -56,6 +58,7 @@ override_dh_installcron:
|
|||
debian/control: debian/control.in debian/rules debian/changelog
|
||||
$(SED) -e "s/@PHP_VERSION@/$(PHP_DEFAULT_VERSION)/g" \
|
||||
-e "s/@PHP_DEV_PACKAGES@/$(PHP_DEV_PACKAGES)/g" \
|
||||
-e "s/@PHP_BREAKS_PACKAGES@/$(PHP_BREAKS_PACKAGES)/g" \
|
||||
>$@ <$<
|
||||
echo >> $@
|
||||
cat debian/modulelist | while read -r module description; do \
|
||||
|
|
Loading…
Reference in a new issue