Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 570536

Summary: app-text/calibre: mv: cannot stat ‘/var/tmp/portage/app-text/calibre-2.47.0/temp/fake_homedir/.local/share/mime/packages/*’: No such file or directory
Product: Gentoo Linux Reporter: PetaMem R&D <info>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: RESOLVED FIXED    
Severity: normal CC: bkohler, eschwartz93, mkyral, sirrobin2318, yngwin, zmedico
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log calibre-2.35
build log calibre-2.47
build log calibre-1.2
calibre 2.77.0

Description PetaMem R&D 2016-01-01 22:41:19 UTC
Neither  1.20 nor 2.35.0-r2 nor 2.47.0 installs on our Gentoo buildhost:

Installing binary: /var/tmp/portage/app-text/calibre-2.35.0-r2/image/usr/bin/ebook-edit
Installing code to /var/tmp/portage/app-text/calibre-2.35.0-r2/image/usr/lib64/calibre
Installing resources to /var/tmp/portage/app-text/calibre-2.35.0-r2/image/usr/share/calibre
Setting up command-line completion...
Installing bash completion to: /var/tmp/portage/app-text/calibre-2.35.0-r2/image/usr/share/bash-completion/completions/calibre
Setting up desktop integration...
QImage::scaled: Image is a null image
xdg-icon-resource: file 'calibre-lrf.png' does not exist

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________
        Traceback (most recent call last):
          File "/var/tmp/portage/app-text/calibre-2.35.0-r2/work/calibre-2.35.0/src/calibre/linux.py", line 782, in setup_desktop_integration
            cc('xdg-icon-resource install --novendor --mode user --noupdate --context mimetypes --size 128 calibre-lrf.png application-lrf', shell=True)
          File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call
            raise CalledProcessError(retcode, cmd)
        CalledProcessError: Command 'xdg-icon-resource install --novendor --mode user --noupdate --context mimetypes --size 128 calibre-lrf.png application-lrf' returned non-zero exit status 2

Creating un-installer: /var/tmp/portage/app-text/calibre-2.35.0-r2/image/usr/bin/calibre-uninstall

____________________ WARNING ____________________
Cannot install calibre environment module to: /var/tmp/portage/app-text/calibre-2.35.0-r2/image/usr/lib64/python2.7/site-packages
__________________________________________________


calibre successfully installed. You can start it by running the command calibre

There were 2 warning(s):

* Setting up desktop integration failed with error:

* Cannot install calibre environment module to: /var/tmp/portage/app-text/calibre-2.35.0-r2/image/usr/lib64/python2.7/site-packages

mv: cannot stat ‘/var/tmp/portage/app-text/calibre-2.35.0-r2/temp/fake_homedir/.local/share/mime/packages/*’: No such file or directory


--------------------------------

The problem seems systemic to any version tried. There is no "desktop" on the system and calibre is used headless-only (for file conversions).


xdg-utils installed is Installed versions:  1.1.1^t{tbz2}(02:12:35 PM 10/27/2015)(perl -doc)





Reproducible: Always




# emerge --info
Portage 2.2.26 (python 2.7.11-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.3.0, glibc-2.22-r1, 4.1.0 x86_64)
=================================================================
System uname: Linux-4.1.0-x86_64-Intel_Xeon_E312xx_-Sandy_Bridge-with-gentoo-2.2
KiB Mem:     8185600 total,   3354412 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 28 Dec 2015 16:45:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r1::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.12.6-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://gentoo32/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/data/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X amd64 apache2 cairo ctype cups curl cxx emacs fortran ithreads ncurses pam pcre perl python readline sasl session sse2 ssl subversion svg threads unicode webdav zlib" ABI_X86="64" CURL_SSL="gnutls" ELIBC="glibc" KERNEL="linux" LINGUAS="ar bg ca chr cs da de el es eu fi fr he hi hu id it jp ko lt lv nl no pl pt pt_BR ro ru sk sl sr sv th tl tr uk vi zh_CN zh_TW" NGINX_MODULES_HTTP="autoindex" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2016-01-01 23:39:07 UTC
There's probably more than one problem here, still full build log required.
Comment 2 Alex Xu (Hello71) 2016-01-02 16:28:30 UTC
please attach build.log (of any version, preferably all three)
Comment 3 PetaMem R&D 2016-01-02 16:37:35 UTC
Created attachment 421646 [details]
build log calibre-2.35
Comment 4 PetaMem R&D 2016-01-02 16:38:04 UTC
Created attachment 421648 [details]
build log calibre-2.47
Comment 5 PetaMem R&D 2016-01-02 16:38:28 UTC
Created attachment 421650 [details]
build log calibre-1.2
Comment 6 PetaMem R&D 2016-01-02 16:39:41 UTC
All 3 attached. Please reopen.

Problem with 1.2 will probably be different due to Qt4

Nevertheless I see systemic problems in the 2.x installs.
Comment 7 Ben Kohler gentoo-dev 2016-11-29 16:22:39 UTC
*** Bug 601216 has been marked as a duplicate of this bug. ***
Comment 8 William 2016-11-29 16:29:18 UTC
I had the following calibre versions on my system:
calibre-2.31.0: Sat Jul 18 02:40:20 2015: 58 seconds
calibre-2.31.0: Wed Jul 29 09:33:42 2015: 1 minute, 4 seconds
calibre-2.31.0: Wed Aug  5 09:59:01 2015: 1 minute, 11 seconds
calibre-2.33.0: Thu Aug  6 08:44:12 2015: 1 minute, 6 seconds
calibre-2.34.0: Thu Aug 13 03:49:23 2015: 1 minute, 4 seconds
calibre-2.35.0: Tue Aug 18 06:37:31 2015: 1 minute, 5 seconds
calibre-2.35.0: Mon Oct 26 09:52:00 2015: 1 minute, 27 seconds
calibre-2.35.0-r1: Wed Nov  4 11:59:03 2015: 1 minute, 20 seconds
calibre-2.43.0: Wed Nov 11 12:26:24 2015: 1 minute, 54 seconds
calibre-2.43.0: Thu Dec 17 08:08:41 2015: 1 minute, 19 seconds
calibre-2.47.0: Tue Dec 22 13:13:08 2015: 1 minute, 33 seconds
calibre-2.47.0: Mon Jan 25 11:40:01 2016: 1 minute, 33 seconds
calibre-2.47.0: Tue Mar  1 17:44:56 2016: 1 minute, 0 seconds
calibre-2.47.0: Tue Mar 22 18:07:36 2016: 1 minute, 17 seconds
calibre-2.47.0: Sun Mar 27 15:46:39 2016: 1 minute, 4 seconds
calibre-2.47.0: Thu Apr  7 17:52:10 2016: 1 minute, 24 seconds
calibre-2.55.0: Tue Apr 26 13:36:10 2016: 1 minute, 53 seconds
calibre-2.55.0: Wed Jun  1 12:54:34 2016: 2 minutes, 15 seconds
calibre-2.55.0: Sun Jul 31 13:26:46 2016: 1 minute, 37 seconds
calibre-2.63.0: Sat Aug  6 13:18:29 2016: 3 minutes, 42 seconds
calibre-2.66.0: Tue Sep  6 12:53:39 2016: 10 minutes, 18 seconds
calibre-2.68.0: Mon Sep 19 13:06:57 2016: 2 minutes, 16 seconds
calibre-2.70.0: Mon Oct 17 13:21:48 2016: 3 minutes, 14 seconds
calibre-2.70.0: Mon Nov  7 20:14:53 2016: 1 minute, 25 seconds


But I didn't hit this bug until now on version 2.73.0
My build.log and emerge info are in the duplicate bug: https://bugs.gentoo.org/show_bug.cgi?id=601216
Comment 9 William 2017-01-17 11:35:30 UTC
Created attachment 460442 [details]
calibre 2.77.0

Version bumping the ebuild to 2.77.0 didn't help either.
Does anyone have a workaround? My current 2.70.0 segfaults, I can't build any version without hitting this bug...
Comment 10 Eli Schwartz 2023-10-19 23:34:04 UTC
I fixed this upstream in https://github.com/kovidgoyal/calibre/commit/2a63948440fe2d60a5573b829f27000d5c0389e2

This code was therefore dropped in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b4908e5bc740371095745f818bc3dd5bd187770

commit 3b4908e5bc740371095745f818bc3dd5bd187770
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: Tue May 28 16:08:17 2019
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: Tue May 28 16:10:17 2019

    app-text/calibre: version bump to 3.43.0
    
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-text/calibre/Manifest              |   1 +
 app-text/calibre/calibre-3.43.0.ebuild | 270 +++++++++++++++++++++++++++++++++
 2 files changed, 271 insertions(+)
 create mode 100644 app-text/calibre/calibre-3.43.0.ebuild