[arch-commits] Commit in python-pytorch/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat May 15 10:41:35 UTC 2021


    Date: Saturday, May 15, 2021 @ 10:41:35
  Author: arojas
Revision: 934613

Rebuild with google-glog 0.5 (FS#70861)

Modified:
  python-pytorch/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-15 10:38:14 UTC (rev 934612)
+++ PKGBUILD	2021-05-15 10:41:35 UTC (rev 934613)
@@ -6,7 +6,7 @@
 _pkgname="pytorch"
 pkgver=1.8.1
 _pkgver=1.8.1
-pkgrel=5
+pkgrel=6
 pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration"
 arch=('x86_64')
 url="https://pytorch.org"
@@ -151,6 +151,9 @@
   # remove local nccl
   rm -rf third_party/nccl/nccl
 
+  # fix build with google-glog 0.5 https://github.com/pytorch/pytorch/issues/58054
+  sed -e '/namespace glog_internal_namespace_/d' -e 's|::glog_internal_namespace_||' -i c10/util/Logging.cpp
+
   cd ..
 
   cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt"



More information about the arch-commits mailing list