[Bug 250646] science/py-tensorflow: Update to 1.15.4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 26 18:39:33 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250646

            Bug ID: 250646
           Summary: science/py-tensorflow: Update to 1.15.4
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: ashafer at badland.io
                CC: amzo1337 at gmail.com
             Flags: maintainer-feedback?(amzo1337 at gmail.com)
                CC: amzo1337 at gmail.com

Created attachment 219115
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=219115&action=edit
py-tensorflow 1.15.4 svn diff

- Fix and update science/py-tensorflow and science/py-tensorflow-estimator

Tensorflow is marked broken and is at 1.14. This is my initial attempt at
updating it to 1.15.4 so that I could use GPT-2 on FreeBSD. I'm no expert on
porting or tensorflow so I'm sure I made some mistakes.

This also re-adds science/py-tensorflow-estimator which was marked broken as
well. I didn't have any problems building it so it should be the same as
before.

This patch sets --jobs to 1 to try to guarantee that it will build. There was
one kernel that required a huge amount of memory to compile which was why only
one core could be used while building. For everything else I could set it to
--jobs 5+ and it would run fine. If you build this yourself try building with
as many jobs as you can want it gets to that one file.

The only portlint errors I saw were complaints about not using make makepatch,
which is really weird because that is what I used. I fixed all other warnings.
I've launched some testport poudriere stuff but it is going to take a long time
for that to finish, so I'm going ahead and posting the bug to get feedback.

Changes made:
- Using the host jsoncpp was causing compatibility issues, so I think I have it
marked to grab it from git instead.
- Changed the do-install to copy all of the correct folders to go in
/usr/local/lib/python*
- Changed lots of patch files, mostly to add -lexecinfo
- Lots of places complained about errors similar to the following:
this rule is missing dependency declarations for the following files ...:
  'tensorflow/contrib/makefile/downloads/absl/absl/strings/string_view.h'
  'tensorflow/contrib/makefile/downloads/absl/absl/types/optional.h'

- I had to add the following lines in a lot of bazel deps in the patches to fix
this:
"@com_google_absl//absl/strings",
"@com_google_absl//absl/base:core_headers",

I've been using the version I built with this port to run some GPT-2 text
generation stuff for a few days and haven't had any problems at all. Hopefully
this works for others and helps the official port get fixed.

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


More information about the freebsd-ports-bugs mailing list