mail-client/alot-9999 fails to apply either patch in file files/ folder. The output below is the default state, but I copied the ebuild to my own overlay, and the 2nd patch does not apply either. It also fails to build with both patches disabled. $ emerge alot These are the packages that would be merged, in reverse order: Calculating dependencies ..... done! Dependency resolution took 11.06 s (backtrack: 0/20). [ebuild U *] mail-client/alot-9999 [0.10] >>> Verifying ebuild manifests >>> Emerging (1 of 1) mail-client/alot-9999::gentoo >>> Failed to emerge mail-client/alot-9999, Log file: >>> '/var/tmp/portage/mail-client/alot-9999/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 1.38, 1.13, 1.10 * Package: mail-client/alot-9999:0 * Repository: gentoo * Maintainer: guillaumeseren@gmail.com proxy-maint@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_11 * FEATURES: installsources network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... * Repository id: pazz_alot.git * To override fetched repository properties, use: * EGIT_OVERRIDE_REPO_PAZZ_ALOT * EGIT_OVERRIDE_BRANCH_PAZZ_ALOT * EGIT_OVERRIDE_COMMIT_PAZZ_ALOT * EGIT_OVERRIDE_COMMIT_DATE_PAZZ_ALOT * * Fetching https://github.com/pazz/alot/ ... git fetch https://github.com/pazz/alot/ +HEAD:refs/git-r3/HEAD git symbolic-ref refs/git-r3/mail-client/alot/0/__main__ refs/git-r3/HEAD * Checking out https://github.com/pazz/alot/ to /var/tmp/portage/mail-client/alot-9999/work/alot-9999 ... git checkout --quiet refs/git-r3/HEAD GIT update --> repository: https://github.com/pazz/alot/ at the commit: 9c5b7373eccc88732fc2486405246dde60db4eef >>> Source unpacked in /var/tmp/portage/mail-client/alot-9999/work >>> Preparing source in /var/tmp/portage/mail-client/alot-9999/work/alot-9999 ... * Applying 0.9-0001-remove-non-working-test.patch ... patching file tests/commands/test_global.py Hunk #1 FAILED at 121. 1 out of 1 hunk FAILED -- saving rejects to file tests/commands/test_global.py.rej [ !! ] * ERROR: mail-client/alot-9999::gentoo failed (prepare phase): * patch -p1 failed with /var/tmp/portage/mail-client/alot-9999/files/0.9-0001-remove-non-working-test.patch * * Call stack: * ebuild.sh, line 136: Called src_prepare * environment, line 4557: Called distutils-r1_src_prepare * environment, line 2156: Called distutils-r1_python_prepare_all * environment, line 2002: Called default * phase-functions.sh, line 874: Called default_src_prepare * phase-functions.sh, line 950: Called __eapi8_src_prepare * environment, line 365: Called eapply '--' '/var/tmp/portage/mail-client/alot-9999/files/0.9-0001-remove-non-working-test.patch' '/var/tmp/portage/mail-client/alot-9999/files/alot-0.10-no-intersphinx-docs.patch' * environment, line 2571: Called _eapply_patch '/var/tmp/portage/mail-client/alot-9999/files/0.9-0001-remove-non-working-test.patch' * environment, line 2509: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/mail-client/alot-9999/files/0.9-0001-remove-non-working-test.patch' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=mail-client/alot-9999::gentoo'`, * the complete build log and the output of `emerge -pqv '=mail-client/alot-9999::gentoo'`. * The complete build log is located at '/var/tmp/portage/mail-client/alot-9999/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/mail-client/alot-9999/temp/environment'. * Working directory: '/var/tmp/portage/mail-client/alot-9999/work/alot-9999' * S: '/var/tmp/portage/mail-client/alot-9999/work/alot-9999' * Messages for package mail-client/alot-9999: * ERROR: mail-client/alot-9999::gentoo failed (prepare phase): * patch -p1 failed with /var/tmp/portage/mail-client/alot-9999/files/0.9-0001-remove-non-working-test.patch * * Call stack: * ebuild.sh, line 136: Called src_prepare * environment, line 4557: Called distutils-r1_src_prepare * environment, line 2156: Called distutils-r1_python_prepare_all * environment, line 2002: Called default * phase-functions.sh, line 874: Called default_src_prepare * phase-functions.sh, line 950: Called __eapi8_src_prepare * environment, line 365: Called eapply '--' '/var/tmp/portage/mail-client/alot-9999/files/0.9-0001-remove-non-working-test.patch' '/var/tmp/portage/mail-client/alot-9999/files/alot-0.10-no-intersphinx-docs.patch' * environment, line 2571: Called _eapply_patch '/var/tmp/portage/mail-client/alot-9999/files/0.9-0001-remove-non-working-test.patch' * environment, line 2509: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/mail-client/alot-9999/files/0.9-0001-remove-non-working-test.patch' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=mail-client/alot-9999::gentoo'`, * the complete build log and the output of `emerge -pqv '=mail-client/alot-9999::gentoo'`. * The complete build log is located at '/var/tmp/portage/mail-client/alot-9999/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/mail-client/alot-9999/temp/environment'. * Working directory: '/var/tmp/portage/mail-client/alot-9999/work/alot-9999' * S: '/var/tmp/portage/mail-client/alot-9999/work/alot-9999' Reproducible: Always
CORRECTION: if both patches are disabled, mail-client/alot-9999 builds. More info, unrelated to this bug: If both patches are disabled, AND: PYTHON_COMPAT=(python3_{9..11}) is changed to: PYTHON_COMPAT=(python3_{11..12}) then it fails to build on py3.12 with: * Installing alot-0.12.dev3+g9c5b7373-py3-none-any.whl to /var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_11/install python3.11 -m gpep517 install-wheel --destdir=/var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_11/install --interpreter=/usr/bin/python3.11 --prefix=/usr --optimize=all /var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_11/wheel/alot-0.12.dev3+g9c5b7373-py3-none-any.whl 2024-12-07 13:03:44,672 gpep517 INFO Installing /var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_11/wheel/alot-0.12.dev3+g9c5b7373-py3-none-any.whl into /var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_11/install 2024-12-07 13:03:45,438 gpep517 INFO Installation complete * python3_12: running distutils-r1_run_phase distutils-r1_python_compile * Installing alot-0.12.dev3+g9c5b7373-py3-none-any.whl to /var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_12/install python3.12 -m gpep517 install-wheel --destdir=/var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_12/install --interpreter=/usr/bin/python3.12 --prefix=/usr --optimize=all /var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_11/wheel/alot-0.12.dev3+g9c5b7373-py3-none-any.whl 2024-12-07 13:03:46,171 gpep517 INFO Installing /var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_11/wheel/alot-0.12.dev3+g9c5b7373-py3-none-any.whl into /var/tmp/portage/mail-client/alot-9999/work/alot-9999-python3_12/install 2024-12-07 13:03:46,869 gpep517 INFO Installation complete * Using python3.12 in global scope * python3_12: running distutils-r1_run_phase python_compile_all make --jobs 8 -C docs man make: Entering directory '/var/tmp/portage/mail-client/alot-9999/work/alot-9999/docs' sphinx-build -b man -d build/doctrees source build/man Running Sphinx v8.1.3 Configuration error: There is a programmable error in your configuration file: Traceback (most recent call last): File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name return next(cls.discover(name=name)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ StopIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/sphinx/config.py", line 529, in eval_config_file exec(code, namespace) # NoQA: S102 ^^^^^^^^^^^^^^^^^^^^^ File "/var/tmp/portage/mail-client/alot-9999/work/alot-9999/docs/source/conf.py", line 58, in <module> version = importlib.metadata.version("alot") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 889, in version return distribution(distribution_name).version ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution return Distribution.from_name(distribution_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: No package metadata was found for alot make: *** [Makefile:122: man] Error 2
got an 'emerge --info' for the record?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d81e3cdd0e901f007eb18c460324ebb73b4719f5 commit d81e3cdd0e901f007eb18c460324ebb73b4719f5 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-05-24 21:31:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-05-24 21:32:03 +0000 mail-client/alot: add 0.11 Closes: https://bugs.gentoo.org/751538 Closes: https://bugs.gentoo.org/874372 Closes: https://bugs.gentoo.org/946069 Closes: https://bugs.gentoo.org/952152 Signed-off-by: Sam James <sam@gentoo.org> mail-client/alot/Manifest | 1 + mail-client/alot/alot-0.11.ebuild | 68 +++++++++++++++++++++++++++++++++++++++ mail-client/alot/alot-9999.ebuild | 22 ++++++------- 3 files changed, 80 insertions(+), 11 deletions(-)