FS#75433 - [m2r] Compatibility fixes needed, upstream

Attached to Project: Community Packages
Opened by Claudia Pellegrino (Auerhuhn) - Tuesday, 26 July 2022, 22:33 GMT
Last edited by Toolybird (Toolybird) - Saturday, 20 May 2023, 03:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The [recent upstream release for docutils v0.19](https://github.com/archlinux/svntogit-community/commit/88f18ad2b50df7bbc103e1be913f6e2be567140f) broke the [m2r](https://archlinux.org/packages/community/any/m2r/) package, which depends on [a deprecated symbol from docutils](https://github.com/miyakogi/m2r/blob/66f4a5a500cdd9fc59085106bff082c9cadafaf3/m2r.py#L13).

This is arguably an upstream issue in m2r. But that project looks largely unmaintained.
I wrote a [patch](https://patch-diff.githubusercontent.com/raw/miyakogi/m2r/pull/67.patch) and [filed it upstream](https://github.com/miyakogi/m2r/pull/67), but the patch may not be merged anytime soon. In the meantime, you folks might want to use that patch to fix the m2r PKGBUILD until upstream accepts the patch, if ever.


Additional info:
* Upstream pull request: https://github.com/miyakogi/m2r/pull/67
* See attached `m2r-docutils.patch` (minimal version of the upstream patch, it’s the bare minimum needed to fix the Arch package)

Steps to reproduce:

```
$ m2r
Traceback (most recent call last):
File "/usr/bin/m2r", line 33, in <module>
sys.exit(load_entry_point('m2r==0.2.1', 'console_scripts', 'm2r')())
File "/usr/bin/m2r", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/m2r.py", line 13, in <module>
from docutils.core import ErrorString
ImportError: cannot import name 'ErrorString' from 'docutils.core' (/usr/lib/python3.10/site-packages/docutils/core.py)
```
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 20 May 2023, 03:02 GMT
Reason for closing:  Won't fix
Additional comments about closing:  No longer in the repos.

Loading...