summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/systemd/files/systemd-258-curl-warnings.patch38
-rw-r--r--sys-apps/systemd/systemd-258-r1.ebuild1
2 files changed, 39 insertions, 0 deletions
diff --git a/sys-apps/systemd/files/systemd-258-curl-warnings.patch b/sys-apps/systemd/files/systemd-258-curl-warnings.patch
new file mode 100644
index 000000000000..1b190b4dff20
--- /dev/null
+++ b/sys-apps/systemd/files/systemd-258-curl-warnings.patch
@@ -0,0 +1,38 @@
+https://bugs.gentoo.org/963528
+
+From 1403faeb152e24ef74230891cc6bf1875292324f Mon Sep 17 00:00:00 2001
+From: Daan De Meyer <daan.j.demeyer@gmail.com>
+Date: Fri, 19 Sep 2025 11:29:36 +0200
+Subject: [PATCH] tree-wide: Fix two curl warnings
+
+---
+ src/import/pull-job.c | 2 +-
+ src/journal-remote/journal-upload.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/import/pull-job.c b/src/import/pull-job.c
+index a0b0ef54061b9..b457c39ed1800 100644
+--- a/src/import/pull-job.c
++++ b/src/import/pull-job.c
+@@ -759,7 +759,7 @@ int pull_job_begin(PullJob *j) {
+ if (curl_easy_setopt(j->curl, CURLOPT_XFERINFODATA, j) != CURLE_OK)
+ return -EIO;
+
+- if (curl_easy_setopt(j->curl, CURLOPT_NOPROGRESS, 0) != CURLE_OK)
++ if (curl_easy_setopt(j->curl, CURLOPT_NOPROGRESS, 0L) != CURLE_OK)
+ return -EIO;
+
+ r = curl_glue_add(j->glue, j->curl);
+diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
+index d669d27274f6a..05f0dad038449 100644
+--- a/src/journal-remote/journal-upload.c
++++ b/src/journal-remote/journal-upload.c
+@@ -308,7 +308,7 @@ int start_upload(Uploader *u,
+ }
+
+ if (STRPTR_IN_SET(arg_trust, "-", "all"))
+- easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0,
++ easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L,
+ LOG_ERR, return -EUCLEAN);
+ else if (arg_trust || startswith(u->url, "https://"))
+ easy_setopt(curl, CURLOPT_CAINFO, arg_trust ?: TRUST_FILE,
diff --git a/sys-apps/systemd/systemd-258-r1.ebuild b/sys-apps/systemd/systemd-258-r1.ebuild
index 41f00eafb531..448bbe2d954c 100644
--- a/sys-apps/systemd/systemd-258-r1.ebuild
+++ b/sys-apps/systemd/systemd-258-r1.ebuild
@@ -280,6 +280,7 @@ src_prepare() {
local PATCHES=(
"${FILESDIR}/systemd-258-shared-add-missing-alloc-util.patch"
"${FILESDIR}/systemd-258-resolve-undo-change-to-return-code.patch"
+ "${FILESDIR}/systemd-258-curl-warnings.patch"
)
if ! use vanilla; then