Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 918402

Summary: media-gfx/blender-4.0.1: fails to install with USE="man"
Product: Gentoo Linux Reporter: Florian Badie <florianbadie>
Component: Current packagesAssignee: Paul Zander <negril.nx+gentoo>
Status: RESOLVED FIXED    
Severity: minor CC: agrigo2001, bearcatsandor, darkdefende, einfair, gentoo, leonchik1976, lockalsash, proxy-maint
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=922324
https://github.com/gentoo/gentoo/pull/34941
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 351559    
Attachments: build.log
blender-4.0.1-man-j1.patch
build.log.xz

Description Florian Badie 2023-11-24 14:35:13 UTC
CMake fails to find the man file in the install step.

Reproducible: Always

Steps to Reproduce:
1. Enable media-gfx/blender man USE flag
2. emerge media-gfx/blender
Actual Results:  
The command fails in the install step.

Expected Results:  
Blender installs correctly with USE="man"

I don't know why I enabled the man USE flag so I'll just install it without it now.
Comment 1 Florian Badie 2023-11-24 14:36:38 UTC
Created attachment 875516 [details]
build.log
Comment 2 Paul Zander 2023-11-25 12:04:57 UTC
There is a race condition in the install process if USE="man" is set at https://projects.blender.org/blender/blender/src/branch/main/source/creator/CMakeLists.txt#L1805.

I've attached a patch that can be used to install with USE="man" that I'd prefer not to merge and rather get the problem properly fixed.
Comment 3 Paul Zander 2023-11-25 12:05:37 UTC
Created attachment 875615 [details, diff]
blender-4.0.1-man-j1.patch
Comment 4 Sebastian Parborg 2023-11-25 15:59:33 UTC
Are these two upstream PRs related or is this an other issue?

https://projects.blender.org/blender/blender/pulls/115127
https://projects.blender.org/blender/blender/pulls/115320
Comment 5 Paul Zander 2023-11-25 16:24:21 UTC
This is unrelated.

Two cmake targets are created here:
https://projects.blender.org/blender/blender/src/branch/main/source/creator/CMakeLists.txt#L1805

https://projects.blender.org/blender/blender/src/branch/main/source/creator/CMakeLists.txt#L1841

When the install part is run with enough parallelism the second install call is issued before the first one is finished or has even started, because there is no dependency between blender.1 being created and it being installed.

I haven't quite gotten to look for a proper solution yet, because the whole compiling blender.1 in install is not pretty and doesn't fit the preferred workflow in gentoo. I was going to going to open an issue with upstream once I had anything better.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-18 22:39:56 UTC
*** Bug 920287 has been marked as a duplicate of this bug. ***
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-21 11:22:40 UTC
Fixed in bug 922324
Comment 8 Leonid Kopylov 2024-01-21 12:12:14 UTC
Created attachment 882762 [details]
build.log.xz
Comment 9 Leonid Kopylov 2024-01-21 12:12:31 UTC
still fails to build with USE=man. build.log attached