[pkg-php-pear] Bug#1061291: composer: recommends missing: php-curl

Max-Julian Pogner max-julian at pogner.at
Mon Jan 22 09:38:19 GMT 2024


Package: composer
Version: 2.6.6-1
Severity: normal
X-Debbugs-Cc: max-julian at pogner.at

Dear Maintainer,

When using the command `composer upgrade`, composer displays a warning

> Composer is operating significantly slower than normal because you
> do not have the PHP curl extension enabled.

When the package 'php-curl' is installed, no warning appears with that
command. I would have expected that php-curl is listed as a Recommends-
dependency when composer is slowed down otherwise.
A detailed report follows (some output removed and replaced by '[...]').


   * What led up to the situation?

I created a minimal test for this bug as follows:

  $ echo "today is: $(date)"
  today is: Mon 22 Jan 10:37:33 CET 2024
  $ docker container run -ti --rm debian:sid
  root at c16e8b892f02:/# apt update
  [...]
  root at c16e8b892f02:/# apt install --install-recommends --yes composer
  [...]
  root at c16e8b892f02:/# mkdir /project
  root at c16e8b892f02:/project# cd /project
  root at c16e8b892f02:/project# composer require slim/slim
  [...]

Now using the command `composer upgrade` gives out the warning:

  root at c16e8b892f02:/project# composer upgrade
  Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.
  [...]

However, when installing php-curl, the warning is no longer there:

  root at c16e8b892f02:/project# apt install --yes php-curl
  [...]
  root at c16e8b892f02:/project# composer upgrade
  [..no warning..]


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Installing the package 'php-curl' made the warning go away.
Hoever, compose works fine without 'php-curl' being installed.
Note: The actual speed-effect was not meassured.


   * What did you expect instead?

I would have expected, that composer would have a 'Recommends:'
dependency on any package that is not strictly necessary but is warned
about.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-17-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages composer depends on:
ii  jsonlint                          1.10.1-1
ii  php-cli                           2:8.2+93
ii  php-common                        2:93
ii  php-composer-ca-bundle            1.4.0-1
ii  php-composer-class-map-generator  1.1.0-1
ii  php-composer-metadata-minifier    1.0.0-2
ii  php-composer-pcre                 3.1.1-1
ii  php-composer-semver               3.4.0-1
ii  php-composer-spdx-licenses        1.5.8-1
ii  php-composer-xdebug-handler       3.0.3-2
ii  php-json-schema                   5.2.13-1
ii  php-psr-log                       1.1.4-2
ii  php-react-promise                 3.1.0-1
ii  php-seld-signal-handler           2.0.2-1
ii  php-symfony-console               5.4.34+dfsg-2
ii  php-symfony-filesystem            5.4.34+dfsg-2
ii  php-symfony-finder                5.4.34+dfsg-2
ii  php-symfony-process               5.4.34+dfsg-2
ii  php8.2-cli [php-cli]              8.2.12-1+b1

Versions of packages composer recommends:
ii  git    1:2.43.0-1
ii  unzip  6.0-28

Versions of packages composer suggests:
pn  fossil      <none>
pn  mercurial   <none>
pn  php-zip     <none>
pn  subversion  <none>

-- no debconf information



More information about the pkg-php-pear mailing list