Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Dec 2021 01:10:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 260694] [NEW PORT] science/libtensorflow1: C API for TensorFlow, an open source platform for machine learning
Message-ID:  <bug-260694-7788-Bk5deUCQg5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260694-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260694-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260694

Xin LI <delphij@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|ports-bugs@FreeBSD.org      |freebsd@otoh.org

--- Comment #5 from Xin LI <delphij@FreeBSD.org> ---
Hi, Paul,

First of all, thanks a lot for taking this!  I have made some minor tweaks =
to
your patchset to make portlint happy.

When testing the port we did discovered some issue.  It seems that the port
would attempt to download during build stage:

%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<phase=
: build          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D>  Building for libtensorflow1-1.15.5
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=3D0 --terminal_columns=3D80
INFO: Reading rc options for 'build' from /usr/local/etc/bazel/bazel.bazelr=
c:
  'build' options: --strategy=3DJavac=3Dstandalone --host_javabase=3D@local=
_jdk//:jdk
--action_env=3DPATH=3D/bin:/usr/bin/:/usr/local/bin
INFO: Reading rc options for 'build' from
/wrkdirs/usr/ports/science/libtensorflow1/work/tensorflow-1.15.5/.bazelrc:
  'build' options: --apple_platform_type=3Dmacos --define
framework_shared_object=3Dtrue --define open_source_build=3Dtrue
--define=3Duse_fast_cpp_protos=3Dtrue --define=3Dallow_oversize_protos=3Dtr=
ue
--spawn_strategy=3Dstandalone -c opt --announce_rc --define=3Dgrpc_no_ares=
=3Dtrue
--define=3DPREFIX=3D/usr/local --define=3DLIBDIR=3D$(PREFIX)/lib
--define=3DINCLUDEDIR=3D$(PREFIX)/include --copt=3D-w --config=3Dv1
INFO: Reading rc options for 'build' from
/wrkdirs/usr/ports/science/libtensorflow1/work/tensorflow-1.15.5/.tf_config=
ure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=3D/usr/local/bin/python3.8
--action_env PYTHON_LIB_PATH=3D/usr/local/lib/python3.8/site-packages
--python_path=3D/usr/local/bin/python3.8 --define=3DPREFIX=3D/usr/local --a=
ction_env
TF_CONFIGURE_IOS=3D0
INFO: Found applicable config definition build:v1 in file
/wrkdirs/usr/ports/science/libtensorflow1/work/tensorflow-1.15.5/.bazelrc:
--define=3Dtf_api_version=3D1 --action_env=3DTF2_BEHAVIOR=3D0
INFO: Call stack for the definition of repository 'io_bazel_rules_closure'
which is a http_archive (rule definition at
/wrkdirs/usr/ports/science/libtensorflow1/work/bazel_out/bef36fd36dd6cc1e25=
be0c1e2af46c35/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 -
/wrkdirs/usr/ports/science/libtensorflow1/work/tensorflow-1.15.5/WORKSPACE:=
5:1
WARNING: Download from
https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/=
rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz
failed: class
com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttp=
Exception
Unknown host: storage.googleapis.com
WARNING: Download from
https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471=
b67a40403df940149.tar.gz
failed: class
com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttp=
Exception
Unknown host: github.com
ERROR: An error occurred during the fetch of repository
'io_bazel_rules_closure':
   java.io.IOException: Error downloading
[https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild=
/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz,
https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471=
b67a40403df940149.tar.gz]
to
/wrkdirs/usr/ports/science/libtensorflow1/work/bazel_out/bef36fd36dd6cc1e25=
be0c1e2af46c35/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a4=
0403df940149.tar.gz:
Unknown host: github.com
ERROR: no such package '@io_bazel_rules_closure//closure': java.io.IOExcept=
ion:
Error downloading
[https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild=
/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz,
https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471=
b67a40403df940149.tar.gz]
to
/wrkdirs/usr/ports/science/libtensorflow1/work/bazel_out/bef36fd36dd6cc1e25=
be0c1e2af46c35/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a4=
0403df940149.tar.gz:
Unknown host: github.com
ERROR: no such package '@io_bazel_rules_closure//closure': java.io.IOExcept=
ion:
Error downloading
[https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild=
/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz,
https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471=
b67a40403df940149.tar.gz]
to
/wrkdirs/usr/ports/science/libtensorflow1/work/bazel_out/bef36fd36dd6cc1e25=
be0c1e2af46c35/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a4=
0403df940149.tar.gz:
Unknown host: github.com
INFO: Elapsed time: 4.913s
INFO: 0 processes.
*** Error code 1

Stop.
make: stopped in /usr/ports/science/libtensorflow1
%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--

The port build infrastructure does not allow downloading during build and
requires all artifacts be downloaded by the port framework for security (th=
is
ensures that all source artifacts are validated by the maintainer) and to m=
ake
sure that the build is reproducible (so we have all artifacts, potentially
mirrored, instead of relying on the single source site).

Could you please make changes to the port so that it downloads the artifacts
and place them where blaze expects them?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260694-7788-Bk5deUCQg5>