# emerge --info "=app-text/calibre-5.16.1" Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.3.0, glibc-2.33-r1, 5.13.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.13.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-glibc2.33 KiB Mem: 32774076 total, 18845708 free KiB Swap: 2097128 total, 2097128 free Timestamp of repository gentoo: Sat, 03 Jul 2021 08:00:01 +0000 Head commit of repository gentoo: 9768dc687391d89184a298ae095368d0c01f21dd Head commit of repository sinustrom: b8b967789a79d13b5282ce33b5165036fda3e5cb sh bash 5.1_p8 ld GNU ld (Gentoo 2.36.1 p3) 2.36.1 distcc 3.4 x86_64-pc-linux-gnu [enabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0::gentoo dev-lang/python: 2.7.18_p11::gentoo, 3.8.11::gentoo, 3.9.6::gentoo, 3.10.0_beta3::gentoo dev-lang/rust: 1.53.0::gentoo dev-util/cmake: 3.20.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.36.1-r1::gentoo sys-devel/gcc: 10.3.0-r1::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://lambda/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sinustrom-test location: /var/db/repos/sinustrom-test masters: gentoo sinustrom location: /var/lib/layman/sinustrom sync-type: git sync-uri: https://github.com/zpuskas/sinustrom-gentoo-overlay.git masters: gentoo priority: 50 Installed sets: @openwrt-prerequisites ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=skylake -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -msgx -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=skylake -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=skylake -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -msgx -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=skylake -O3 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance cgroup collision-protect config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="rsync://lambda/gentoo-distfiles http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j96 -l8" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/tmp" USE="X a52 aac acl acpi activities aes alsa amd64 avx avx2 bash-completion bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr emboss encode exif f16c flac fma3 fortran gdbm gif gphoto2 gpm gtk gui hardened iconv icu ipv6 jpeg jpeg2k kde kipi kwallet lcms libglvnd libnotify libtirpc lm_sensors lzma mad mmx mmxext mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opencl opengl openmp pam pango pclmul pcre pdf phonon plasma png policykit popcnt posix ppds pulseaudio qml qt5 readline sdl seccomp smp spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb uxa vaapi vdpau vim-syntax vorbis widgets wifi wxwidgets x264 xattr xcb xml xpm xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput wacom synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="x86 BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="x86_64 arm aarch64" QEMU_USER_TARGETS="x86_64 arm aarch64" RUBY_TARGETS="ruby27 ruby30" SANE_BACKENDS="plustek genesys pixma" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS ================================================================= Package Settings ================================================================= app-text/calibre-5.16.1::gentoo was built with the following: USE="udisks -ios" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_9 -python3_8" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance cgroup collision-protect config-protect-if-modified distcc distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" Reproducible: Always Steps to Reproduce: 1. Try to build, rebuild, or run existing installed calibre Actual Results: Run failure with: $ calibre Traceback (most recent call last): File "/usr/bin/calibre", line 21, in <module> sys.exit(calibre()) File "/usr/lib64/calibre/calibre/gui_launch.py", line 73, in calibre main(args) File "/usr/lib64/calibre/calibre/gui2/main.py", line 530, in main run_main(app, opts, args, gui_debug, si) File "/usr/lib64/calibre/calibre/gui2/main.py", line 537, in run_main return run_gui(opts, args, app, gui_debug=gui_debug) File "/usr/lib64/calibre/calibre/gui2/main.py", line 402, in run_gui run_gui_(opts, args, app, gui_debug) File "/usr/lib64/calibre/calibre/gui2/main.py", line 412, in run_gui_ from calibre.gui2.ui import Main File "/usr/lib64/calibre/calibre/gui2/ui.py", line 32, in <module> from calibre.customize.ui import available_store_plugins, interface_actions File "/usr/lib64/calibre/calibre/customize/ui.py", line 18, in <module> from calibre.customize.builtins import plugins as builtin_plugins File "/usr/lib64/calibre/calibre/customize/builtins.py", line 752, in <module> from calibre.devices.smart_device_app.driver import SMART_DEVICE_APP File "/usr/lib64/calibre/calibre/devices/smart_device_app/driver.py", line 2044, in <module> from zeroconf import (BadTypeInNameException, _HAS_A_TO_Z, ImportError: cannot import name '_HAS_A_TO_Z' from 'zeroconf' (/usr/lib/python3.9/site-packages/zeroconf/__init__.py) Expected Results: Calibre builds and/or runs It seems dev-pyhon/zeroconf-0.32.0 is breaking calibre.
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(-)