From 4a69bd482a67d74dbe4625c1b20df68906b53c8c Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 28 Jun 2019 11:26:55 +0200 Subject: [PATCH] Revert "igraph: Build only the static lib" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4b1d6dd480b8e9afeac5b7e8a7ac75eaea0b3ca9. Installing the Python package [python-igraph][1] importing it fails with the error below. $ pip install --user leidenalg DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Collecting leidenalg Downloading https://files.pythonhosted.org/packages/b6/cc/d76baf78a3924ba6093a3ce8d14e2289f1d718bd3bcbb8252bb131d12daa/leidenalg-0.7.0.tar.gz (92kB) |████████████████████████████████| 102kB 3.3MB/s Collecting python-igraph>=0.7.1.0 (from leidenalg) Downloading https://files.pythonhosted.org/packages/0f/a0/4e7134f803737aa6eebb4e5250565ace0e2599659e22be7f7eba520ff017/python-igraph-0.7.1.post6.tar.gz (377kB) |████████████████████████████████| 378kB 7.5MB/s Building wheels for collected packages: leidenalg, python-igraph Building wheel for leidenalg (setup.py) ... done Stored in directory: /scratch/local/pmenzel/.cache/pip/wheels/29/55/48/5a04693a10f50297bcda23819ca23ab3470a61dd911851c8bd Building wheel for python-igraph (setup.py) ... done Stored in directory: /scratch/local/pmenzel/.cache/pip/wheels/41/d6/02/34eebae97e25f5b87d60f4c0687e00523e3f244fa41bc3f4a7 Successfully built leidenalg python-igraph Installing collected packages: python-igraph, leidenalg Successfully installed leidenalg-0.7.0 python-igraph-0.7.1.post6 pmenzel@godsavethequeen:~> python Python 2.7.16 (default, May 15 2019, 14:45:23) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import igraph as ig Traceback (most recent call last): File "", line 1, in File "/home/pmenzel/.local/lib/python2.7/site-packages/igraph/__init__.py", line 34, in from igraph._igraph import * ImportError: /home/pmenzel/.local/lib/python2.7/site-packages/igraph/_igraph.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE Somehow it’s not linked against stdc++ correctly? [Missing stdc++ in during linking?*][2] might be a similar issue. Anyway, having the shared library for igraph around, python-igraph builds fine and can be imported too. So add it back again. [1]: https://github.com/igraph/python-igraph/ [2]: https://github.com/sensational/sassphp/issues/4 --- igraph.be0 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/igraph.be0 b/igraph.be0 index 3be7fb28e..5180f31b7 100755 --- a/igraph.be0 +++ b/igraph.be0 @@ -11,8 +11,6 @@ SRCURL[0]="https://github.com/igraph/igraph/releases/download/${PKGVERSION}/igraph-${PKGVERSION}.tar.gz" -export CFLAGS='-fPIC -O2' - ############################################################################### ## Add URLs/pathes to patch files to the PATCHURL array. ## The sources will be patched in the order of the array. @@ -49,9 +47,9 @@ build_in_sourcedir # bee_patch "${@}" #} -mee_configure() { - bee_configure --enable-shared=no -} +#mee_configure() { +# bee_configure +#} #mee_build() { # bee_build