From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/blender/
Date: Thu, 08 May 2025 06:29:35 +0000 (UTC) [thread overview]
Message-ID: <1746685614.ab0afd5cef5a76e47c8d4349c639e33c98b6f3e2.sam@gentoo> (raw)
commit: ab0afd5cef5a76e47c8d4349c639e33c98b6f3e2
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Tue May 6 21:12:14 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May 8 06:26:54 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab0afd5c
media-gfx/blender: update 9999
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41967
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-gfx/blender/blender-9999.ebuild | 136 ++++++++++++++++++----------------
media-gfx/blender/metadata.xml | 3 +
2 files changed, 77 insertions(+), 62 deletions(-)
diff --git a/media-gfx/blender/blender-9999.ebuild b/media-gfx/blender/blender-9999.ebuild
index decfddd094f0..abd723cdd1e4 100644
--- a/media-gfx/blender/blender-9999.ebuild
+++ b/media-gfx/blender/blender-9999.ebuild
@@ -48,19 +48,14 @@ if [[ "${PV}" == *9999* ]]; then
EGIT_BRANCH="blender-v${BLENDER_BRANCH}-release"
fi
- RESTRICT="!test? ( test )"
else
SRC_URI="
https://download.blender.org/source/${P}.tar.xz
+ test? (
+ https://download.blender.org/source/blender-test-data-${BLENDER_BRANCH}.0.tar.xz
+ )
"
- # BUG upstream returns LFS references instead of files
- # SRC_URI+="
- # test? (
- # https://projects.blender.org/blender/blender-test-data/archive/blender-v${BLENDER_BRANCH}-release.tar.gz
- # )
- # "
KEYWORDS="~amd64 ~arm ~arm64"
- RESTRICT="test" # the test archive contains LFS references
fi
# assets is CC0-1.0
@@ -72,7 +67,7 @@ SLOT="${BLENDER_BRANCH}"
IUSE="
alembic +bullet collada +color-management cuda +cycles +cycles-bin-kernels
debug doc +embree +ffmpeg +fftw +fluid +gmp gnome hip jack
- jemalloc jpeg2k man +nanovdb ndof nls +oidn oneapi openal +openexr +opengl +openpgl
+ jemalloc jpeg2k man manifold +nanovdb ndof nls +oidn oneapi openal +openexr +opengl +openpgl
+opensubdiv +openvdb optix osl pipewire +pdf +potrace +pugixml pulseaudio
renderdoc sdl +sndfile +tbb test +tiff +truetype valgrind vulkan wayland +webp X
"
@@ -81,6 +76,8 @@ if [[ "${PV}" == *9999* ]]; then
IUSE+="experimental"
fi
+RESTRICT="!test? ( test )"
+
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|| ( opengl vulkan )
alembic? ( openexr )
@@ -139,6 +136,7 @@ RDEPEND="${PYTHON_DEPS}
jack? ( virtual/jack )
jemalloc? ( dev-libs/jemalloc:= )
jpeg2k? ( media-libs/openjpeg:2= )
+ manifold? ( >sci-mathematics/manifold-3.0.1 )
ndof? (
app-misc/spacenavd
dev-libs/libspnav
@@ -157,7 +155,7 @@ RDEPEND="${PYTHON_DEPS}
>=media-gfx/openvdb-11.0.0:=[nanovdb?]
dev-libs/c-blosc:=
)
- optix? ( dev-libs/optix )
+ optix? ( <dev-libs/optix-9:= )
osl? (
>=media-libs/osl-1.13:=[${LLVM_USEDEP}]
media-libs/mesa[${LLVM_USEDEP}]
@@ -309,11 +307,10 @@ src_unpack() {
else
default
- # BUG upstream returns LFS references instead of files
- # if use test; then
- # mkdir -p "${S}/tests/data/" || die
- # mv blender-test-data/* "${S}/tests/data/" || die
- # fi
+ # TODO
+ if use test && [[ ${PV} != ${SLOT}.0 ]] ; then
+ mv "blender-${BLENDER_BRANCH}.0/tests/"* "${S}/tests" || die
+ fi
fi
}
@@ -343,6 +340,9 @@ src_prepare() {
-i CMakeLists.txt \
|| die CMAKE_INSTALL_PREFIX_WITH_CONFIG
+ # WITH_SYSTEM_GLOG=yes
+ cmake_run_in extern cmake_comment_add_subdirectory glog
+
mv \
"release/freedesktop/icons/scalable/apps/blender.svg" \
"release/freedesktop/icons/scalable/apps/blender-${BV}.svg" \
@@ -391,6 +391,8 @@ src_prepare() {
else
cmake_comment_add_subdirectory tests
fi
+
+ rm -rf extern/gflags || die
}
src_configure() {
@@ -428,6 +430,7 @@ src_configure() {
-DWITH_HEADLESS="$(usex !X "$(usex !wayland)")"
-DWITH_INPUT_NDOF="$(usex ndof)"
-DWITH_INTERNATIONAL="$(usex nls)"
+ -DWITH_MANIFOLD="$(usex manifold)"
-DWITH_MATERIALX="no" # TODO: Package MaterialX
-DWITH_NANOVDB="$(usex nanovdb)"
-DWITH_OPENCOLLADA="$(usex collada)"
@@ -464,7 +467,7 @@ src_configure() {
# GHOST Options:
-DWITH_GHOST_WAYLAND="$(usex wayland)"
- -DWITH_GHOST_WAYLAND_APP_ID="blender-${BV}"
+ # -DWITH_GHOST_WAYLAND_APP_ID="blender-${BV}"
-DWITH_GHOST_WAYLAND_DYNLOAD="no"
-DWITH_GHOST_X11="$(usex X)"
# -DWITH_GHOST_XDND=ON
@@ -499,15 +502,15 @@ src_configure() {
# Python:
# -DWITH_PYTHON=ON
-DWITH_PYTHON_INSTALL="no"
- # -DWITH_PYTHON_INSTALL_NUMPY="no"
- # -DWITH_PYTHON_INSTALL_ZSTANDARD="no"
+ -DWITH_PYTHON_INSTALL_NUMPY="no"
+ -DWITH_PYTHON_INSTALL_ZSTANDARD="no"
# -DWITH_PYTHON_MODULE="no"
- # -DWITH_PYTHON_SAFETY=
+ -DWITH_PYTHON_SAFETY="OFF"
-DWITH_PYTHON_SECURITY="yes"
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DPYTHON_LIBRARY="$(python_get_library_path)"
-DPYTHON_VERSION="${EPYTHON/python/}"
- -DWITH_DRACO="no" # TODO: Package Draco
+ -DWITH_DRACO="yes" # TODO: Package Draco # NOTE use bundled for now
# Modifiers:
-DWITH_MOD_FLUID="$(usex fluid)"
@@ -572,14 +575,11 @@ src_configure() {
fi
if use hip; then
- # local -x HIP_PATH="$(hipconfig -p)"
mycmakeargs+=(
- # -DROCM_PATH="$(hipconfig -R)"
-DHIP_ROOT_DIR="$(hipconfig -p)"
-DHIP_HIPCC_FLAGS="-fcf-protection=none"
- # -DHIP_LINKER_EXECUTABLE="$(get_llvm_prefix)/bin/clang++"
-DCMAKE_HIP_LINK_EXECUTABLE="$(get_llvm_prefix)/bin/clang++"
-DCYCLES_HIP_BINARIES_ARCH="$(get_amdgpu_flags)"
@@ -635,6 +635,7 @@ src_configure() {
# NOTE in lieu of a FEATURE/build_options
if [[ "${EXPENSIVE_TESTS:-0}" -gt 0 ]]; then
+ einfo "running expensive tests EXPENSIVE_TESTS=${EXPENSIVE_TESTS}"
mycmakeargs+=(
-DWITH_CYCLES_TEST_OSL="$(usex osl)"
@@ -649,6 +650,7 @@ src_configure() {
-DWITH_GPU_RENDER_TESTS_VULKAN="$(usex vulkan)"
-DWITH_SYSTEM_PYTHON_TESTS="yes"
+ -DTEST_SYSTEM_PYTHON_EXE="${PYTHON}"
)
if [[ "${PV}" == *9999* && "${BVC}" == "alpha" ]] && use experimental; then
@@ -690,20 +692,28 @@ src_test() {
if use cuda; then
cuda_add_sandbox -w
- addwrite "/dev/char/"
+ addwrite "/proc/self/task"
+ addpredict "/dev/char/"
fi
local -x CMAKE_SKIP_TESTS=(
- "^script_pyapi_bpy_driver_secure_eval$"
- "^cycles_image_colorspace_cpu$"
- "^cycles_image_data_types_cpu$"
- "^cycles_image_mapping_cpu$"
- "^cycles_osl_cpu$"
- "^cycles_image_data_types_optix$"
"^compositor_cpu_color$"
"^compositor_cpu_filter$"
+ "^cycles_image_colorspace_cpu$"
+ "^script_pyapi_bpy_driver_secure_eval$"
)
+ if [[ "${RUN_FAILING_TESTS:-0}" -eq 0 ]]; then
+ einfo "not running failing tests RUN_FAILING_TESTS=${RUN_FAILING_TESTS}"
+ CMAKE_SKIP_TESTS+=(
+ "^cycles_bsdf_cuda$"
+ "^cycles_image_data_types_cpu$"
+ "^cycles_image_data_types_optix$"
+ "^cycles_image_mapping_cpu$"
+ "^cycles_osl_cpu$"
+ )
+ fi
+
if ! has_version "media-libs/openusd"; then
CMAKE_SKIP_TESTS+=(
# from pxr import Usd # ModuleNotFoundError: No module named 'pxr'
@@ -718,46 +728,48 @@ src_test() {
)
fi
+ # oiio can't find webp due to missing cmake files # 937031
+ sed -e "s/ WEBP//g" -i "${BUILD_DIR}/tests/python/CTestTestfile.cmake" || die
+
# For debugging, print out all information.
local -x VERBOSE="$(usex debug "true" "false")"
+ "${VERBOSE}" && einfo "VERBOSE=${VERBOSE}"
# Show the window in the foreground.
- local -x USE_WINDOW="false"
- local -x USE_DEBUG="false"
+ # local -x USE_WINDOW="true" # non-zero
+ [[ -v USE_WINDOW ]] && einfo "USE_WINDOW=${USE_WINDOW}"
- eqawarn "VERBOSE=${VERBOSE}"
- eqawarn "USE_WINDOW=${USE_WINDOW}"
- eqawarn "USE_DEBUG=${USE_DEBUG}"
- eqawarn "BLENDER_SYSTEM_RESOURCES=${BLENDER_SYSTEM_RESOURCES}"
- eqawarn "EXPENSIVE_TESTS=${EXPENSIVE_TESTS}"
+ # local -x USE_DEBUG="true" # non-zero
+ [[ -v USE_DEBUG ]] && einfo "USE_DEBUG=${USE_DEBUG}"
if [[ "${EXPENSIVE_TESTS:-0}" -gt 0 ]]; then
- if [[ "${USE_WINDOW}" = "true" ]] &&
- [[ "${PV}" == *9999* && "${BVC}" == "alpha" ]] &&
- use experimental && use wayland; then
- # This runs weston
- xdg_environment_reset
- fi
+ einfo "running expensive tests EXPENSIVE_TESTS=${EXPENSIVE_TESTS}"
+ # if [[ "${PV}" == *9999* && "${BVC}" == "alpha" ]] &&
+ # use experimental && use wayland; then
+ # # This runs weston
+ # xdg_environment_reset
+ # fi
- if [[ "${USE_WINDOW}" == "true" ]]; then
- xdg_environment_reset
- # WITH_GPU_RENDER_TESTS_HEADED
- if use wayland; then
- local compositor exit_code
- local logfile=${T}/weston.log
- weston --xwayland --backend=headless --socket=wayland-5 --idle-time=0 2>"${logfile}" &
- compositor=$!
- local -x WAYLAND_DISPLAY=wayland-5
- sleep 1 # wait for xwayland to be up
- local -x DISPLAY="$(grep "xserver listening on display" "${logfile}" | cut -d ' ' -f 5)"
-
- cmake_src_test
-
- exit_code=$?
- kill "${compositor}"
- elif use X; then
- virtx cmake_src_test
- fi
+ xdg_environment_reset
+ # WITH_GPU_RENDER_TESTS_HEADED
+ if use wayland; then
+ local compositor exit_code
+ local logfile=${T}/weston.log
+ weston --xwayland --backend=headless --socket=wayland-5 --idle-time=0 2>"${logfile}" &
+ compositor=$!
+ local -x WAYLAND_DISPLAY=wayland-5
+ sleep 1 # wait for xwayland to be up
+ # TODO use eapi9-pipestatus
+ local -x DISPLAY="$(grep "xserver listening on display" "${logfile}" | cut -d ' ' -f 5)"
+
+ cmake_src_test
+
+ exit_code=$?
+ kill "${compositor}"
+ elif use X; then
+ virtx cmake_src_test
+ else
+ cmake_src_test
fi
else
cmake_src_test
diff --git a/media-gfx/blender/metadata.xml b/media-gfx/blender/metadata.xml
index ad273f3c5990..0452fbb36970 100644
--- a/media-gfx/blender/metadata.xml
+++ b/media-gfx/blender/metadata.xml
@@ -53,6 +53,9 @@
<flag name="fluid">
Adds fluid simulation support via the built-in Mantaflow library.
</flag>
+ <flag name="manifold">
+ Enable Manifold render backend via <pkg>sci-mathematics/manifold</pkg>
+ </flag>
<flag name="nanovdb">
Enable nanoVDB support in Cycles. Uses less memory than regular openVDB when rendering.
</flag>
next reply other threads:[~2025-05-08 6:30 UTC|newest]
Thread overview: 210+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-08 6:29 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-08 6:29 [gentoo-commits] repo/gentoo:master commit in: media-gfx/blender/ Sam James
2025-05-08 6:29 Sam James
2025-05-08 6:29 Sam James
2025-05-08 6:29 Sam James
2025-04-23 7:40 Sam James
2025-04-22 0:41 Sam James
2025-04-17 6:45 Ionen Wolkens
2025-04-10 20:15 Conrad Kostecki
2025-04-06 15:56 Conrad Kostecki
2025-04-06 15:38 Conrad Kostecki
2025-03-30 16:17 Ionen Wolkens
2025-03-14 6:19 Sam James
2025-03-14 6:19 Sam James
2025-03-14 6:19 Sam James
2025-03-11 9:04 Ionen Wolkens
2025-03-07 13:22 Sam James
2025-02-13 8:53 Joonas Niilola
2025-01-06 7:58 Joonas Niilola
2024-12-22 1:30 Sam James
2024-12-22 1:30 Sam James
2024-12-01 8:34 Sam James
2024-12-01 8:34 Sam James
2024-12-01 8:34 Sam James
2024-12-01 8:34 Sam James
2024-11-23 7:52 Joonas Niilola
2024-11-23 7:27 Joonas Niilola
2024-11-22 18:39 Joonas Niilola
2024-09-04 9:32 Sam James
2024-09-04 9:22 Sam James
2024-09-04 9:22 Sam James
2024-09-04 9:22 Sam James
2024-09-04 9:22 Sam James
2024-07-15 11:27 Joonas Niilola
2024-07-05 23:30 Sam James
2024-06-29 16:51 Sam James
2024-06-29 16:51 Sam James
2024-06-02 21:14 Sam James
2024-04-23 21:00 Sam James
2024-04-12 13:08 Joonas Niilola
2024-04-11 16:29 Sam James
2024-04-09 23:01 Sam James
2024-04-07 13:46 Sam James
2024-03-25 18:57 Sam James
2024-03-25 18:57 Sam James
2024-03-25 18:57 Sam James
2024-03-25 18:57 Sam James
2024-03-25 18:57 Sam James
2024-03-25 18:57 Sam James
2024-03-25 18:57 Sam James
2024-03-25 18:57 Sam James
2024-03-25 18:57 Sam James
2024-02-20 13:13 Joonas Niilola
2024-01-21 11:21 Sam James
2023-12-11 13:33 Joonas Niilola
2023-11-22 11:38 Sam James
2023-10-27 13:59 Florian Schmaus
2023-10-27 3:20 Sam James
2023-10-27 2:59 Sam James
2023-10-27 2:34 Sam James
2023-10-03 16:27 Sam James
2023-09-26 20:48 Sam James
2023-09-26 20:48 Sam James
2023-07-16 18:46 Sam James
2023-07-16 18:46 Sam James
2023-07-16 18:46 Sam James
2023-07-16 18:46 Sam James
2023-07-16 18:46 Sam James
2023-06-17 13:18 Andreas Sturmlechner
2023-06-16 22:59 Sam James
2023-06-10 22:56 Andreas Sturmlechner
2023-06-10 20:47 Andreas Sturmlechner
2023-05-14 17:11 Sam James
2023-05-01 15:15 Sam James
2023-05-01 15:15 Sam James
2023-05-01 15:15 Sam James
2023-05-01 1:30 Sam James
2023-04-16 3:30 Sam James
2023-04-16 3:30 Sam James
2023-04-16 3:30 Sam James
2023-04-16 3:30 Sam James
2023-04-16 3:30 Sam James
2023-04-16 3:30 Sam James
2023-02-17 5:29 Sam James
2023-02-17 5:29 Sam James
2023-02-17 5:29 Sam James
2023-02-17 5:29 Sam James
2023-02-17 5:29 Sam James
2023-02-17 5:29 Sam James
2023-02-04 11:33 Joonas Niilola
2023-01-05 5:21 Sam James
2023-01-05 5:21 Sam James
2023-01-05 5:20 Sam James
2023-01-05 5:20 Sam James
2022-12-18 8:32 Sam James
2022-12-18 8:32 Sam James
2022-12-17 19:28 Arthur Zamarin
2022-12-16 4:30 Sam James
2022-09-29 23:53 Sam James
2022-09-29 23:53 Sam James
2022-09-29 23:53 Sam James
2022-09-25 12:29 Ionen Wolkens
2022-08-11 10:55 Sam James
2022-08-11 7:33 Joonas Niilola
2022-08-11 7:33 Joonas Niilola
2022-08-11 7:33 Joonas Niilola
2022-07-09 5:57 Sam James
2022-06-20 3:06 Sam James
2022-06-16 16:30 Sam James
2022-06-16 0:39 Sam James
2022-06-15 12:29 Sam James
2022-06-07 10:27 Joonas Niilola
2022-05-20 11:25 Joonas Niilola
2022-05-20 11:25 Joonas Niilola
2022-05-20 11:25 Joonas Niilola
2022-05-20 11:25 Joonas Niilola
2022-04-17 14:56 Joonas Niilola
2022-04-17 14:56 Joonas Niilola
2022-04-01 0:09 Sam James
2022-03-14 18:51 Sam James
2022-03-14 18:43 Sam James
2022-03-14 18:43 Sam James
2022-02-28 5:21 Sam James
2022-02-26 2:16 Sam James
2022-02-20 21:10 Sam James
2022-02-20 21:10 Sam James
2022-02-20 21:10 Sam James
2022-02-20 4:49 Sam James
2022-02-20 4:45 Sam James
2022-02-18 2:20 Sam James
2022-02-18 2:20 Sam James
2022-02-18 2:20 Sam James
2022-02-15 20:26 Sam James
2022-02-12 15:38 Sam James
2022-02-12 15:01 Sam James
2022-02-12 4:49 Sam James
2022-02-12 4:36 Sam James
2022-02-12 4:35 Sam James
2022-02-12 4:35 Sam James
2022-02-12 4:35 Sam James
2022-02-12 4:35 Sam James
2022-02-07 4:20 Sam James
2021-12-04 0:54 Sam James
2021-12-04 0:54 Sam James
2021-12-03 22:51 Sam James
2021-12-03 22:51 Sam James
2021-10-31 5:53 Sam James
2021-10-31 5:53 Sam James
2021-10-30 17:18 Sam James
2021-10-29 22:23 Sam James
2021-09-19 3:09 Sam James
2021-09-19 3:09 Sam James
2021-08-18 23:34 Sam James
2021-08-18 23:34 Sam James
2021-08-04 2:15 Sam James
2021-08-04 2:15 Sam James
2021-08-04 2:15 Sam James
2021-06-12 7:35 Sam James
2021-06-12 7:19 Sam James
2021-06-10 3:35 Sam James
2021-06-10 3:35 Sam James
2021-06-10 0:51 Sam James
2021-05-31 23:49 Sam James
2021-05-31 20:53 Michał Górny
2021-05-06 21:36 Sam James
2021-03-05 18:39 Sam James
2021-02-22 9:51 Joonas Niilola
2021-02-22 9:51 Joonas Niilola
2021-02-22 9:51 Joonas Niilola
2021-02-22 9:51 Joonas Niilola
2021-02-22 7:12 Sam James
2020-12-17 15:32 Joonas Niilola
2020-12-03 13:04 Joonas Niilola
2020-12-03 7:32 Joonas Niilola
2020-12-03 7:32 Joonas Niilola
2020-12-03 7:32 Joonas Niilola
2020-12-03 7:32 Joonas Niilola
2020-12-03 7:32 Joonas Niilola
2020-11-08 10:29 Sam James
2020-10-10 7:37 Sam James
2020-10-06 2:13 Sam James
2020-08-24 13:42 Sam James
2020-08-24 13:42 Sam James
2020-04-26 10:04 Mikle Kolyada
2020-03-01 18:36 Matthias Maier
2020-02-09 16:47 Michał Górny
2019-09-13 15:43 Michał Górny
2019-06-10 19:51 Andreas Sturmlechner
2019-02-28 14:56 Mikle Kolyada
2019-02-27 4:25 Aaron Bauman
2018-08-28 14:43 Jonathan Scruggs
2018-08-28 14:43 Jonathan Scruggs
2018-08-15 17:21 Jonathan Scruggs
2018-04-20 19:43 David Seifert
2018-03-30 16:04 Aaron Bauman
2018-03-24 12:01 Michał Górny
2018-01-27 17:19 Jonathan Scruggs
2017-12-25 16:09 David Seifert
2017-01-29 17:04 Michael Palimaka
2017-01-28 15:45 Lars Wendler
2017-01-28 13:47 David Seifert
2017-01-15 13:34 David Seifert
2017-01-10 15:22 Agostino Sarubbo
2016-12-20 14:30 Tobias Klausmann
2016-10-28 5:29 Patrick Lauer
2016-10-27 18:34 David Seifert
2016-10-07 16:38 Patrice Clement
2016-06-16 20:10 Amy Winston
2016-05-28 8:30 Pacho Ramos
2015-08-14 23:18 Julian Ospald
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1746685614.ab0afd5cef5a76e47c8d4349c639e33c98b6f3e2.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox