public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ingvar Hagelund <ingvar@redpill-linpro.com>
To: git-commits@fedoraproject.org
Subject: [rpms/varnish] f45: small upstream patch for 32bit builds
Date: Mon, 21 Sep 2026 20:43:39 GMT [thread overview]
Message-ID: <179002341986.1.1113076732305432825.rpms-varnish-7ddde012d668@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/varnish
Branch : f45
Commit : 7ddde012d668c5235268ee25884d41d8497ea9ed
Author : Ingvar Hagelund <ingvar@redpill-linpro.com>
Date : 2026-09-21T17:40:02+02:00
Stats : +57/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/varnish/c/7ddde012d668c5235268ee25884d41d8497ea9ed?branch=f45
Log:
small upstream patch for 32bit builds
---
diff --git a/32bit_build_fixes.patch b/32bit_build_fixes.patch
new file mode 100644
index 0000000..313be2f
--- /dev/null
+++ b/32bit_build_fixes.patch
@@ -0,0 +1,52 @@
+From 9bba5daeb12decd506122533f98f837a7ff47f4f Mon Sep 17 00:00:00 2001
+From: Daniel Néri <dne+commits@rb67.eu>
+Date: Thu, 17 Sep 2026 13:20:59 +0200
+Subject: [PATCH] cache_http: Fix incorrect format string length modifier
+
+Breaks build on 32-bit architectures, since sizeof (intmax_t) != sizeof (ssize_t).
+---
+ bin/vinyld/cache/cache_http.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bin/vinyld/cache/cache_http.c b/bin/vinyld/cache/cache_http.c
+index 7984ad7..e4839ce 100644
+--- a/bin/vinyld/cache/cache_http.c
++++ b/bin/vinyld/cache/cache_http.c
+@@ -1052,7 +1052,7 @@ http_GetContentLength(struct http *hp)
+
+ if (cl >= 0 && need) {
+ // we have deleted all headers above
+- http_PrintfHeader(hp, "Content-Length: %jd", cl);
++ http_PrintfHeader(hp, "Content-Length: %zd", cl);
+ }
+
+ return (cl);
+--
+libgit2 1.9.7
+
+From faf9d75632f0579e3752a3696ad1479aaba8ef54 Mon Sep 17 00:00:00 2001
+From: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
+Date: Thu, 17 Sep 2026 12:59:10 +0200
+Subject: [PATCH] vcc_expr: Proper intmax_t format for BYTES expressions
+
+Spotted by @daghf
+---
+ lib/libvcc/vcc_expr.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/libvcc/vcc_expr.c b/lib/libvcc/vcc_expr.c
+index 68ba4b0..12a5257 100644
+--- a/lib/libvcc/vcc_expr.c
++++ b/lib/libvcc/vcc_expr.c
+@@ -740,7 +740,7 @@ vcc_number(struct vcc *tl, struct expr **e, vcc_type_t fmt, const char *sign)
+ if (fmt == BYTES) {
+ vcc_ByteVal(tl, &vi);
+ ERRCHK(tl);
+- e1 = vcc_mk_expr(BYTES, "%ju", (intmax_t)vi);
++ e1 = vcc_mk_expr(BYTES, "%jd", (intmax_t)vi);
+ } else {
+ t = tl->t;
+ vcc_NextToken(tl);
+--
+libgit2 1.9.7
+
diff --git a/varnish.spec b/varnish.spec
index bb5f550..6703fdc 100644
--- a/varnish.spec
+++ b/varnish.spec
@@ -45,6 +45,9 @@ Source4: varnish.tmpfiles
# https://github.com/varnish/varnish/issues/32
Patch1: varnish-9.0.1_openssl_4.0_asn1.patch
+# 32bit fixes, picked from vinyl cache upstream
+Patch2: 32bit_build_fixes.patch
+
%if %{with bundled_jemalloc}
# bundled jemalloc patch
Patch100: jemalloc-5.3.0_fno-builtin.patch
@@ -157,6 +160,7 @@ Documentation files for %name
%if 0%{?fedora} > 44 || 0%{?rhel} > 10
%patch 1 -p1
%endif
+%patch 2 -p1
tar xzf %SOURCE1
ln -s pkg-varnish-cache-%{commit1}/redhat redhat
ln -s pkg-varnish-cache-%{commit1}/debian debian
@@ -430,6 +434,7 @@ test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc
* Mon Sep 21 2026 Ingvar Hagelund <ingvar@redpill-linpro.com> - 9.0.4-1
- New upstream release, a security release
- Includes fix for VSV00020 (CVE pending)
+- Added small patch from upstream for 32bit builds
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-09-21 20:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179002341986.1.1113076732305432825.rpms-varnish-7ddde012d668@fedoraproject.org \
--to=ingvar@redpill-linpro.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox