Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840999 - dev-python/cvxopt-1.3.0 - error: [Errno 2] No such file or directory: build/lib.linux-x86_64-cpython-39/cvxopt/_version.py
Summary: dev-python/cvxopt-1.3.0 - error: [Errno 2] No such file or directory: build/l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-26 11:35 UTC by Toralf Förster
Modified: 2022-05-07 16:58 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.34 KB, text/plain)
2022-04-26 11:35 UTC, Toralf Förster
Details
dev-python:cvxopt-1.3.0:20220426-010511.log (dev-python:cvxopt-1.3.0:20220426-010511.log,10.54 KB, text/plain)
2022-04-26 11:35 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,54.51 KB, application/x-bzip)
2022-04-26 11:35 UTC, Toralf Förster
Details
environment (environment,130.15 KB, text/plain)
2022-04-26 11:35 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.79 KB, application/x-bzip)
2022-04-26 11:35 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.97 KB, application/x-bzip)
2022-04-26 11:35 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-04-26 11:35:21 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -pipe -march=native -fno-diagnostics-color -O2 -fPIC -I/usr/include/python3.9 -c src/C/sparse.c -o build/temp.linux-x86_64-cpython-39/src/C/sparse.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -pipe -march=native -fno-diagnostics-color -O2 build/temp.linux-x86_64-cpython-39/src/C/lapack.o -L/usr/lib64; -L/usr/lib64 -llapack -lblas -o build/lib.linux-x86_64-cpython-39/cvxopt/lapack.cpython-39-x8
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -pipe -march=native -fno-diagnostics-color -O2 build/temp.linux-x86_64-cpython-39/src/C/base.o build/temp.linux-x86_64-cpython-39/src/C/dense.o build/temp.linux-x86_64-cpython-39/src/C/sparse.o -L/usr/lib
UPDATING build/lib.linux-x86_64-cpython-39/cvxopt/_version.py
error: [Errno 2] No such file or directory: 'build/lib.linux-x86_64-cpython-39/cvxopt/_version.py'
 * ERROR: dev-python/cvxopt-1.3.0::gentoo failed (compile phase):
 *   (no error message)

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20220422-222106

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-10.3.1
 [3] x86_64-pc-linux-gnu-11.3.0 *
clang/llvm (if any):
clang version 14.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.1
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.60.0 *
The following VMs are available for generation-2:
1)	OpenJDK 11.0.14_p9 [openjdk-11]
2)	OpenJDK 8.322_p06 [openjdk-8]
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
4)	Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-11 
  [3]   openjdk-bin-8 
  [4]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit b6e7de728247bdfead3e9e35f95028fcae409772
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Apr 25 23:18:35 2022 +0000

    2022-04-25 23:18:35 UTC

emerge -qpvO dev-python/cvxopt
[ebuild  N    ] dev-python/cvxopt-1.3.0  USE="dsdp glpk -doc -examples -fftw -gsl -test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-04-26 11:35:22 UTC
Created attachment 774678 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-26 11:35:23 UTC
Created attachment 774681 [details]
dev-python:cvxopt-1.3.0:20220426-010511.log
Comment 3 Toralf Förster gentoo-dev 2022-04-26 11:35:24 UTC
Created attachment 774684 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-04-26 11:35:25 UTC
Created attachment 774687 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-04-26 11:35:26 UTC
Created attachment 774690 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-26 11:35:27 UTC
Created attachment 774693 [details]
temp.tar.bz2
Comment 7 MaxKarlErnstPlanck 2022-05-02 17:20:35 UTC
easy to fix

$ cat /etc/portage/patches/dev-python/cvxopt/versioneer.py.patch
--- a/versioneer.py
+++ b/versioneer.py
@@ -1392,7 +1392,10 @@
 
 def write_to_version_file(filename, versions):
     """Write the given version number to the given _version.py file."""
-    os.unlink(filename)
+    try:
+        os.unlink(filename)
+    except Exception:
+        print(filename)
     contents = json.dumps(versions, sort_keys=True,
                           indent=1, separators=(",", ": "))
     with open(filename, "w") as f:
Comment 8 Larry the Git Cow gentoo-dev 2022-05-07 16:58:33 UTC
The bug has been closed via the following commit(s):

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

commit 4c9d7f507594da6c0b3d0f598ece26e1cd477351
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2022-05-07 16:57:06 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2022-05-07 16:57:19 +0000

    dev-python/cvxopt: patch versioneer.py to fix the build.
    
    Michał Górny fixed this upstream in versioneer itself, I just
    backported his commit to cvxopt's copy of versioneer.py.
    
    Closes: https://bugs.gentoo.org/840999
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 dev-python/cvxopt/cvxopt-1.3.0.ebuild              |  2 ++
 .../files/cvxopt-1.3.0-versioneer-buildfix.patch   | 33 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)