Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488416 - =app-office/taskcoach-1.3.32-r1 - mv: cannot stat '/var/tmp/portage/app-office/taskcoach-1.3.32-r1/image//usr/bin/taskcoach.py-*': No such file or directory
Summary: =app-office/taskcoach-1.3.32-r1 - mv: cannot stat '/var/tmp/portage/app-offic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Vlastimil Babka (Caster) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 487108
  Show dependency tree
 
Reported: 2013-10-17 19:53 UTC by Johannes Hirte
Modified: 2014-06-02 08:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
app-office:taskcoach-1.3.32-r1:20131017-233045.log (app-office:taskcoach-1.3.32-r1:20131017-233045.log,301.50 KB, text/x-log)
2013-10-17 23:56 UTC, Tom Wijsman (TomWij) (RETIRED)
Details
app-office/taskcoach-1.3.32-r2.ebuild (taskcoach-1.3.32-r2.ebuild,927 bytes, text/plain)
2013-10-30 20:12 UTC, Wiener
Details
app-office/taskcoach-1.3.33.ebuild (taskcoach-1.3.33.ebuild,927 bytes, text/plain)
2013-10-30 20:15 UTC, Wiener
Details
Add a symlink to not use *.py file (taskcoach-1.3.40_add_symlink.patch,1.66 KB, patch)
2014-06-02 08:45 UTC, Sven Eden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2013-10-17 19:53:43 UTC
Install of taskcoach fails because of not finding files:

riting byte-compilation script '/var/tmp/portage/app-office/taskcoach-1.3.32-r1/temp/python2.7/tmpWlsoNa.py'
/usr/bin/python2.7 -OO /var/tmp/portage/app-office/taskcoach-1.3.32-r1/temp/python2.7/tmpWlsoNa.py
removing /var/tmp/portage/app-office/taskcoach-1.3.32-r1/temp/python2.7/tmpWlsoNa.py
running install_scripts
creating /var/tmp/portage/app-office/taskcoach-1.3.32-r1/image/_python2.7/usr/lib
creating /var/tmp/portage/app-office/taskcoach-1.3.32-r1/image/_python2.7/usr/lib/python-exec
creating /var/tmp/portage/app-office/taskcoach-1.3.32-r1/image/_python2.7/usr/lib/python-exec/python2.7
copying /var/tmp/portage/app-office/taskcoach-1.3.32-r1/work/TaskCoach-1.3.32-python2_7/scripts/taskcoach.py -> /var/tmp/portage/app-office/taskcoach-1.3.32-r1/image//_python2.7/usr/lib/python-exec/python2.7
changing mode of /var/tmp/portage/app-office/taskcoach-1.3.32-r1/image//_python2.7/usr/lib/python-exec/python2.7/taskcoach.py to 755
running install_egg_info
Writing /var/tmp/portage/app-office/taskcoach-1.3.32-r1/image//_python2.7/usr/lib64/python2.7/site-packages/TaskCoach-1.3.32-py2.7.egg-info
 * python2_7: running distutils-r1_run_phase python_install_all
