Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922324 - media-gfx/blender-4.0.1 configure fails with "string sub-command REGEX, mode REPLACE needs at least 6 arguments"
Summary: media-gfx/blender-4.0.1 configure fails with "string sub-command REGEX, mode ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Adrian
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-01-17 16:48 UTC by Sv. Lockal
Modified: 2024-03-25 18:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sv. Lockal 2024-01-17 16:48:25 UTC
media-gfx/blender-4.0.1 configure fails with:

CMake Error at build_files/cmake/macros.cmake:752 (string):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  build_files/cmake/macros.cmake:774 (remove_c_flag)
  build_files/cmake/macros.cmake:819 (remove_cc_flag)
  intern/audaspace/CMakeLists.txt:5 (remove_strict_flags)

The problem was already fixed in master - https://github.com/blender/blender/commit/ecd307041e4181f721bf5d2248c02ffe980edcba

Applying this patch helps.

Additional information:

dev-build/cmake:           3.28.1-r1::gentoo

USE="X color-management cycles gmp nls openexr openmp pugixml sdl sndfile tiff wayland webp -alembic -bullet -collada -cuda -cycles-bin-kernels -debug -doc -embree -ffmpeg -fftw -fluid -jack -jemalloc -jpeg2k -man -nanovdb -ndof -oidn -openal -openpgl -opensubdiv -openvdb -optix -osl -pdf -potrace -pulseaudio -tbb -test -valgrind"
Comment 1 Larry the Git Cow gentoo-dev 2024-01-21 11:21:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32822cad445a3b80067723488e8d9fa487dfc03d

commit 32822cad445a3b80067723488e8d9fa487dfc03d
Author:     Sv. Lockal <lockalsash@gmail.com>
AuthorDate: 2024-01-21 09:47:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-21 11:20:41 +0000

    media-gfx/blender: fix error "string sub-command REGEX, mode REPLACE needs at least 6 arguments"
    
    See also: https://github.com/blender/blender/commit/ecd307041e4181f721bf5d2248c02ffe980edcba
    Closes: https://bugs.gentoo.org/922324
    
    Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/blender-4.0.1.ebuild             |  4 +++
 .../files/blender-4.0.1-fix-cflags-cleaner.patch   | 39 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2024-03-25 18:57:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a71b3f62470c0cc9273206f697fb31e72492020

commit 3a71b3f62470c0cc9273206f697fb31e72492020
Author:     Sv. Lockal <lockalsash@gmail.com>
AuthorDate: 2024-01-17 16:51:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-25 18:54:55 +0000

    media-gfx/blender: fix error "string sub-command REGEX, mode REPLACE needs at least 6 arguments"
    
    See also: https://github.com/blender/blender/commit/ecd307041e4181f721bf5d2248c02ffe980edcba
    Closes: https://bugs.gentoo.org/922324
    Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/blender-4.0.2.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)