public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/javapackages-tools] rawhide: Fix compatibility with Python 3.15
Date: Mon, 01 Jun 2026 06:58:11 GMT	[thread overview]
Message-ID: <178029709123.1.16200504110309991102.rpms-javapackages-tools-0b35b863cb8d@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/javapackages-tools
Branch : rawhide
Commit : 0b35b863cb8d4b19c81a508f1ea6352c63029588
Author : Karolina Surma <ksurma@redhat.com>
Date   : 2026-05-28T14:31:50+02:00
Stats  : +23/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/javapackages-tools/c/0b35b863cb8d4b19c81a508f1ea6352c63029588?branch=rawhide

Log:
Fix compatibility with Python 3.15

---
diff --git a/160.patch b/160.patch
new file mode 100644
index 0000000..4602aaf
--- /dev/null
+++ b/160.patch
@@ -0,0 +1,22 @@
+From 91559531ce7f7e95da7b855224b9ac2c2a2ab5d5 Mon Sep 17 00:00:00 2001
+From: Marian Koncek <marian.koncek@mailbox.org>
+Date: Wed, 27 May 2026 11:16:39 +0200
+Subject: [PATCH] Harcode a specific GZIP compression level
+
+---
+ java-utils/mvn_build.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/java-utils/mvn_build.py b/java-utils/mvn_build.py
+index ce12e905..ee1335b9 100644
+--- a/java-utils/mvn_build.py
++++ b/java-utils/mvn_build.py
+@@ -193,7 +193,7 @@ def goal_callback(option, opt_str, value, parser):
+             builddep_data = file.read()
+         #compressed = gzip.compress(builddep_data, mtime=0)
+         buf = io.BytesIO()
+-        with gzip.GzipFile(fileobj=buf, mode='wb', mtime=0) as f:
++        with gzip.GzipFile(fileobj=buf, mode='wb', mtime=0, compresslevel=9) as f:
+             f.write(builddep_data)
+         compressed = buf.getvalue()
+         encoded = base64.b64encode(compressed).decode()

diff --git a/javapackages-tools.spec b/javapackages-tools.spec
index e204e42..ab669ae 100644
--- a/javapackages-tools.spec
+++ b/javapackages-tools.spec
@@ -20,6 +20,7 @@ URL:            https://github.com/fedora-java/javapackages
 BuildArch:      noarch
 
 Source:         https://github.com/fedora-java/javapackages/archive/%{version}.tar.gz
+Patch:          https://github.com/fedora-java/javapackages/pull/160.patch
 
 BuildRequires:  coreutils
 BuildRequires:  rubygem-asciidoctor

                 reply	other threads:[~2026-06-01  6:58 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=178029709123.1.16200504110309991102.rpms-javapackages-tools-0b35b863cb8d@fedoraproject.org \
    --to=ksurma@redhat.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