Bug ID | 1094777 |
---|---|
Summary | Blender cycles are broken |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Other |
Assignee | bnc-team-screening@forge.provo.novell.com |
Reporter | mati865@gmail.com |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
Blender spec file has command that removes cycles headers from the package. It results in broken GPU rendering with cycles, example with CUDA: ``` Compiling CUDA kernel ... "/usr/local/cuda/bin/nvcc" -arch=sm_61 --cubin "/usr/share/blender/2.79/scripts/addons/cycles/source/kernel/kernels/cuda/kernel.cu" -o "/home/mateusz/.cache/cycles/kernels/cycles_kernel_sm61_52CFAD0EF032EEC8D0F7A458B14C818A.cubin" -m64 --ptxas-options="-v" --use_fast_math -DNVCC -D__KERNEL_CUDA_VERSION__=92 -I"/usr/share/blender/2.79/scripts/addons/cycles/source" /usr/share/blender/2.79/scripts/addons/cycles/source/kernel/kernels/cuda/kernel.cu:21:10: fatal error: kernel/kernel_compat_cuda.h: No such file or directory #include "kernel/kernel_compat_cuda.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. CUDA kernel compilation failed, see console for details. ``` Removing `find %{buildroot}%{_datadir}/%{name}/%{_version}/scripts/ -name "*.h" -print -delete` from line 321 as shown here: https://build.opensuse.org/package/rdiff/home:mati865:branches:graphics/blender?linkrev=base&rev=2 resolves issue and Blender works fine. However it causes rpmlint errors: ``` [ 988s] A file that is needed only e.g. when developing or building software is [ 988s] included in a non-devel package. These files should go in devel packages. [ 988s] [ 988s] (none): E: badness 10450 exceeds threshold 1000, aborting. [ 988s] 3 packages and 0 specfiles checked; 209 errors, 0 warnings. [ 988s] [ 988s] [ 988s] linux-d4vu failed "build blender.spec" at Sun May 27 12:56:33 UTC 2018. [ 988s] ``` On Fedora those headers are packed in the main package causing rpmlint warnings which are ignored: https://taskotron.fedoraproject.org/artifacts/all/3f4f799e-48ae-11e8-a47d-525400fc9f92/tests.yml/blender-2.79b-3.fc28.log