mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Ports: Patch curl CMake issue
The CMake syntax was a bit too new for our toolchain's CMake. The
following patch was backported:
b2497a8d15
Relevant issue:
https://github.com/curl/curl/issues/12920
As soon as the fix lands in the next curl version, we can remove this
patch again. :^)
This commit is contained in:
parent
a203837b1f
commit
e54e2a5a4f
2 changed files with 61 additions and 0 deletions
|
@ -0,0 +1,49 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jelle Raaijmakers <jelle@gmta.nl>
|
||||
Date: Wed, 21 Feb 2024 20:15:07 +0100
|
||||
Subject: [PATCH] Backport CMake fix from upstream
|
||||
|
||||
Patch from:
|
||||
https://github.com/curl/curl/commit/b2497a8d15284dfef4fa7f032572e07b0b4b4720
|
||||
|
||||
This commit should be removed as soon as the fix has landed in a
|
||||
release.
|
||||
---
|
||||
docs/libcurl/CMakeLists.txt | 7 +++++--
|
||||
docs/libcurl/opts/CMakeLists.txt | 7 +++++--
|
||||
2 files changed, 10 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/docs/libcurl/CMakeLists.txt b/docs/libcurl/CMakeLists.txt
|
||||
index 6f0aa6490224d6f4c20e72fea1955ccc4e4f6e5a..0bc35fc97321a4e23504462b9a1504167899c157 100644
|
||||
--- a/docs/libcurl/CMakeLists.txt
|
||||
+++ b/docs/libcurl/CMakeLists.txt
|
||||
@@ -62,8 +62,11 @@ add_custom_command(OUTPUT libcurl-symbols.md
|
||||
add_manual_pages(man_MANS)
|
||||
add_custom_target(man ALL DEPENDS ${man_MANS})
|
||||
if(NOT CURL_DISABLE_INSTALL)
|
||||
- install(FILES "$<LIST:TRANSFORM,${man_MANS},PREPEND,${CMAKE_CURRENT_BINARY_DIR}/>"
|
||||
- DESTINATION ${CMAKE_INSTALL_MANDIR}/man3)
|
||||
+ unset(_src)
|
||||
+ foreach(_f ${man_MANS})
|
||||
+ list(APPEND _src "${CMAKE_CURRENT_BINARY_DIR}/${_f}")
|
||||
+ endforeach()
|
||||
+ install(FILES ${_src} DESTINATION ${CMAKE_INSTALL_MANDIR}/man3)
|
||||
endif()
|
||||
|
||||
add_subdirectory(opts)
|
||||
diff --git a/docs/libcurl/opts/CMakeLists.txt b/docs/libcurl/opts/CMakeLists.txt
|
||||
index 82844a2251ae8b0ef6ed29fe832481c35bf0e7d6..a20d0b9bf9ee9e0dc0e4820a0a20685f63aaf40a 100644
|
||||
--- a/docs/libcurl/opts/CMakeLists.txt
|
||||
+++ b/docs/libcurl/opts/CMakeLists.txt
|
||||
@@ -29,6 +29,9 @@ add_manual_pages(man_MANS)
|
||||
add_custom_target(opts-man DEPENDS ${man_MANS})
|
||||
add_dependencies(man opts-man)
|
||||
if(NOT CURL_DISABLE_INSTALL)
|
||||
- install(FILES "$<LIST:TRANSFORM,${man_MANS},PREPEND,${CMAKE_CURRENT_BINARY_DIR}/>"
|
||||
- DESTINATION ${CMAKE_INSTALL_MANDIR}/man3)
|
||||
+ unset(_src)
|
||||
+ foreach(_f ${man_MANS})
|
||||
+ list(APPEND _src "${CMAKE_CURRENT_BINARY_DIR}/${_f}")
|
||||
+ endforeach()
|
||||
+ install(FILES ${_src} DESTINATION ${CMAKE_INSTALL_MANDIR}/man3)
|
||||
endif()
|
12
Ports/curl/patches/ReadMe.md
Normal file
12
Ports/curl/patches/ReadMe.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Patches for curl on SerenityOS
|
||||
|
||||
## `0001-Backport-CMake-fix-from-upstream.patch`
|
||||
|
||||
Backport CMake fix from upstream
|
||||
|
||||
Patch from:
|
||||
https://github.com/curl/curl/commit/b2497a8d15284dfef4fa7f032572e07b0b4b4720
|
||||
|
||||
This commit should be removed as soon as the fix has landed in a
|
||||
release.
|
||||
|
Loading…
Reference in a new issue