Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/curl/files/
Date: Sun, 01 Jan 2023 18:16:41
Message-Id: 1672596981.80a271c641255263e69e23c7956789d4cf917a2d.conikost@gentoo
1 commit: 80a271c641255263e69e23c7956789d4cf917a2d
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Tue Dec 27 17:07:23 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 1 18:16:21 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80a271c6
7
8 net-misc/curl: remove unused patches
9
10 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
11 Closes: https://github.com/gentoo/gentoo/pull/28858
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 net-misc/curl/files/curl-7.84.0-easylock.patch | 30 ----------------------
15 .../curl/files/curl-7.84.0-include-sched.patch | 24 -----------------
16 2 files changed, 54 deletions(-)
17
18 diff --git a/net-misc/curl/files/curl-7.84.0-easylock.patch b/net-misc/curl/files/curl-7.84.0-easylock.patch
19 deleted file mode 100644
20 index 77ee610fc117..000000000000
21 --- a/net-misc/curl/files/curl-7.84.0-easylock.patch
22 +++ /dev/null
23 @@ -1,30 +0,0 @@
24 -From 50efb0822aa0e0ab165158dd0a26e65a2290e6d2 Mon Sep 17 00:00:00 2001
25 -From: Daniel Stenberg <daniel@××××.se>
26 -Date: Tue, 28 Jun 2022 09:00:25 +0200
27 -Subject: [PATCH] easy_lock: switch to using atomic_int instead of bool
28 -
29 -To work with more compilers without requiring separate libs to
30 -link. Like with gcc-12 for RISC-V on Linux.
31 -
32 -Reported-by: Adam Sampson
33 -Fixes #9055
34 -Closes #9061
35 ----
36 - lib/easy_lock.h | 4 ++--
37 - 1 file changed, 2 insertions(+), 2 deletions(-)
38 -
39 -diff --git a/lib/easy_lock.h b/lib/easy_lock.h
40 -index 07c85c5ffdd19..9c11bc50c5f20 100644
41 ---- a/lib/easy_lock.h
42 -+++ b/lib/easy_lock.h
43 -@@ -40,8 +40,8 @@
44 - #include <sched.h>
45 - #endif
46 -
47 --#define curl_simple_lock atomic_bool
48 --#define CURL_SIMPLE_LOCK_INIT false
49 -+#define curl_simple_lock atomic_int
50 -+#define CURL_SIMPLE_LOCK_INIT 0
51 -
52 - static inline void curl_simple_lock_lock(curl_simple_lock *lock)
53 - {
54
55 diff --git a/net-misc/curl/files/curl-7.84.0-include-sched.patch b/net-misc/curl/files/curl-7.84.0-include-sched.patch
56 deleted file mode 100644
57 index 842310d2eaab..000000000000
58 --- a/net-misc/curl/files/curl-7.84.0-include-sched.patch
59 +++ /dev/null
60 @@ -1,24 +0,0 @@
61 -https://github.com/curl/curl/commit/e2e7f54b7bea521fa8373095d0f43261a720cda0
62 -https://bugs.gentoo.org/855710
63 -
64 -From e2e7f54b7bea521fa8373095d0f43261a720cda0 Mon Sep 17 00:00:00 2001
65 -From: Daniel Stenberg <daniel@××××.se>
66 -Date: Mon, 27 Jun 2022 08:46:21 +0200
67 -Subject: [PATCH] easy_lock.h: include sched.h if available to fix build
68 -
69 -Patched-by: Harry Sintonen
70 -
71 -Closes #9054
72 ---- a/lib/easy_lock.h
73 -+++ b/lib/easy_lock.h
74 -@@ -36,6 +36,9 @@
75 -
76 - #elif defined (HAVE_ATOMIC)
77 - #include <stdatomic.h>
78 -+#if defined(HAVE_SCHED_YIELD)
79 -+#include <sched.h>
80 -+#endif
81 -
82 - #define curl_simple_lock atomic_bool
83 - #define CURL_SIMPLE_LOCK_INIT false
84 -