-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45987 from danieldk/fix-vowpalwabbit
vowpalwabbit: fix build against boost-python.
- Loading branch information
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
pkgs/development/python-modules/vowpalwabbit/vowpal-wabbit-find-boost.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- vowpalwabbit-8.5.0.orig/setup.py 2018-09-03 20:32:39.000000000 +0200 | ||
+++ vowpalwabbit-8.5.0/setup.py 2018-09-03 20:34:09.000000000 +0200 | ||
@@ -23,18 +23,11 @@ | ||
|
||
def find_boost(): | ||
"""Find correct boost-python library information """ | ||
- if system == 'Linux': | ||
+ if system == 'Linux' or system == 'Darwin': | ||
# use version suffix if present | ||
- boost_lib = 'boost_python-py{v[0]}{v[1]}'.format(v=sys.version_info) | ||
- if sys.version_info.major == 3: | ||
- for candidate in ['-py36', '-py35', '-py34', '3']: | ||
- boost_lib = 'boost_python{}'.format(candidate) | ||
- if find_library(boost_lib): | ||
- exit | ||
+ boost_lib = 'boost_python{v[0]}{v[1]}'.format(v=sys.version_info) | ||
if not find_library(boost_lib): | ||
boost_lib = "boost_python" | ||
- elif system == 'Darwin': | ||
- boost_lib = 'boost_python-mt' if sys.version_info[0] == 2 else 'boost_python3-mt' | ||
elif system == 'Cygwin': | ||
boost_lib = 'boost_python-mt' if sys.version_info[0] == 2 else 'boost_python3-mt' | ||
else: | ||
--- vowpalwabbit-8.5.0.orig/src/Makefile 2018-09-03 20:32:40.000000000 +0200 | ||
+++ vowpalwabbit-8.5.0/src/Makefile 2018-09-03 21:42:30.000000000 +0200 | ||
@@ -37,7 +37,7 @@ | ||
NPROCS:=$(shell grep -c ^processor /proc/cpuinfo) | ||
endif | ||
ifeq ($(UNAME), Darwin) | ||
- LIBS = -lboost_program_options-mt -lboost_serialization-mt -l pthread -l z | ||
+ LIBS = -lboost_program_options -lboost_serialization -l pthread -l z | ||
# On Macs, the location isn't always clear | ||
# brew uses /usr/local | ||
# but /opt/local seems to be preferred by some users |