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

Bug 831194

Summary: sys-devel/clang-14.0.0.9999: src_prepare fails to apply patches
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: RESOLVED OBSOLETE    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2022-01-14 13:11:06 UTC
* Fetching https://github.com/llvm/llvm-project.git ...
git fetch https://github.com/llvm/llvm-project.git +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/sys-devel/clang/14/__main__ refs/git-r3/HEAD
 * Checking out https://github.com/llvm/llvm-project.git to . ...
git checkout --quiet refs/git-r3/HEAD -- clang clang-tools-extra
GIT update -->
   repository:               https://github.com/llvm/llvm-project.git
   at the commit:            96acdfa0de3e574453d3f62aa7a71397ac0120bb
>>> Unpacking llvm-gentoo-patchset-9999-2.tar.xz to /var/tmp/portage/sys-devel/clang-14.0.0.9999/work
>>> Source unpacked in /var/tmp/portage/sys-devel/clang-14.0.0.9999/work
>>> Preparing source in /var/tmp/portage/sys-devel/clang-14.0.0.9999/work/clang ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sys-devel/clang-14.0.0.9999/work/clang"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/sys-devel/clang-14.0.0.9999/work/x/y/clang"
 * Applying patches from /var/tmp/portage/sys-devel/clang-14.0.0.9999/work/llvm-gentoo-patchset-9999-2 ...
 *   0002-clang-Apply-Gentoo-s-prefix-dirs.patch.patch ...
patching file clang/lib/Driver/ToolChains/Darwin.cpp
Hunk #1 succeeded at 1919 (offset 102 lines).
Hunk #2 succeeded at 2139 (offset 121 lines).
Hunk #3 succeeded at 2188 (offset 121 lines).
Hunk #4 succeeded at 2240 (offset 121 lines).
can't find file to patch at input line 78
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/clang/lib/Frontend/InitHeaderSearch.cpp b/clang/lib/Frontend/InitHeaderSearch.cpp
|index ba9f96384f81..bee365015c70 100644
|--- a/clang/lib/Frontend/InitHeaderSearch.cpp
|+++ b/clang/lib/Frontend/InitHeaderSearch.cpp
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored                                                                                                                                                                                                                                                                                                                                             [ !! ]
 * ERROR: sys-devel/clang-14.0.0.9999::gentoo failed (prepare phase):
 *   patch -p1  failed with /var/tmp/portage/sys-devel/clang-14.0.0.9999/work/llvm-gentoo-patchset-9999-2/0002-clang-Apply-Gentoo-s-prefix-dirs.patch.patch


"clang/lib/Frontend/InitHeaderSearch.cpp" is no longer present, I haven't figured out what happened upstream.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-07-29 06:57:37 UTC
14.0.0.9999 is gone.