ext-gmp installed but composer does not recognize it

Created on 18 December 2024, 5 months ago

Problem/Motivation

tl:dr:
- My module crypto library dep needs ext-gmp
- A before-script installs it
- But composer does not recognize it

Long version:
- It's about https://www.drupal.org/project/sessionless
- ...which requires paragonie/paserk, which requires "gmp" php extension
- To soothe composer dependencies, i added (btw, the docs seem to be slightly wrong here in the '.phpunit' prefix)

before_script:
  - apt-get update
  - apt-get install -y --no-install-recommends php-gmp

- In the composer job output i can see the install line:

$ apt-get update
$ apt-get install -y --no-install-recommends php-gmp
Creating config file /etc/php/8.3/mods-available/gmp.ini with new version
Setting up php-gmp (2:8.3+93ubuntu2) ...

- But later composer coughs:

$ composer install $COMPOSER_EXTRA
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires paragonie/paserk ^2.3 -> satisfiable by paragonie/paserk[v2.3.0].
    - paragonie/paserk v2.3.0 requires ext-gmp * -> it is missing from your system. Install or enable PHP's gmp extension.

Seems some stronger script-fu and docs is needed.

🐛 Bug report
Status

Active

Component

gitlab-ci

Created by

🇩🇪Germany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024