mv: cannot stat '/var/tmp/portage/app-office/taskcoach-1.3.32-r1/image//usr/bin/taskcoach.py-*': No such file or directory
 * ERROR: app-office/taskcoach-1.3.32-r1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 3683:  Called distutils-r1_src_install
 *   environment, line 1123:  Called _distutils-r1_run_common_phase 'python_install_all'
 *   environment, line  246:  Called multibuild_for_best_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install_all'
 *   environment, line 2676:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install_all'
 *   environment, line 2701:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install_all'
 *   environment, line 2699:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_install_all'
 *   environment, line  659:  Called distutils-r1_run_phase 'python_install_all'
 *   environment, line 1087:  Called python_install_all
 *   environment, line 3465:  Called die
 * The specific snippet of code:
 *           mv "${file}" "${dir}/taskcoach-${ver}" || die;
 * 
 * If you need support, post the output of `emerge --info '=app-office/taskcoach-1.3.32-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/taskcoach-1.3.32-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-office/taskcoach-1.3.32-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/taskcoach-1.3.32-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/taskcoach-1.3.32-r1/work/TaskCoach-1.3.32'
 * S: '/var/tmp/portage/app-office/taskcoach-1.3.32-r1/work/TaskCoach-1.3.32'

Reproducible: Always




emerge --info
Portage 2.2.7 (default/linux/amd64, gcc-4.8.1, glibc-2.17, 3.12.0-rc4-00126-g9d05746 x86_64)
=================================================================
System uname: Linux-3.12.0-rc4-00126-g9d05746-x86_64-AMD_A6-3650_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     7643764 total,    544456 free
KiB Swap:    4194300 total,   4163108 free
Timestamp of tree: Thu, 17 Oct 2013 15:00:01 +0000
ld GNU gold (GNU Binutils 2.23.2) 1.11
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.12::kde
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4, 4.7.3-r1, 4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x11 kde local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x dlj-1.1 Google-TOS google-chrome skype-eula skype-4.0.0.7-copyright THINKTANKS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -ftracer -fvect-cost-model -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/edit/ /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="-O2 -march=amdfam10 -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -ftracer -fvect-cost-model -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/kde /usr/local/portage"
USE="X a52 aac acl addressbook aften aio alsa amd64 amr apng assistant attica audiofile autotools berkdb bluetooth bogofilter bzip2 cairo calendar canberra caps caps-ng cdda cddb chm cli cmake consolekit corefonts cracklib crypt cups cvs cxx dbus declarative demosaic desktopglobe device-mapper dirac djvu dri dts dv dvd ebook eigen embedded encode epub exif expoblending faac faad fam ffmpeg fftw flac flickr fontconfig fortran fpx gbm gdbm gif git gles1 gles2 glew gmp google gphoto2 gpm graphicsmagick graphviz gs gsl hdri highlight iconv icu id3tag inotify ipv6 jemalloc jpeg jpeg2k kate kde kdepim kipi kpathsea lame latex lcms lensfun libffi libkms liblockfile libnotify libsamplerate lm_sensors lzma lzo mad marble midi minizip mjpeg mmap mmx mmxext mng modules mount mp3 mp4 mpeg mtp mudflap multilib musicbrainz mysql ncurses nfsidmap nfsv3 nls nptl ogg okteta openal openctl openexr opengl openmp opus oscar otr pam panorama pcre pdf pdfimport perl plasma png policykit postscript pyqt4 python python3 qt3support qt4 qthelp quicktime raptor raw readline redeyes rle romio samba scanner schroedinger sdl semantic-desktop session sftp sndfile soundtouch spell sqlite sqlite3 sse sse2 sse3 ssl subversion svg system-cairo system-icu system-jpeg system-sqlite taglib tcpd theora threads thumbnail tiff timidity truetype twolame udev udis86 unicode usb uuid v4l valgrind vamp vdpau vlc vorbis vpx webkit webp wmf x264 xattr xcb xcomposite xetex xml xmp xpm xscreensaver xv xvfb xvid yaz zip zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="braindump flow karbon kexi kpresenter krita plan sheets stage tables words" CAMERAS="canon ptp2 ricoh ricoh_g3" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="r600 radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-17 23:56:58 UTC
Created attachment 361172 [details]
app-office:taskcoach-1.3.32-r1:20131017-233045.log
Comment 2 Wiener 2013-10-30 20:12:06 UTC
Created attachment 362310 [details]
app-office/taskcoach-1.3.32-r2.ebuild
Comment 3 Wiener 2013-10-30 20:15:29 UTC
Created attachment 362312 [details]
app-office/taskcoach-1.3.33.ebuild
Comment 4 Wiener 2013-10-31 08:14:36 UTC
Comment on attachment 362310 [details]
app-office/taskcoach-1.3.32-r2.ebuild

># Copyright 1999-2013 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: /var/cvsroot/gentoo-x86/app-office/taskcoach/taskcoach-1.3.32-r1.ebuild,v 1.1 2013/09/09 17:54:05 ago Exp $
>
>EAPI=5
>
>PYTHON_COMPAT=( python{2_6,2_7} )
>
>inherit distutils-r1 eutils
>
>MY_PN="TaskCoach"
>MY_P="${MY_PN}-${PV}"
>
>DESCRIPTION="Simple personal tasks and todo lists manager"
>HOMEPAGE="http://www.taskcoach.org http://pypi.python.org/pypi/TaskCoach"
>SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
>LICENSE="GPL-3"
>SLOT="0"
>KEYWORDS="~amd64 ~x86"
>IUSE="libnotify"
>DEPEND=">=dev-python/wxpython-2.8.9.2:2.8[${PYTHON_USEDEP}]"
>RDEPEND="${DEPEND}
>	libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )"
>
>S="${WORKDIR}/${MY_P}"
>
>DOCS=( CHANGES.txt README.txt )
>
>python_install_all() {
>	distutils-r1_python_install_all
>	doicon "icons.in/${PN}.png"
>	make_desktop_entry ${PN} "Task Coach" ${PN} Office
>}
Comment 5 Wiener 2013-10-31 08:15:10 UTC
Comment on attachment 362310 [details]
app-office/taskcoach-1.3.32-r2.ebuild

removing the section "# a bit ugly but..." solved the failure to me
Comment 6 Wiener 2013-10-31 08:17:47 UTC
Comment on attachment 362312 [details]
app-office/taskcoach-1.3.33.ebuild

even version 1.3.33 build works like a charm based on 1.3.32-r2 ebuild file
Comment 7 Sven Eden 2013-11-08 09:33:59 UTC
(In reply to Wiener from comment #6)
> Comment on attachment 362312 [details]
> app-office/taskcoach-1.3.33.ebuild
> 
> even version 1.3.33 build works like a charm based on 1.3.32-r2 ebuild file

I had the issue on one machine, where the "python-exec-move" was already done. On another, prior to this move, everything went fine.

However, your version 1.3.33 ebuild worked like a charm on the first machine, I'd just suggest to add 
RESTRICT="mirror"
to the ebuild.
Comment 8 Wiener 2013-11-08 21:52:27 UTC
(In reply to Sven Eden from comment #7)
> (In reply to Wiener from comment #6)
> > Comment on attachment 362312 [details]
> > app-office/taskcoach-1.3.33.ebuild
> > 
> > even version 1.3.33 build works like a charm based on 1.3.32-r2 ebuild file
> 
> I had the issue on one machine, where the "python-exec-move" was already
> done. On another, prior to this move, everything went fine.
> 
> However, your version 1.3.33 ebuild worked like a charm on the first
> machine, I'd just suggest to add 
> RESTRICT="mirror"
> to the ebuild.

A short investigation in the circumstances by the python-exec move from dev-python to dev-lang category, i think i have solved the problem you have had!

1st: unmerge all installed python-exec packages by "emerge -qC */python-exec"
2sd: cat >>/etc/portage/package.accept_keywords/dev-lang "=dev-lang/python-exec-2.0"
3rd: emerge missing packages and dependencies by "emerge -aqDNuv @world" => for this i got 45 packages to re-emerge by USE flag "rR". the biggest was libreoffice => a lot of time consuming schedule!! taskcoach itself was included and build my version 1.3.33 as before without error

4th: conclusion to me the python-exec move is / was not the problem

5th: i you got i solved this way, i would suggest to check ebuild of version 1.3.33 to portage main tree
Comment 9 MickKi 2014-03-01 11:18:19 UTC
Any idea when will version 1.3.33 be added to portage main tree?
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2014-05-30 22:25:33 UTC
Bumped to 1.3.40 and removed the renaming of executable. Sorry for waiting.
Comment 11 Sven Eden 2014-06-02 08:45:37 UTC
Created attachment 378044 [details, diff]
Add a symlink to not use *.py file

Hi. I have taskcoach in my overlay (seden) for a while now.

To resolve the executable naming issue, I removed the "mv" call and added a dosym. (See patch)

I can simply call "taskcoach" and it is correctyl started. I find this more intuitive than to remember to write "taskcoach.py".

Other changes:
- I have added RESTRICT="mirror" as the package is not mirrored at all. (At least it wasn't, no idea whether that changed in the meantime.)
- versionator does not need to be inherited
- Lowest version of dev-python/twisted-core is 12.3.0, thus a >=10.0 doesn't seem to be neccessary.
- Python-2.6 is considered deprecated, so I have only 2.7 in PYTHON_COMPAT.

The ebuild is this like for several versions now. With every update I simply rename, test, commit and push.