Followup-For: Bug #925106

Hi,

next round, let's add a Breaks: gforge-common (<< 6), too.
That's the version from jessie (there is no gforge-common in stretch, so
the jessie version may be kept installed on long grown system upgrades),
which will fail to remove under php7.3:

  Removing gforge-shell-postgresql (5.3.2+20141104-3+deb8u3) ...
  PHP Deprecated:  Methods with the same name as their class will not be 
constructors in a future version of PHP; Error has a deprecated constructor in 
/usr/share/gforge/common/include/Error.class.php on line 36
  PHP Fatal error:  Cannot declare class Error, because the name is already in 
use in /usr/share/gforge/common/include/Error.class.php on line 36
  dpkg: error processing package gforge-shell-postgresql (--remove):
   installed gforge-shell-postgresql package pre-removal script subprocess 
returned error exit status 255

This happens in multiple gforge packages, but can be prevented by
uninstalling it before php7.3 gets installed.


Andreas
diff -Nru php7.3-7.3.3/debian/changelog php7.3-7.3.3/debian/changelog
--- php7.3-7.3.3/debian/changelog       2019-03-07 20:43:34.000000000 +0100
+++ php7.3-7.3.3/debian/changelog       2019-03-19 04:03:09.000000000 +0100
@@ -1,3 +1,14 @@
+php7.3 (7.3.3-2) UNRELEASED; urgency=medium
+
+  * php7.3-common: Add Breaks against php7.0-curl for smoother upgrades from
+    stretch.  (Closes: #925106)
+  * php7.3-common: Add Breaks against gforge-common from jessie which uses a
+    deprecated constructor syntax.
+  * Deterministically generate debian/control by sorting the extension
+    packages.
+
+ -- Andreas Beckmann <[email protected]>  Tue, 19 Mar 2019 04:03:09 +0100
+
 php7.3 (7.3.3-1) unstable; urgency=medium
 
   * New upstream version 7.3.3
diff -Nru php7.3-7.3.3/debian/php-common.substvars.extra 
php7.3-7.3.3/debian/php-common.substvars.extra
--- php7.3-7.3.3/debian/php-common.substvars.extra      2019-03-07 
20:43:34.000000000 +0100
+++ php7.3-7.3.3/debian/php-common.substvars.extra      2019-03-19 
04:03:09.000000000 +0100
@@ -1 +1 @@
-php-common:Breaks=php7.2-sodium
+php-common:Breaks=php7.0-curl, php7.2-sodium, gforge-common (<< 6)
diff -Nru php7.3-7.3.3/debian/rules php7.3-7.3.3/debian/rules
--- php7.3-7.3.3/debian/rules   2019-03-07 20:43:34.000000000 +0100
+++ php7.3-7.3.3/debian/rules   2019-03-19 04:03:09.000000000 +0100
@@ -607,7 +607,7 @@
 
 debian/control: debian/control.in debian/rules debian/changelog 
debian/source.lintian-overrides debian/rules.d/* debian/php-module.control.in
        $(SED) -e "s/@PHP_VERSION@/$(PHP_NAME_VERSION)/g" -e 
"s/@BUILT_USING@/$(BUILT_USING)/g" >$@ <$<
-       for ext in $(ext_PACKAGES); do \
+       for ext in $(sort $(ext_PACKAGES)); do \
          package=php$(PHP_NAME_VERSION)-$${ext}; \
          description=$$(eval echo \$${$${ext}_DESCRIPTION}); \
          echo >>$@; \

Reply via email to