Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package distcc for openSUSE:Factory checked 
in at 2025-03-11 20:46:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/distcc (Old)
 and      /work/SRC/openSUSE:Factory/.distcc.new.19136 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "distcc"

Tue Mar 11 20:46:01 2025 rev:16 rq:1252020 version:3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/distcc/distcc.changes    2022-08-09 
15:27:41.401511635 +0200
+++ /work/SRC/openSUSE:Factory/.distcc.new.19136/distcc.changes 2025-03-11 
20:47:13.802987545 +0100
@@ -1,0 +2,6 @@
+Mon Mar 10 04:25:04 UTC 2025 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch use-setuptools-instead.patch:
+  * Use setuptools rather than distutils inside include_server.
+
+-------------------------------------------------------------------

New:
----
  use-setuptools-instead.patch

BETA DEBUG BEGIN:
  New:
- Add patch use-setuptools-instead.patch:
  * Use setuptools rather than distutils inside include_server.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ distcc.spec ++++++
--- /var/tmp/diff_new_pack.3OZhng/_old  2025-03-11 20:47:14.307008649 +0100
+++ /var/tmp/diff_new_pack.3OZhng/_new  2025-03-11 20:47:14.307008649 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package distcc
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@
 Source1:        distccd.sysconfig
 Source2:        distccd.service
 Patch3:         distcc-3.2_rc1-python.patch
+# PATCH-FIX-UPSTREAM gh#distcc/distcc#493
+Patch4:         use-setuptools-instead.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  binutils-devel
@@ -39,6 +41,7 @@
 BuildRequires:  libtool
 BuildRequires:  make
 BuildRequires:  pkgconfig
+BuildRequires:  python3-setuptools
 BuildRequires:  update-desktop-files
 BuildRequires:  pkgconfig(avahi-client)
 BuildRequires:  pkgconfig(gtk+-3.0)

++++++ use-setuptools-instead.patch ++++++
>From 76873f8858bf5f32bda170fcdc1dfebb69de0e4b Mon Sep 17 00:00:00 2001
From: Alexey Sheplyakov <asheplya...@basealt.ru>
Date: Thu, 23 Nov 2023 17:36:04 +0400
Subject: [PATCH] include_server: use setuptools instead of distutils

distutils has been deprecated for a long time (see PEP 632 [1])
and has been removed from Python 3.12. Thus distcc fails to build
with Python 3.12. Use setuptools to avoid the problem.

[1] https://peps.python.org/pep-0632
---
 include_server/setup.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/include_server/setup.py b/include_server/setup.py
index 4ae503e6..94630dfd 100755
--- a/include_server/setup.py
+++ b/include_server/setup.py
@@ -31,8 +31,7 @@
 
 __author__ = 'Manos Renieris and Nils Klarlund'
 
-import distutils.core
-import distutils.extension
+import setuptools
 import doctest
 import os
 import shlex
@@ -126,7 +125,7 @@ def GetIncludes(flags):
   srcdir_include_server = os.path.join(srcdir, 'include_server')
 
 # Specify extension.
-ext = distutils.extension.Extension(
+ext = setuptools.Extension(
     name='include_server.distcc_pump_c_extensions',
     sources=[os.path.join(srcdir, source)
              for source in
@@ -180,4 +179,4 @@ def GetIncludes(flags):
 # First, do a little self-testing.
 doctest.testmod()
 # Second, do the setup.
-distutils.core.setup(**args)
+setuptools.setup(**args)

Reply via email to