Mailing List Archive

Problem migrating from 1.38.5 to 1.39.1 due to Composer dependencies
Hi Everyone,

We are trying to migrate from Mediawiki 1.38.5 to 1.39.1. The
webserver is Ubuntu 20.04.5 LTS, x86_64, fully patched.

At the step of installing Composer with its dependencies,[1] 'composer
install' is dying with the error message:

<BEGIN SNIP>
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for doctrine/dbal 3.4.2 -> satisfiable by
doctrine/dbal[3.4.2].
- doctrine/dbal 3.4.2 requires composer-runtime-api ^2 -> no
matching package found.

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according
to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability>
for more details.
- It's a private package and you forgot to add a custom repository to find it
<END SNIP>

We are running the latest version of Composer:

# apt-cache search composer | sort
...
composer - dependency manager for PHP

And:

# apt-cache show composer
Package: composer
Architecture: all
Version: 1.10.1-1
Priority: optional
Section: universe/php
Origin: Ubuntu
...

Please advise on how to proceed.

Thanks in advance,

Jeff

[1] https://github.com/weidai11/website/blob/master/mediawiki/wiki-upgrade.txt#L104
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
Re: Problem migrating from 1.38.5 to 1.39.1 due to Composer dependencies [ In reply to ]
MediaWiki requires Composer 2 and will not work with Composer 1 any
more. I have ran into the same issue myself
(https://github.com/MatmaRex/patchdemo/issues/501).

It's not clear to me whether this is a bug or an intentional
compatibility break. Looks like
https://phabricator.wikimedia.org/T316556 is a bug report about this,
but it's also connected to a task about dropping compatibility, so I
wouldn't hold my breath waiting for it to be fixed.

You will need to either:

* Upgrade your Ubuntu to a version that ships with Composer 2 – looking
at https://packages.ubuntu.com/search?keywords=composer , that would be
Ubuntu 22.04 Jammy.

* Or install Composer 2 manually instead of from the system repositories
https://getcomposer.org/download/

--
Bartosz Dziewo?ski
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
Re: Problem migrating from 1.38.5 to 1.39.1 due to Composer dependencies [ In reply to ]
On Tue, Dec 27, 2022 at 2:26 PM Bartosz Dziewo?ski <matma.rex@gmail.com> wrote:
>
> MediaWiki requires Composer 2 and will not work with Composer 1 any
> more. I have ran into the same issue myself
> (https://github.com/MatmaRex/patchdemo/issues/501).
>
> It's not clear to me whether this is a bug or an intentional
> compatibility break. Looks like
> https://phabricator.wikimedia.org/T316556 is a bug report about this,
> but it's also connected to a task about dropping compatibility, so I
> wouldn't hold my breath waiting for it to be fixed.
>
> You will need to either:
>
> * Upgrade your Ubuntu to a version that ships with Composer 2 – looking
> at https://packages.ubuntu.com/search?keywords=composer , that would be
> Ubuntu 22.04 Jammy.
>
> * Or install Composer 2 manually instead of from the system repositories
> – https://getcomposer.org/download/

Thanks Bartosz .

Its unfortunate 1.39 is a LTS but it was not well tested.

(We can't upgrade to Jammy because our web host does not provide
it.[1] Our only options are at the moment are Ubuntu 20.04, Ubuntu
18.04, CentOS 8, CentOS 7, Debian 10, Debian 9, OpenSuse Leap 15)

Jeff

[1] https://www.ionos.com/servers/vps
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/