Bug 33323 - Composer returns error without php-ctype package
Summary: Composer returns error without php-ctype package
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL: https://pastebin.com/QzNFQb4U
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-23 04:42 CEST by Michael Martins
Modified: 2024-06-27 22:03 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Michael Martins 2024-06-23 04:42:46 CEST
Description of problem:

After downloading composer and installing all necessary dependencies, composer locks the framework to an older version and returns errors.
After spending 3 days trying to discover the error, I found that the php-ctype package was missing.
Could you include it in the task-lamp-php metapackage? This solves the problem.



Version-Release number of selected component (if applicable):

task-lamp-php.noarch                      1:3-10.mga9 
php-ctype.x86_64                          3:8.2.18-1.mga9 


How reproducible:

Download and install composer: https://getcomposer.org/download/
Install dependencies, if necessary.
Install codeigniter following the documentation: https://codeigniter.com/user_guide/installation/installing_composer.html
Comment 1 Morgan Leijström 2024-06-23 11:58:07 CEST
Wouldn't the correct solution be to have that composer-setup.php check all requirements and report on any problem?

CC: (none) => fri

Comment 2 Michael Martins 2024-06-23 16:31:20 CEST
You are sure. Ubuntu provides php-ctype in composer's php-common dependency.
Can close the bug.
But it would be interesting if someone packaged composer.
Comment 3 Lewis Smith 2024-06-27 22:03:39 CEST
So 'composer' is external software.
Installing it involves:
 $ php composer-setup.php
which runs the installer. "This installer script will simply check some php.ini settings, warn you if they are set incorrectly"
So it is quite sensible that it should check for the presence of 'php-ctype', or anything else it needs. Even simpler, the download page could say that it (and whatever else) is needed.
Comment 0 says "Install dependencies, if necessary". Where are these defined?

However, Michael's request is not excessive; except task-lamp-php says:
Summary     : Metapackage for the Linux, Apache, MySQL, PHP server
Description :
This package is a meta-package, meaning that its purpose is to contain
dependencies for running LAMP (PHP) server

and whether php-ctype has anything to do with that...

@Michael
Can you ask upstream to say on the download page this requirement?
And you can raise a 'new package request' bug for composer if you wish.

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME
CC: (none) => lewyssmith


Note You need to log in before you can comment on or make changes to this bug.