[Bug 260694] [NEW PORT] science/libtensorflow1: C API for TensorFlow, an open source platform for machine learning

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Dec 2021 01:10:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260694

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:

%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--%--
===========================================================================
=======================<phase: build          >============================
===>  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=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /usr/local/etc/bazel/bazel.bazelrc:
  'build' options: --strategy=Javac=standalone --host_javabase=@local_jdk//:jdk
--action_env=PATH=/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=macos --define
framework_shared_object=true --define open_source_build=true
--define=use_fast_cpp_protos=true --define=allow_oversize_protos=true
--spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true
--define=PREFIX=/usr/local --define=LIBDIR=$(PREFIX)/lib
--define=INCLUDEDIR=$(PREFIX)/include --copt=-w --config=v1
INFO: Reading rc options for 'build' from
/wrkdirs/usr/ports/science/libtensorflow1/work/tensorflow-1.15.5/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/local/bin/python3.8
--action_env PYTHON_LIB_PATH=/usr/local/lib/python3.8/site-packages
--python_path=/usr/local/bin/python3.8 --define=PREFIX=/usr/local --action_env
TF_CONFIGURE_IOS=0
INFO: Found applicable config definition build:v1 in file
/wrkdirs/usr/ports/science/libtensorflow1/work/tensorflow-1.15.5/.bazelrc:
--define=tf_api_version=1 --action_env=TF2_BEHAVIOR=0
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/bef36fd36dd6cc1e25be0c1e2af46c35/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.UnrecoverableHttpException
Unknown host: storage.googleapis.com
WARNING: Download from
https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz
failed: class
com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException
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/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz]
to
/wrkdirs/usr/ports/science/libtensorflow1/work/bazel_out/bef36fd36dd6cc1e25be0c1e2af46c35/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz:
Unknown host: github.com
ERROR: no such package '@io_bazel_rules_closure//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/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz]
to
/wrkdirs/usr/ports/science/libtensorflow1/work/bazel_out/bef36fd36dd6cc1e25be0c1e2af46c35/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz:
Unknown host: github.com
ERROR: no such package '@io_bazel_rules_closure//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/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz]
to
/wrkdirs/usr/ports/science/libtensorflow1/work/bazel_out/bef36fd36dd6cc1e25be0c1e2af46c35/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a40403df940149.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 (this
ensures that all source artifacts are validated by the maintainer) and to make
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?

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