Bug 260308 - Update graphics/blender to v3.0.0
Summary: Update graphics/blender to v3.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dima Panov
URL: https://wiki.blender.org/wiki/Referen...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-10 10:28 UTC by Shane
Modified: 2022-02-02 12:00 UTC (History)
2 users (show)

See Also:


Attachments
maintainer update for graphics/blender (117.42 KB, patch)
2021-12-10 10:28 UTC, Shane
FreeBSD: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shane 2021-12-10 10:28:53 UTC
Created attachment 230012 [details]
maintainer update for graphics/blender

Update blender to v3.0.0

While blender does support building with python 3.10, numpy doesn't support 3.10 yet so keep python version at 3.9 for now.
Thumbnailer is now a compiled app instead of py script
add options for new features and some that didn't get added earlier
Comment 1 feidiekfenghuang 2021-12-19 16:35:49 UTC
1/1] Deinstalling blender-3.0.0...
[1/1] Deleting files for blender-3.0.0: 100%
Generating GTK icon cache for /usr/local/share/icons/hicolor
Building cache database of MIME types
===>  Installing for blender-3.0.0
===>  Checking if blender is already installed
===>   Registering installation for blender-3.0.0
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/config.ocio:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_desat65cube.spi3d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_false_color.spi3d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_to_0-35_1-30.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_to_0-48_1-09.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_to_0-60_1-04.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_to_0-70_1-03.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_to_0-85_1-011.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_to_0.99_1-0075.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/filmic/filmic_to_1.20_1-00.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/dci_xyz.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/lg10.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/rec709.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/srgb.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/srgb_inv.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/srgb_to_xyz.spimtx:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/vd16.spi1d:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/xyz_D65_to_E.spimtx:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/luts/xyz_to_aces.spimtx:No such file or directory
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/graphics/blender
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/blender
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/blender
Comment 2 Shane 2021-12-20 00:01:32 UTC
(In reply to feidiekfenghuang from comment #1)

You have the OPENCOLORIO option enabled, but the required libs were not found, I expect that will be from you still having opencolorio v1 installed.

You can either disable OPENCOLORIO or update graphics/opencolorio to v2.1 as in bug #253491 and then try.

If you also use krita, and want colour management see bug #260310 and bug #260313 to have krita and blender installed together.

Or wait until the group of updates are committed together.
Comment 3 feidiekfenghuang 2021-12-20 03:58:18 UTC
(In reply to Shane from comment #2)
Download
blender-3.0.0.tar.xz

# mkdir /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement


# cp -R ... .../Downloads/blender-3.0.0/release/datafiles/colormanagement/*.* /usr/ports/graphics/blender/work/stage/usr/local/share/blender/3.0/datafiles/colormanagement/

-----------
I am running blender3.0 on FreeBSD14 current!
Thanks!


***************
# git apply blender.patch
graphics/blender.patch:325: trailing whitespace.
 
graphics/blender.patch:446: trailing whitespace.
 
graphics/blender.patch:325: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
****************
# git apply --whitespace=nowarn blender.patch
???
Comment 4 Shane 2021-12-20 06:05:16 UTC
The correct fix is to update opencolorio to v2.1.0 as in bug #253491 then installing the updated ocio libs before building blender.

Manually copying the files from another build will stop the install error, you can find the same files in .../work/blender-3.0.0/release/datafiles/colormanagement

Blender will still run without ocio. Disabling the OPENCOLORIO option will give the same compiled binary without the plist issues.

The install issue is because the ports depend mechanism is finding a correct lib name "libOpenColorIO.so" but it is from the old ocio port version 1.1.1, so blenders configure stops the build of ocio features and doesn't install the relevant files, but ports still enables the plist sub to say they should be installed.


As for the patch - not sure how to get past that, it is updating patch files that must have a single space on a line.
Comment 5 feidiekfenghuang 2021-12-20 08:48:22 UTC
(In reply to Shane from comment #4)

bug #253491
graphics/opencolorio: Update 1.1.1 -> 2.0.0

Well, the correct way to install blender3.0, thank you very much for your advice, thank you!
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-02-01 17:05:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2be8b8cac94734d338532625547c5d4bf230d630

commit 2be8b8cac94734d338532625547c5d4bf230d630
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2022-02-01 16:57:51 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-02-01 17:04:15 +0000

    graphics/blender: update to 3.0.0 release (+)

    While blender does support building with python 3.10,
    numpy doesn't support 3.10 yet so keep python version at 3.9 for now.

    Thumbnailer is now a compiled app instead of py script.
    Add options for new features and some that didn't get added earlier .

    PR:             260308
    Sponsored by:   Netzkommune GmbH.

 graphics/blender/Makefile                          |  70 +-
 graphics/blender/Makefile.options                  |  20 +-
 graphics/blender/Makefile.versions                 |   4 +-
 graphics/blender/distinfo                          |   6 +-
 graphics/blender/files/blender.in (new)            |   5 +
 graphics/blender/files/patch-CMakeLists.txt        |   8 +-
 ...s_cmake_Modules_FindPythonLibsUnix.cmake (gone) |  11 -
 ...tch-intern_cycles_device_device__cpu.cpp (gone) |  38 -
 .../patch-intern_cycles_util_util__task.cpp (gone) |  11 -
 .../patch-intern_cycles_util_util__task.h (gone)   |  11 -
 .../patch-intern_cycles_util_util__tbb.h (gone)    |  17 -
 ...tf2__io__draco__compression__extension.py (new) |  11 +
 ...f2__io__draco__compression__extension.py (gone) |  19 -
 ...rce_blender_blenlib_BLI__index__range.hh (gone) |  26 -
 ...patch-source_blender_blenlib_BLI__task.h (gone) |  15 -
 ...rce_blender_blenlib_intern_task__pool.cc (gone) |  41 -
 graphics/blender/pkg-plist                         | 985 +++++++++------------
 17 files changed, 485 insertions(+), 813 deletions(-)
Comment 7 Dima Panov freebsd_committer freebsd_triage 2022-02-02 12:00:26 UTC
Committed, thanks!