Package: dh-php
Version: 4.6
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu jammy ubuntu-patch

Dear Maintainer,

As it has been done with other packages genereted by the php package,
curl should also be filtered out from the automated -all-dev generation.

Currently, php-solr migration fails due to missing dependencies for the
all-dev package (which does not seem to ship anything). While we could
just stop shipping that package, the issues would still propagate for
other packages that depend on php-curl and that are generating standard
control files with the current tooling.

In Ubuntu, the attached patch was applied to remove the -all-dev
generation, producing a more sane php-solr (as an example) package.

Results are available in this PPA:
https://launchpad.net/~athos-ribeiro/+archive/ubuntu/dh-php-jammy/+packages

Thanks for considering the patch.

*** /tmp/tmpew47z_ql/dh-php_4.6ubuntu1.debdiff
diff -Nru dh-php-4.6/pkg-pecl.mk dh-php-4.6ubuntu1/pkg-pecl.mk
--- dh-php-4.6/pkg-pecl.mk      2022-01-23 11:48:34.000000000 -0300
+++ dh-php-4.6ubuntu1/pkg-pecl.mk       2022-02-24 23:31:40.000000000 -0300
@@ -49,7 +49,7 @@
 $(foreach ver,$(DH_PHP_VERSIONS),$(eval PECL_DEPENDS_$(ver) := 
php$(ver)-common, $(addsuffix $(,),$(addprefix 
php$(ver)-,$(PECL_EXTS_$(ver))))))
 
 PECL_EXTS := $(sort $(foreach ver,$(DH_PHP_VERSIONS),$(PECL_EXTS_$(ver))))
-PECL_DEV_DEPENDS := php-all-dev, $(addsuffix -all-dev$(,),$(addprefix 
php-,$(filter-out xml mbstring,$(PECL_EXTS))))
+PECL_DEV_DEPENDS := php-all-dev, $(addsuffix -all-dev$(,),$(addprefix 
php-,$(filter-out xml mbstring curl,$(PECL_EXTS))))
 PECL_DEPENDS := $(addsuffix $(,),$(addprefix php-,$(PECL_EXTS)))
 
 CONFIGURE_TARGETS = $(addprefix configure-,$(addsuffix 
-stamp,$(DH_PHP_VERSIONS)))


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy
  APT policy: (500, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-18-generic (SMP w/16 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
Athos Ribeiro

Reply via email to