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

Bug 723188

Summary: dev-python/ws4py-0.5.1-r1 : * The source directory /var/tmp/portage/dev-python/ws4py-0.5.1-r1/work/ws4py-0.5.1 doesnt exist
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Thomas Deutschmann (RETIRED) <whissi>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-python:ws4py-0.5.1-r1:20200514-233458.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2

Description Toralf Förster gentoo-dev 2020-05-15 07:29:17 UTC
 * ERROR: dev-python/ws4py-0.5.1-r1::gentoo failed (prepare phase):
 *   The source directory '/var/tmp/portage/dev-python/ws4py-0.5.1-r1/work/ws4py-0.5.1' doesn't exist
 * 

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-abi32+64-20200505-162645

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.43.1
  [2]   rust-1.43.1 *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.15.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu 14 May 2020 11:05:33 PM UTC

emerge -qpvO dev-python/ws4py
[ebuild  N    ] dev-python/ws4py-0.5.1-r1  USE="client server threads -test" PYTHON_TARGETS="python3_7 -python3_6 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2020-05-15 07:29:20 UTC
Created attachment 639218 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-15 07:29:23 UTC
Created attachment 639220 [details]
dev-python:ws4py-0.5.1-r1:20200514-233458.log
Comment 3 Toralf Förster gentoo-dev 2020-05-15 07:29:26 UTC
Created attachment 639222 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-05-15 07:29:29 UTC
Created attachment 639224 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-05-15 07:29:32 UTC
Created attachment 639226 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-05-15 07:29:35 UTC
Created attachment 639228 [details]
logs.tbz2
Comment 7 Evan Stoll 2020-05-15 21:57:32 UTC
Lazy fix that seemed to work for me:

src_unpack() {
        unpack ${A}
        mv ${WORKDIR}/WebSocket-for-Python-${PV} ${WORKDIR}/${P}
}
Comment 8 IkSin 2020-05-21 14:30:40 UTC
diff -u /var/db/repos/gentoo/dev-python/ws4py/ws4py-0.5.1{,-r1}.ebuild 
--- /var/db/repos/gentoo/dev-python/ws4py/ws4py-0.5.1.ebuild    2020-01-26 20:39:46.000000000 +0300
+++ /var/db/repos/gentoo/dev-python/ws4py/ws4py-0.5.1-r1.ebuild 2020-05-16 14:39:11.000000000 +0300
@@ -6,18 +6,17 @@
 # Same for www-servers/tornado and USE=client ... so why not???
 # pypy is viable but better with a cutdown set of deps
 
-EAPI=6
-PYTHON_COMPAT=( python3_6 )
-PYTHON_REQ_USE="threads?"
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_REQ_USE="threads(+)?"
 
 inherit distutils-r1
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="https://github.com/Lawouach/WebSocket-for-Python.git"
        inherit git-r3
 else
-       inherit vcs-snapshot
        SRC_URI="https://github.com/Lawouach/WebSocket-for-Python/archive/${PV}.tar.gz -> ${P}.tar.gz"
-       KEYWORDS="amd64 arm x86"
+       KEYWORDS="~amd64 arm ~x86"
 fi
 
 DESCRIPTION="WebSocket client and server library for Python 2 and 3 as well as PyPy"
@@ -30,15 +29,18 @@
 # doc build requires sphinxcontrib ext packages absent from portage
 
 RDEPEND=">=dev-python/greenlet-0.4.1[${PYTHON_USEDEP}]
-               >=dev-python/cython-0.19.1[${PYTHON_USEDEP}]
-               client? ( >=www-servers/tornado-3.1[${PYTHON_USEDEP}] )
-               server? ( >=dev-python/cherrypy-3.2.4[${PYTHON_USEDEP}] )"
+       >=dev-python/cython-0.19.1[${PYTHON_USEDEP}]
+       client? ( >=www-servers/tornado-3.1[${PYTHON_USEDEP}] )
+       server? ( >=dev-python/cherrypy-3.2.4[${PYTHON_USEDEP}] )"
+
 DEPEND="test? (
                >=dev-python/cherrypy-3.2.4[${PYTHON_USEDEP}]
                dev-python/unittest2[${PYTHON_USEDEP}]
                >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
        )"
 
+PATCHES=( "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch )
+
 python_test() {
        # testsuite displays an issue with mock under py3 but is non fatal
        "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"


I am thinks this caused by removing "inherit vcs-snapshot"

https://devmanual.gentoo.org/eclass-reference/vcs-snapshot.eclass/index.html
Comment 9 Larry the Git Cow gentoo-dev 2020-05-21 14:55:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b018ba0ae6bd6596455dd69939f9b3fa5e93de35

commit b018ba0ae6bd6596455dd69939f9b3fa5e93de35
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-05-21 14:54:53 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-05-21 14:54:53 +0000

    dev-python/ws4py: fix $S
    
    Closes: https://bugs.gentoo.org/723188
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-python/ws4py/ws4py-0.5.1-r1.ebuild | 7 +++++--
 dev-python/ws4py/ws4py-9999.ebuild     | 9 ++++++---
 2 files changed, 11 insertions(+), 5 deletions(-)