Summary: | app-text/calibre-5.16.1: ImportError: cannot import name '_HAS_A_TO_Z' from 'zeroconf' (/usr/lib/python3.9/site-packages/zeroconf/__init__.py) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Zoltan Puskas <zoltan> |
Component: | Current packages | Assignee: | Zac Medico <zmedico> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cruzki123, dschridde+gentoobugs, fakih18716, fedeliallalinea, gentoo, harrisl, ilmostro7, kingjon3377, leonard, o.freyermuth, sam, stevee, swimbunny2000, tea+gentoo, voyageur, zeekec |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/21928 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 805965 | ||
Bug Blocks: | |||
Attachments: |
build.log
calibre-5.16.1-zeroconf.patch |
Description
Zoltan Puskas
2021-07-04 07:14:38 UTC
Created attachment 721336 [details]
build.log
Build also fails with new zeroconf.
This seems to be tracked upstream at https://bugs.launchpad.net/calibre/+bug/1936889 Should be fixed in upcoming release, which is apparently done "every alternate Friday", as of 2021-07-20. https://github.com/kovidgoyal/calibre/commit/4f9e83e6426483b6cc0929c61f9207c33c573fec Fix released upstream as part of version 5.24.0 Created attachment 731254 [details, diff]
calibre-5.16.1-zeroconf.patch
Backported patch for current calibre version in the tree (5.16.1)
The backport seems to not apply cleanly >>> Verifying ebuild manifests >>> Running pre-merge checks for app-text/calibre-5.24.0 >>> Emerging (1 of 1) app-text/calibre-5.24.0::gentoo >>> Failed to emerge app-text/calibre-5.24.0, Log file: >>> '/tmp/portage/app-text/calibre-5.24.0/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 1.10, 1.43, 1.71 * Package: app-text/calibre-5.24.0 * Repository: gentoo * Maintainer: zmedico@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_single_target_python3_9 udisks userland_GNU * FEATURES: network-sandbox sandbox userpriv usersandbox * FEATURES='assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news nodoc noinfo parallel-fetch parallel-install pid-sandbox qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync' * CFLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed' * CXXFLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed' * FFLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed' * FCFLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed' * F77FLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed' * LDFLAGS='-Wl,-O1 -Wl,--as-needed -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -pipe -falign-functions=32' * MAKEOPTS='-j3' * gcc (Gentoo 10.3.0-r2 p3) 10.3.0 * g++ (Gentoo 10.3.0-r2 p3) 10.3.0 * GNU ld (Gentoo 2.35.2 p1) 2.35.2 * Linux semyorka 5.13.7 #1 SMP Tue Aug 3 12:16:18 CEST 2021 x86_64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz GenuineIntel GNU/Linux * Using python3.9 to build * Applying calibre-2.9.0-no_updates_dialog.patch ... patching file src/calibre/gui2/main.py Hunk #1 succeeded at 59 (offset 22 lines). patching file src/calibre/gui2/update.py Hunk #1 succeeded at 203 with fuzz 2 (offset 49 lines). [ ok ] * Applying calibre-disable_plugins.patch ... patching file src/calibre/gui2/actions/preferences.py Hunk #1 succeeded at 30 with fuzz 2 (offset 2 lines). [ ok ] * Applying SIP v4 patch because SIP v5 was not detected * Applying calibre-5.16.0-SIP-v4.patch ... patching file setup/build.py Hunk #1 FAILED at 504. Hunk #2 succeeded at 563 (offset 23 lines). 1 out of 2 hunks FAILED -- saving rejects to file setup/build.py.rej patching file bypy/linux/__main__.py patching file bypy/macos/__main__.py patching file bypy/sources.json Hunk #1 succeeded at 815 (offset 7 lines). patching file bypy/windows/__main__.py patching file setup/build.py Hunk #1 succeeded at 8 with fuzz 1. Hunk #4 succeeded at 72 (offset 1 line). Hunk #5 succeeded at 257 (offset 2 lines). Hunk #6 succeeded at 353 (offset 13 lines). Hunk #7 FAILED at 482. 1 out of 7 hunks FAILED -- saving rejects to file setup/build.py.rej patching file setup/build_environment.py Hunk #1 FAILED at 6. Hunk #2 succeeded at 59 (offset 14 lines). Hunk #3 succeeded at 110 (offset 14 lines). 1 out of 3 hunks FAILED -- saving rejects to file setup/build_environment.py.rej patching file setup/extensions.json Hunk #1 succeeded at 150 (offset 11 lines). [ !! ] * ERROR: app-text/calibre-5.24.0::gentoo failed (prepare phase): * patch -p1 failed with /tmp/portage/app-text/calibre-5.24.0/work/calibre-5.16.0-SIP-v4.patch * * Call stack: * ebuild.sh, line 127: Called src_prepare * environment, line 4046: Called eapply '/tmp/portage/app-text/calibre-5.24.0/work/calibre-5.16.0-SIP-v4.patch' * environment, line 2500: Called _eapply_patch '/tmp/portage/app-text/calibre-5.24.0/work/calibre-5.16.0-SIP-v4.patch' * environment, line 2438: Called __helpers_die 'patch -p1 failed with /tmp/portage/app-text/calibre-5.24.0/work/calibre-5.16.0-SIP-v4.patch' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=app-text/calibre-5.24.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-text/calibre-5.24.0::gentoo'`. * The complete build log is located at '/tmp/portage/app-text/calibre-5.24.0/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/app-text/calibre-5.24.0/temp/environment'. * Working directory: '/tmp/portage/app-text/calibre-5.24.0/work/calibre-5.24.0' * S: '/tmp/portage/app-text/calibre-5.24.0/work/calibre-5.24.0' Patch in comment 5 applies cleanly to 5.16.1 and fixes the startup crash. Thank you @Marco Genasci! (In reply to cruzki from comment #6) > The backport seems to not apply cleanly (In reply to cruzki from comment #6) > The backport seems to not apply cleanly > > >>> Verifying ebuild manifests > >>> Running pre-merge checks for app-text/calibre-5.24.0 > >>> Emerging (1 of 1) app-text/calibre-5.24.0::gentoo > >>> Failed to emerge app-text/calibre-5.24.0, Log file: > >>> '/tmp/portage/app-text/calibre-5.24.0/temp/build.log' > >>> Jobs: 0 of 1 complete, 1 failed Load avg: 1.10, 1.43, 1.71 You are trying to apply the patch for version 5.16.1 to version 5.24.0 (which is not even present in the tree) (In reply to Marco Genasci from comment #8) > (In reply to cruzki from comment #6) > > The backport seems to not apply cleanly > (In reply to cruzki from comment #6) > > The backport seems to not apply cleanly > > > > >>> Verifying ebuild manifests > > >>> Running pre-merge checks for app-text/calibre-5.24.0 > > >>> Emerging (1 of 1) app-text/calibre-5.24.0::gentoo > > >>> Failed to emerge app-text/calibre-5.24.0, Log file: > > >>> '/tmp/portage/app-text/calibre-5.24.0/temp/build.log' > > >>> Jobs: 0 of 1 complete, 1 failed Load avg: 1.10, 1.43, 1.71 > > You are trying to apply the patch for version 5.16.1 to version 5.24.0 > (which is not even present in the tree) Hi Marco, I am trying to emerge the ebuild at the tree. I am not applying any patch or keep any overlay, just sync and emerge callibre (In reply to cruzki from comment #9) > Hi Marco, > > I am trying to emerge the ebuild at the tree. I am not applying any patch or > keep any overlay, just sync and emerge callibre In the official tree [1] I see only 5.16.1, so I don't understand how you have version 5.24.0. [1] https://gitweb.gentoo.org/repo/gentoo.git/tree/app-text/calibre I can't run or compile Calibre without this patch. It works perfectly. Why isn't it on main repo yet? (In reply to Eduardo Bray from comment #11) > I can't run or compile Calibre without this patch. It works perfectly. Why > isn't it on main repo yet? Because also developers have a life outside of gentoo :) I created a PR to speed up the process. (In reply to Marco Genasci from comment #10) > (In reply to cruzki from comment #9) > > Hi Marco, > > > > I am trying to emerge the ebuild at the tree. I am not applying any patch or > > keep any overlay, just sync and emerge callibre > > In the official tree [1] I see only 5.16.1, so I don't understand how you > have version 5.24.0. > > [1] https://gitweb.gentoo.org/repo/gentoo.git/tree/app-text/calibre Now I remember what have happened. I have changed the name of the 5.16.1's ebuild just to check if it cleanly compile (spoiler, it does not work) and then I forget that with git these files survive a sync. Sorry for the confusion. I put the patch from comment #5 into /etc/portage/patches/app-text/calibre-5.16.1 and reemerge calibre. It works fine. Confirmed again - installed the patch from comment 5 via the process described here: https://wiki.gentoo.org/wiki//etc/portage/patches Thank you so much Marco Genaski! Another user checking in to say my Calibre wouldn't run or compile until I applied the patch in comment 5. Thanks Marco! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09167c5f5f54eb30f27dcb3d580a8b3a0ab530a0 commit 09167c5f5f54eb30f27dcb3d580a8b3a0ab530a0 Author: Marco Genasci <fedeliallalinea@gmail.com> AuthorDate: 2021-08-09 16:18:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-08-26 23:56:18 +0000 app-text/calibre: fix compilation with >=zeroconf-0.32 Backported upstream patch 4f9e83 Closes: https://bugs.gentoo.org/800233 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Marco Genasci <fedeliallalinea@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/21928 Signed-off-by: Sam James <sam@gentoo.org> app-text/calibre/calibre-5.16.1.ebuild | 3 ++- .../calibre/files/calibre-5.16.1-zeroconf.patch | 30 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) |