public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mattias Ellert <mattias.ellert@physics.uu.se>
To: git-commits@fedoraproject.org
Subject: [rpms/pythia8] rawhide: Update to version 8.3.18
Date: Wed, 14 Oct 2026 16:27:31 GMT [thread overview]
Message-ID: <179199525187.1.4382255871553178528.rpms-pythia8-6b98115c6b78@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pythia8
Branch : rawhide
Commit : 6b98115c6b7851495e9697d5425487f9561056f6
Author : Mattias Ellert <mattias.ellert@physics.uu.se>
Date : 2026-10-14T18:24:40+02:00
Stats : +218/-48 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/pythia8/c/6b98115c6b7851495e9697d5425487f9561056f6?branch=rawhide
Log:
Update to version 8.3.18
---
diff --git a/0001-Fix-deprecation-warnings.patch b/0001-Fix-deprecation-warnings.patch
new file mode 100644
index 0000000..37d6e0c
--- /dev/null
+++ b/0001-Fix-deprecation-warnings.patch
@@ -0,0 +1,145 @@
+From 21652ed00cabe69a0b343a9a0d9150b4f27d811f Mon Sep 17 00:00:00 2001
+From: Mattias Ellert <mattias.ellert@physics.uu.se>
+Date: Sat, 19 Sep 2026 13:07:44 +0200
+Subject: [PATCH] Fix deprecation warnings
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
+---
+ src/HadronWidths.cc | 16 ++++++++++++++++
+ src/NucleonExcitations.cc | 16 ++++++++++++++++
+ src/PythiaParallel.cc | 4 ++++
+ src/SigmaEW.cc | 4 ++++
+ 4 files changed, 40 insertions(+)
+
+diff --git a/src/HadronWidths.cc b/src/HadronWidths.cc
+index fab2a4a0..06980934 100644
+--- a/src/HadronWidths.cc
++++ b/src/HadronWidths.cc
+@@ -992,7 +992,11 @@ double HadronWidths::psSize(double eCM, ParticleDataEntryPtr prodA,
+ return 0.;
+
+ // Integrate mass of A.
++#if __cplusplus >= 202002L
++ auto f = [=, this](double mA) {
++#else
+ auto f = [=](double mA) {
++#endif
+ return pow(pCMS(eCM, mA, m0B), lType) * mDistr(idA, mA); };
+ if (!integrateGauss(result, f, mMinA, min(mMaxA, eCM - m0B)))
+ success = false;
+@@ -1004,7 +1008,11 @@ double HadronWidths::psSize(double eCM, ParticleDataEntryPtr prodA,
+ return 0.;
+
+ // Integrate mass of B.
++#if __cplusplus >= 202002L
++ auto f = [=, this](double mB) {
++#else
+ auto f = [=](double mB) {
++#endif
+ return pow(pCMS(eCM, m0A, mB), lType) * mDistr(idB, mB); };
+ if (!integrateGauss(result, f, mMinB, min(mMaxB, eCM - m0A)))
+ success = false;
+@@ -1016,10 +1024,18 @@ double HadronWidths::psSize(double eCM, ParticleDataEntryPtr prodA,
+ return 0.;
+
+ // Define integrand of outer integral.
++#if __cplusplus >= 202002L
++ auto I = [=, this, &success](double mA) {
++#else
+ auto I = [=, &success](double mA) {
++#endif
+
+ // Define integrand of inner integral.
++#if __cplusplus >= 202002L
++ auto f = [=, this](double mB) {
++#else
+ auto f = [=](double mB) {
++#endif
+ return pow(pCMS(eCM, mA, mB), lType)
+ * mDistr(idA, mA) * mDistr(idB, mB); };
+ double res;
+diff --git a/src/NucleonExcitations.cc b/src/NucleonExcitations.cc
+index faf13ce6..fd12870e 100644
+--- a/src/NucleonExcitations.cc
++++ b/src/NucleonExcitations.cc
+@@ -460,7 +460,11 @@ double NucleonExcitations::psSize(double eCM, ParticleDataEntry& prodA,
+ return 0.;
+
+ // Integrate mass of A.
++#if __cplusplus >= 202002L
++ auto f = [=, this](double mA) {
++#else
+ auto f = [=](double mA) {
++#endif
+ return pCMS(eCM, mA, m0B) * hadronWidthsPtr->mDistr(idA, mA); };
+ if (!integrateGauss(result, f, mMinA, min(mMaxA, eCM - m0B)))
+ success = false;
+@@ -472,7 +476,11 @@ double NucleonExcitations::psSize(double eCM, ParticleDataEntry& prodA,
+ return 0.;
+
+ // Integrate mass of B.
++#if __cplusplus >= 202002L
++ auto f = [=, this](double mB) {
++#else
+ auto f = [=](double mB) {
++#endif
+ return pCMS(eCM, m0A, mB) * hadronWidthsPtr->mDistr(idB, mB); };
+ if (!integrateGauss(result, f, mMinB, min(mMaxB, eCM - m0A)))
+ success = false;
+@@ -484,10 +492,18 @@ double NucleonExcitations::psSize(double eCM, ParticleDataEntry& prodA,
+ return 0.;
+
+ // Define integrand of outer integral.
++#if __cplusplus >= 202002L
++ auto I = [=, this, &success](double mA) {
++#else
+ auto I = [=, &success](double mA) {
++#endif
+
+ // Define integrand of inner integral.
++#if __cplusplus >= 202002L
++ auto f = [=, this](double mB) {
++#else
+ auto f = [=](double mB) {
++#endif
+ return pCMS(eCM, mA, mB)
+ * hadronWidthsPtr->mDistr(idA, mA)
+ * hadronWidthsPtr->mDistr(idB, mB); };
+diff --git a/src/PythiaParallel.cc b/src/PythiaParallel.cc
+index 6b4ae491..0915ae1f 100644
+--- a/src/PythiaParallel.cc
++++ b/src/PythiaParallel.cc
+@@ -120,7 +120,11 @@ bool PythiaParallel::init(function<bool(Pythia*)> customInit) {
+ bool initSuccess = true;
+
+ for (int iPythia = 0; iPythia < numThreads; iPythia += 1) {
++#if __cplusplus >= 202002L
++ initThreads.emplace_back([=, this, &seeds, &initSuccess]() {
++#else
+ initThreads.emplace_back([=, &seeds, &initSuccess]() {
++#endif
+ if (pythiaObjects[iPythia] == nullptr) {
+ Pythia* pythiaPtr = new Pythia(settings, particleData, false);
+ pythiaObjects[iPythia] = unique_ptr<Pythia>(pythiaPtr);
+diff --git a/src/SigmaEW.cc b/src/SigmaEW.cc
+index e05eaca7..0c0a2b36 100644
+--- a/src/SigmaEW.cc
++++ b/src/SigmaEW.cc
+@@ -439,7 +439,11 @@ double Sigma2ff2fftgmZ::factRVDIS(int idLepton, double x, double y,
+ double xq03 = xq03gm + xq03gmZ + xq03Z;
+
+ // Cross section expression as a function of z.
++#if __cplusplus >= 202002L
++ function<double(double)> dSigma = [=, this](double z) {
++#else
+ function<double(double)> dSigma = [=](double z) {
++#endif
+ double xq2gm = 0.;
+ double xq2gmZ = 0.;
+ double xq2Z = 0.;
+--
+2.55.0
+
diff --git a/pythia8-makefile.patch b/pythia8-makefile.patch
index 1c363a0..61f9907 100644
--- a/pythia8-makefile.patch
+++ b/pythia8-makefile.patch
@@ -1,6 +1,6 @@
-diff -ur pythia8317.orig/configure pythia8317/configure
---- pythia8317.orig/configure 2026-01-20 22:52:30.000000000 +0100
-+++ pythia8317/configure 2026-03-12 14:50:35.805779350 +0100
+diff -ur pythia8318.orig/configure pythia8318/configure
+--- pythia8318.orig/configure 2026-09-16 21:09:09.000000000 +0200
++++ pythia8318/configure 2026-09-18 10:43:11.349725158 +0200
@@ -213,7 +213,6 @@
LIB=${LIB#-L}
if [ "${LIB:0:1}" = "-" ]; then continue; fi
@@ -9,9 +9,9 @@ diff -ur pythia8317.orig/configure pythia8317/configure
done
PKG_CFG[2]="${PKG_INC[@]}"; PKG_CFG[3]="${PKG_LIB[@]}"
-diff -ur pythia8317.orig/Makefile pythia8317/Makefile
---- pythia8317.orig/Makefile 2026-01-20 22:52:30.000000000 +0100
-+++ pythia8317/Makefile 2026-03-12 14:50:35.806667023 +0100
+diff -ur pythia8318.orig/Makefile pythia8318/Makefile
+--- pythia8318.orig/Makefile 2026-09-16 21:09:10.000000000 +0200
++++ pythia8318/Makefile 2026-09-23 04:42:47.175135747 +0200
@@ -36,7 +36,7 @@
LOCAL_MKDIRS:=$(shell mkdir -p $(LOCAL_TMP) $(LOCAL_LIB))
CXX_COMMON:=-I$(LOCAL_INCLUDE) $(CXX_COMMON)
@@ -21,34 +21,18 @@ diff -ur pythia8317.orig/Makefile pythia8317/Makefile
# Determine the archiver and archiver flags.
AR ?= ar
-@@ -144,7 +144,7 @@
- $(LOCAL_LIB)/libpythia8lhapdf%.so: $(LOCAL_TMP)/LHAPDF%Plugin.o\
- $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX)
- $(CXX) $< -o $@ $(CXX_COMMON) $(CXX_SHARED) $(CXX_SONAME)$(notdir $@)\
-- $(LHAPDF$*_LIB) -lLHAPDF -Llib -lpythia8
-+ $(LHAPDF$*_LIB) -lLHAPDF $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX)
-
- # POWHEG.
- $(LOCAL_TMP)/LHAPowheg.o: $(LOCAL_INCLUDE)/Pythia8Plugins/LHAPowheg.h
-@@ -154,12 +154,12 @@
- $(LOCAL_LIB)/libpythia8powheg%.so: $(POWHEG_DIR)lib%.so\
+@@ -180,7 +180,7 @@
$(LOCAL_TMP)/LHAPowheg.o $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX)
$(CXX) $(LOCAL_TMP)/LHAPowheg.o -o $@ $(CXX_COMMON) $(CXX_SHARED)\
-- $(CXX_SONAME)$(notdir $@) -Llib -lpythia8\
+ $(CXX_SONAME)$(notdir $@) -Llib -lpythia8\
- -Wl,-rpath,../lib:$(POWHEG_DIR) -L$(POWHEG_DIR) -l$*
-+ $(CXX_SONAME)$(notdir $@) $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX)\
+ -L$(POWHEG_DIR) -l$*
- $(LOCAL_LIB)/libpythia8powhegHooks.so: $(LOCAL_TMP)/PowhegHooks.o\
- $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX)
- $(CXX) $< -o $@ $(CXX_COMMON) $(CXX_SHARED) $(CXX_SONAME)$(notdir $@)\
-- -Llib -lpythia8
-+ $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX)
# RIVET.
$(LOCAL_LIB)/libpythia8rivet.so: $(LOCAL_INCLUDE)/Pythia8Plugins/RivetHooks.h
-diff -ur pythia8317.orig/plugins/python/Makefile pythia8317/plugins/python/Makefile
---- pythia8317.orig/plugins/python/Makefile 2026-01-20 22:52:30.000000000 +0100
-+++ pythia8317/plugins/python/Makefile 2026-03-12 14:50:35.806829115 +0100
+diff -ur pythia8318.orig/plugins/python/Makefile pythia8318/plugins/python/Makefile
+--- pythia8318.orig/plugins/python/Makefile 2026-09-16 21:09:10.000000000 +0200
++++ pythia8318/plugins/python/Makefile 2026-09-23 04:44:58.743071098 +0200
@@ -28,8 +28,9 @@
LOCAL_EXTRA=extra
LOCAL_MKDIRS:=$(shell mkdir -p $(LOCAL_TMP) $(TOP_LIB))
@@ -69,20 +53,18 @@ diff -ur pythia8317.orig/plugins/python/Makefile pythia8317/plugins/python/Makef
# PYTHIA library.
$(PYTHIA):
-@@ -76,14 +77,14 @@
+@@ -76,13 +77,13 @@
$(CXX) $< -o $@ -c $(OBJ_COMMON)
# Build the library.
-$(TOP_LIB)/pythia8.so: $(PYTHIA) $(HEADERS) $(OBJECTS)
+$(TOP_LIB)/pythia8$(PYTHON_EXT_SUFFIX): $(PYTHIA) $(HEADERS) $(OBJECTS)
$(CXX) $(OBJECTS) -o $@ $(CXX_COMMON) $(CXX_SHARED)\
-- $(CXX_SONAME)$(notdir $@) $(LIB_COMMON) -L$(TOP_LIB)\
+ $(CXX_SONAME)$(notdir $@) $(LIB_COMMON) -L$(TOP_LIB)\
- -Wl,-rpath,$(PREFIX_LIB) -lpythia8 -Wl,-undefined,dynamic_lookup
-+ $(CXX_SONAME)$(notdir $@) $(LIB_COMMON)\
-+ $(PYTHIA) -Wl,-undefined,dynamic_lookup
++ -lpythia8 -Wl,-undefined,dynamic_lookup
@mkdir -p $(TOP_LIB)/python
- if test -e $(LOCAL_EXTRA)/*.py; then\
- cp $(LOCAL_EXTRA)/*.py $(TOP_LIB)/python; fi
+ find $(LOCAL_EXTRA) -name '*.py' -exec cp {} $(TOP_LIB)/python/ \;
# Clean.
clean:
diff --git a/pythia8.spec b/pythia8.spec
index 39ff406..347f27d 100644
--- a/pythia8.spec
+++ b/pythia8.spec
@@ -1,14 +1,15 @@
Name: pythia8
-Version: 8.3.17
-Release: 5%{?dist}
+Version: 8.3.18
+Release: 1%{?dist}
Summary: Pythia Event Generator for High Energy Physics
License: GPL-2.0-or-later
URL: https://pythia.org
-Source0: https://pythia.org/download/pythia83/pythia8317.tgz
-# Link plugins to the shared library
+Source0: https://pythia.org/releases/pythia83/pythia8318.tgz
# Remove rpath
Patch0: %{name}-makefile.patch
+# https://gitlab.com/Pythia8/releases/-/work_items/719
+Patch1: 0001-Fix-deprecation-warnings.patch
BuildRequires: make
BuildRequires: gcc-c++
@@ -62,6 +63,18 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n python3-%{name}
This package provides the Python 3 bindings for Pythia 8.
+%package -n python3-%{name}+hepmc3
+Summary: Pythia 8 Python 3 HepMC3 interface
+%py_provides python3-%{name}+hepmc3
+Requires: python3-%{name} = %{version}-%{release}
+%if %{?rhel}%{!?rhel:0} == 8
+# The python dependency generator in EPEL 8 is incomplete
+Requires: %py3_dist pyHepMC3
+%endif
+
+%description -n python3-%{name}+hepmc3
+This package provides the Python 3 HepMC3 interface for Pythia 8.
+
%package data
Summary: Pythia 8 Data Files
BuildArch: noarch
@@ -84,8 +97,9 @@ BuildArch: noarch
This package provides documentation for Pythia 8.
%prep
-%setup -q -n pythia8317
+%setup -q -n pythia8318
%patch -P0 -p1
+%patch -P1 -p1
# Remove DOS end-of-line
dos2unix -k share/Pythia8/htmldoc/pythia.css \
@@ -102,8 +116,9 @@ PYTHON_CONFIG=%{__python3}-config \
--with-python \
--with-gzip
-%make_build PYTHON_EXT_SUFFIX=%{python3_ext_suffix}
+mkdir lib
ln -s libpythia8-%{version}.so lib/libpythia8.so
+%make_build PYTHON_EXT_SUFFIX=%{python3_ext_suffix}
%install
%make_install \
@@ -128,17 +143,32 @@ rm %{buildroot}%{_datadir}/Pythia8/examples/runmains
touch %{buildroot}%{_datadir}/Pythia8/examples/Makefile.inc
-mkdir -p %{buildroot}%{python3_sitearch}
+mkdir -p %{buildroot}%{python3_sitearch}/pythia8
+cat > %{buildroot}%{python3_sitearch}/pythia8/__init__.py << EOF
+from .pythia8 import *
+EOF
mv %{buildroot}%{_libdir}/pythia8%{python3_ext_suffix} \
- %{buildroot}%{python3_sitearch}
+ %{buildroot}%{python3_sitearch}/pythia8
+mv %{buildroot}%{_libdir}/python/*.py \
+ %{buildroot}%{python3_sitearch}/pythia8
+
mkdir %{buildroot}%{python3_sitearch}/%{name}-%{version}.dist-info
-echo 'Name: %{name}' > \
- %{buildroot}%{python3_sitearch}/%{name}-%{version}.dist-info/METADATA
-echo 'Version: %{version}' >> \
- %{buildroot}%{python3_sitearch}/%{name}-%{version}.dist-info/METADATA
+cat > %{buildroot}%{python3_sitearch}/%{name}-%{version}.dist-info/METADATA << EOF
+Name: %{name}
+Version: %{version}
+Provides-Extra: HepMC3
+Requires-Dist: pyHepMC3; extra == 'HepMC3'
+EOF
%files
%{_libdir}/libpythia8-%{version}.so
+%{_libdir}/libpythia8amcatnloHooks.so
+%{_libdir}/libpythia8colourReconnectionHooks.so
+%{_libdir}/libpythia8jetMatchingHooks.so
+%{_libdir}/libpythia8lhefHooks.so
+%{_libdir}/libpythia8powhegHooks.so
+%{_libdir}/libpythia8resonanceDecayFilterHooks.so
+%{_libdir}/libpythia8setLHEDecayProductHooks.so
%doc AUTHORS GUIDELINES
%license COPYING
@@ -155,8 +185,18 @@ echo 'Version: %{version}' >> \
%{_libdir}/libpythia8lhapdf6.so
%files -n python3-%{name}
+%dir %{python3_sitearch}/%{name}
+%{python3_sitearch}/%{name}/pythia8%{python3_ext_suffix}
+%{python3_sitearch}/%{name}/__init__.py
+%{python3_sitearch}/%{name}/Vistas.py
+%{python3_sitearch}/%{name}/__pycache__/__init__.*
+%{python3_sitearch}/%{name}/__pycache__/Vistas.*
%{python3_sitearch}/%{name}-%{version}.dist-info
-%{python3_sitearch}/pythia8.*.so
+
+%files -n python3-%{name}+hepmc3
+%{python3_sitearch}/%{name}/HepMC3.py
+%{python3_sitearch}/%{name}/__pycache__/HepMC3.*
+%ghost %{python3_sitearch}/%{name}-%{version}.dist-info
%files data
%dir %{_datadir}/Pythia8
@@ -177,6 +217,9 @@ echo 'Version: %{version}' >> \
%license COPYING
%changelog
+* Wed Oct 14 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 8.3.18-1
+- Update to version 8.3.18
+
* Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 8.3.17-5
- Rebuilt for Python 3.15.0b4 ABI change
@@ -189,7 +232,7 @@ echo 'Version: %{version}' >> \
* Tue Apr 07 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 8.3.17-2
- Add HepMC3 interface package
-* Thu Mar 12 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 8.3.17-1
+* Thu Mar 12 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 8.3.17-1
- Update to version 8.3.17
- Rebuild for LHAPDF 6.5.6
diff --git a/sources b/sources
index d271f92..89795d6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pythia8317.tgz) = d0b5e62d36e6162590c9ab6da61a034f357ca1e139947b06679f076c602c55aaa2b53d0b9aa8a4ff2b45bef9d029e663629fcc83da183cf032f9f710bb61e4c4
+SHA512 (pythia8318.tgz) = f7063a8dae1b968a64b48f8a1c1453b652687508265d3815507ff407e888f7979bd04594ab81630458da488fd0f1e11aadb489a2c3dfc93ae162b09bf0e4dec5
reply other threads:[~2026-10-14 16:27 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=179199525187.1.4382255871553178528.rpms-pythia8-6b98115c6b78@fedoraproject.org \
--to=mattias.ellert@physics.uu.se \
--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