diff options
Diffstat (limited to 'meta-oe/recipes-extended/7zip/bit7z/0001-cmake-disable-filesystem-gitclone.patch')
| -rw-r--r-- | meta-oe/recipes-extended/7zip/bit7z/0001-cmake-disable-filesystem-gitclone.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/7zip/bit7z/0001-cmake-disable-filesystem-gitclone.patch b/meta-oe/recipes-extended/7zip/bit7z/0001-cmake-disable-filesystem-gitclone.patch new file mode 100644 index 0000000000..917b70f58e --- /dev/null +++ b/meta-oe/recipes-extended/7zip/bit7z/0001-cmake-disable-filesystem-gitclone.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | Subject: [PATCH] cmake: disable filesystem gitclone | ||
| 2 | |||
| 3 | In Yocto we don't download filesystem, it is satisfied from source dir. | ||
| 4 | This Dependencies.cmake file would try to download filesystem even if it is satisfied. | ||
| 5 | |||
| 6 | Fix error log as following: | ||
| 7 | | fatal: unable to access 'https://github.com/rikyoz/filesystem.git/': Could not resolve host: github.com | ||
| 8 | | Had to git clone more than once: 3 times. | ||
| 9 | | CMake Error at bit7z/4.0.11/build/_deps/ghc_filesystem-subbuild/ghc_filesystem-populate-prefix/tmp/ghc_filesystem-populate-gitclone.cmake:50 (message): | ||
| 10 | | Failed to clone repository: 'https://github.com/rikyoz/filesystem.git' | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [OE-specific] | ||
| 13 | |||
| 14 | Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com> | ||
| 15 | --- | ||
| 16 | cmake/Dependencies.cmake | 3 +-- | ||
| 17 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake | ||
| 20 | index 110d9c2b..dc1dead8 100644 | ||
| 21 | --- a/cmake/Dependencies.cmake | ||
| 22 | +++ b/cmake/Dependencies.cmake | ||
| 23 | @@ -39,10 +39,9 @@ if( NOT USE_STANDARD_FILESYSTEM OR NOT STANDARD_FILESYSTEM_COMPILES OR BIT7Z_BUI | ||
| 24 | CPMAddPackage( NAME ghc_filesystem | ||
| 25 | GITHUB_REPOSITORY rikyoz/filesystem | ||
| 26 | GIT_TAG b99c2aebd5ddd6fb2f190731ba80b949fc3842b5 | ||
| 27 | - DOWNLOAD_ONLY YES ) | ||
| 28 | + SOURCE_DIR "${CPM_SOURCE_CACHE}/ghc_filesystem" ) | ||
| 29 | if( ghc_filesystem_ADDED ) | ||
| 30 | message( STATUS "ghc::filesystem source code available at ${ghc_filesystem_SOURCE_DIR}" ) | ||
| 31 | - add_library( ghc_filesystem INTERFACE IMPORTED ) | ||
| 32 | target_include_directories( ghc_filesystem SYSTEM INTERFACE ${ghc_filesystem_SOURCE_DIR}/include ) | ||
| 33 | endif() | ||
| 34 | endif() | ||
| 35 | -- | ||
| 36 | 2.43.0 | ||
| 37 | |||
