Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918402 - media-gfx/blender-4.0.1: fails to install with USE="man"
Summary: media-gfx/blender-4.0.1: fails to install with USE="man"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PATCH, PullRequest
: 920287 (view as bug list)
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2023-11-24 14:35 UTC by Florian Badie
Modified: 2024-01-21 17:08 UTC (History)
8 users (show)

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


Attachments
build.log (build.log.gz,323.28 KB, application/gzip)
2023-11-24 14:36 UTC, Florian Badie
Details
blender-4.0.1-man-j1.patch (blender-4.0.1-man-j1.patch,484 bytes, patch)
2023-11-25 12:05 UTC, Paul Zander
Details | Diff
build.log.xz (build.log.xz,197.21 KB, application/x-xz)
2024-01-21 12:12 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
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