Bug 1223862

Summary: Packages with explicit x86_v3 target fail to build
Product: [openSUSE] openSUSE.org Reporter: Christian Goll <cgoll>
Component: BuildServiceAssignee: E-mail List <screening-team-bugs>
Status: NEW --- QA Contact: Adrian Schröter <adrian.schroeter>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christian Goll 2024-05-03 14:16:03 UTC
Packages with optimized code for AVX2 (x86_v3) or AVX (x86_v4) need this code streams explicitly enabled during the build process (faiss or gpt4all) so its not possible to use the %{?suse_build_hwcaps_libs} macro.
When doing this, the packages are built, but some final scripts fail cleaning up the build root fail with the error:
```
[   51s] find: cannot delete '//.build.packages/RPMS/x86_64_v3': Directory not empty
[   51s] 
```
A failed example can found under:
https://build.opensuse.org/package/show/home:mslacken:ml/faiss_bug
where the two codestream build for AVX2 and AVX512 fail to build.