net-www/inox: fix build when python3 is eclected

This commit is contained in:
Julian Ospald 2017-03-23 22:47:30 +01:00
parent 354c076509
commit b499d70b71
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 8 additions and 8 deletions

View File

@ -307,14 +307,6 @@ inox_src_prepare() {
# TODO: package re2
keeplibs+=( third_party/re2 )
# remove some of the bundled libraries
edo build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove
# TODO: Find out how to properly do this for GN and/or report upstream
edo sed \
-e "s:pkg_config = \"\":pkg_config = \"$(exhost --tool-prefix)pkg-config\":g" \
-i build/config/linux/pkg_config.gni
# TODO: Find out how to properly do this for GN and/or report upstream
# Fix this for multiarch by adding appropriate symlinks here and adding this directory to
# the PATH
@ -334,6 +326,14 @@ inox_src_prepare() {
# and, they assume python is python2!
edo ln -s /usr/host/bin/python2 ${dir}/python
export PATH="${dir}:${PATH}"
# remove some of the bundled libraries
edo build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove
# TODO: Find out how to properly do this for GN and/or report upstream
edo sed \
-e "s:pkg_config = \"\":pkg_config = \"$(exhost --tool-prefix)pkg-config\":g" \
-i build/config/linux/pkg_config.gni
}
inox_src_configure() {