-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Available FreeBSD port? #13
Comments
This code here is a FreeBSD port. All that is needed is submitting it in the FreeBSD Bugzilla to be included in the official collection. |
@pmhausen Patrick do you know who could help with this task? I'm not familiar with ports and FreeBSD, only CentOS. This port should be split in two, one for |
I think I could help with that. Time permitting. Why do you include some magic extracting libtensorflow from a docker image? There is a port of py-tensorflow already. Can't you just record a dependency on that? |
We have the same issue of py-tensorflow. Tensorflow is required bazel to build and it will download files during the build stage, this is not allowed by official ports tree. So I can't submit it to freshports. |
OK, py-tensorflow is marked as "BROKEN". So one would have to make that work first. I fail to get the problem with the bazel dependency, there's this in the py-tensorflow Makefile:
So it should just go ahead and build/install bazel. I can give that port a try tomorrow and try to find out why it is marked "BROKEN". |
@pmhausen That's will be great. If we can make py-tensorflow works, then we can write a new build script for photoprism and submit it to the official ports tree. |
@fmunteanu Thanks. I'm not sure that bazel will accept make's setting. But I suppose bazel should have a similar option. I will check the manual. |
@huo-ju Bazel flags, can you give me an example of the Bazel command to build the library? |
@fmunteanu sure, please see this line: photoprism-freebsd-port/Makefile Line 56 in bc17ab3
|
The issue about interactive questions has been fixed. |
I am very much looking forward to the port being available in the main ports tree. |
Amazing, do you plan to release an official port? |
The |
I believe they have a working build of py-tensorflow, to be released? |
Upgrade to 1.15.5 has just been committed to FreeBSD Ports. |
So with a working science/py-tensorflow this would be an option, right? |
That's a good news. I can try to remove the |
I have tested the |
I also noticed this and have been poking at it. FYI, it doesn't currently work as |
Here's the bug report with a patch for science/py-tensorflow to include the shared libs. |
@psa That's great, thanks! |
Hi. Any news about this? Still, in (Upgrade to 210925-96168e4b), tensorflow 1.15.2 is being built from zero with bazel. BTW, are you sure that the extra patches from the Makefile are correctly addressed to be applied? I mean, I have just run make, but the repo.bzl file remained as the original one. I had to apply the patch manually.
Thanks! |
@dml33 It should be patched on Freebsd 12: photoprism-freebsd-port/Makefile Line 65 in 58bbd75
Could you show me the value of OPSYS and OSVERSION?
|
This is my output:
When is it applied? Bazel was already compiling for a while when I lost my terminal. Later, when I opened another one, I went to
and I realized that repo.bzl was without the patch. Then, I had to do it manually. Here are the differences:
|
The patching target should be executed after the Please see the building output on my testing jails, and It has been applied successfully to the file. 2021-10-02 11:13:43 (2.85 MB/s) - 'v1.15.2.tar.gz' saved [46196945] |
Sorry, I lost that part in the terminal which was closed... Afterwards, in the new terminal, it started directly as follows:
Anyway, when the compilation finishes, I'll do it again (from a clean state) and I'll check those lines. A new PhotoPrism release has just been published: 211002-bf015326. Could you update the freebsd-port? Many thanks! |
I can confirm that with g20211002 and a But, I had to add the cd ${WRKSRC}/docker/tensorflow/tensorflow-${TF_VERSION} && bazel --output_user_root="${WRKDIR}/.bazel" build --jobs 2 --verbose_failures --config=opt //tensorflow:libtensorflow.so ${BAZEL_COPT} How about letting the user choose whether to include these options in the menu of Thanks again |
I have a port for |
Thanks, we will. I asked a port committer to help you port, hoping it will be processed faster. |
I've been poking at this a bit more today. The Go modules are going to be fairly straightforward I believe (I've already got the tuples sorted) and the tensorflow training sets are very easy (done). The node modules are, so far, proving to be quite annoying. Anyone know of an existing tool for |
Hi @psa
I'm trying to get it to work in a jail on TrueNas:
Thanks |
Hi, @psa. |
With @dml33 pointers I have put some workaround instructions here psa/libtensorflow1-freebsd-port#2 (comment) Tensorflow build complete successfully and finished installing with |
@dml33 I've installed The error that I'm getting happens when I'm trying to run already compiled and installed |
I think that your error comes because psa's binary package https://github.com/psa/libtensorflow1-freebsd-port/releases/tag/1.15.5 is for FreeBSD 13, but your FreeBSD jail is in 12.2. I have compiled a package for FreeBSD 12.2, but I cannot upload it to psa repository until he gives me permissions. In my case, it will be with AVX instructions disabled. |
Gotcha @dml33 |
Is there anything we can help with so maintaining the port gets easier? We now have FreeBSD 13 running on an iMac 😈 |
@dml33 I've added you as a collaborator to the libtensorflow1 port. Thanks for the build (and the updates). |
I've updated the libtensorflow1 port release 1.15.5 with a package for FreeBSD 12.2 and noAVX support. @psa Thanks!! 👍 |
@psa I just made a sed script for it :) I'm hoping to commit science/libtensorflow1 this weekend-- thanks very much for the work on the port! Perhaps I could add a maintainer target to the port to extract the stuff and make the GH_TUPLES for you? |
Hi !
@crees any help appreciated :D ! Update 1 : Applying this patch on |
This works here on FreeBSD 13: portsnap fetch && portsnap extract
wget https://github.com/psa/libtensorflow1-freebsd-port/releases/download/1.15.5-pre-release-0/libtensorflow1-1.15.5-FreeBSD-13.0-AVX.pkg
pkg add libtensorflow1-1.15.5-FreeBSD-13.0-AVX.pkg
pkg install git
git clone https://github.com/huo-ju/photoprism-freebsd-port
cd ~/photoprism-freebsd-port
make config-recursive
make && make install |
@huo-ju since you are experienced, do you think is possible to create a fresh port? It will make things so much easier for everyone.
The text was updated successfully, but these errors were encountered: