Created
January 21, 2017 13:54
-
-
Save aroig/723ec3c61e2bf3b1268316fc41a425be to your computer and use it in GitHub Desktop.
patch for python-tensorflow PKGBUILD on AUR
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
From a6090700a6daa81fec96aff21070f6b403a08d8c Mon Sep 17 00:00:00 2001 | |
From: Abdo Roig-Maranges <abdo.roig@gmail.com> | |
Date: Fri, 20 Jan 2017 23:30:30 +0100 | |
Subject: [PATCH] move patching to prepare() | |
Additionally, make the sed rule so that it works if applied twice on the same | |
sources. | |
--- | |
PKGBUILD | 10 +++++++--- | |
1 file changed, 7 insertions(+), 3 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 7efcf96..29c49ee 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -22,6 +22,13 @@ source=("https://github.com/tensorflow/tensorflow/archive/${pkgver}.zip" | |
md5sums=('5cbd72426e1f16d103eb8f780488bf82' | |
'0c9dae7ad2ef6ea234b6aa178a688d7b') | |
+prepare() { | |
+ cd "$srcdir/tensorflow-${pkgver}" | |
+ | |
+ # fix for issue 6594 | |
+ sed -i 's|zlib.net/zlib|zlib.net/fossils/zlib|' "$srcdir/tensorflow-${pkgver}/tensorflow/workspace.bzl" | |
+} | |
+ | |
build() { | |
cd "$srcdir/tensorflow-${pkgver}" | |
@@ -39,9 +46,6 @@ build() { | |
export TF_CUDNN_VERSION=$(sed -n 's/^#define CUDNN_MAJOR\s*\(.*\).*/\1/p' $CUDNN_INSTALL_PATH/include/cudnn.h) | |
export GCC_HOST_COMPILER_PATH=/usr/bin/gcc-5 | |
- # fix for issue 6594 | |
- sed -i 's/zlib.net/zlib.net\/fossils/' "$srcdir/tensorflow-${pkgver}/tensorflow/workspace.bzl" | |
- | |
./configure | |
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package | |
bazel-bin/tensorflow/tools/pip_package/build_pip_package $srcdir/tmp | |
-- | |
2.11.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment