Lukas Fleischer pushed to branch main at Arch Linux / Packaging / Packages / 
hepmc


Commits:
ab4f7af6 by Lukas Fleischer at 2025-08-21T08:49:24-04:00
upgpkg: 3.3.1-3: rebuild for abseil-cpp 20250512 and protobuf 32

- - - - -


4 changed files:

- .SRCINFO
- + 0001-HepMC3ViewerFrame.cc-fix-build-with-recent-Graphviz.patch
- PKGBUILD
- REUSE.toml


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = hepmc
        pkgdesc = A particle physics package for storing collision events from 
Monte Carlo generators
        pkgver = 3.3.1
-       pkgrel = 2
+       pkgrel = 3
        url = https://hepmc.web.cern.ch/
        arch = x86_64
        license = GPL3
@@ -16,7 +16,9 @@ pkgbase = hepmc
        makedepends = protobuf
        makedepends = cern-vdt
        source = 
hepmc-3.3.1.tar.gz::https://hepmc.web.cern.ch/hepmc/releases/HepMC3-3.3.1.tar.gz
+       source = 0001-HepMC3ViewerFrame.cc-fix-build-with-recent-Graphviz.patch
        sha256sums = 
08240160b0f28dc3293aa4d61ce65e2d67cd597acf6faca439f2e46625f7e793
+       sha256sums = 
a6eb8fb1d440826598500e327757054032a74d439bd64d6461e4a74816a127ac
 
 pkgname = hepmc
        depends = bash


=====================================
0001-HepMC3ViewerFrame.cc-fix-build-with-recent-Graphviz.patch
=====================================
@@ -0,0 +1,25 @@
+From 32e4d734948d95bc199d922902f01192cb1e2f5f Mon Sep 17 00:00:00 2001
+From: Lukas Fleischer <lfleisc...@lfos.de>
+Date: Thu, 21 Aug 2025 08:41:41 -0400
+Subject: [PATCH] HepMC3ViewerFrame.cc: fix build with recent Graphviz
+
+---
+ examples/ViewerExample/src/HepMC3ViewerFrame.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/examples/ViewerExample/src/HepMC3ViewerFrame.cc 
b/examples/ViewerExample/src/HepMC3ViewerFrame.cc
+index 9fa2b986..a22ca478 100644
+--- a/examples/ViewerExample/src/HepMC3ViewerFrame.cc
++++ b/examples/ViewerExample/src/HepMC3ViewerFrame.cc
+@@ -21,7 +21,7 @@ static  char*  create_image_from_dot(char* m_buffer)
+ 
+     int err;
+     char *data;
+-    unsigned int length;
++    size_t length;
+ 
+     if (!g)
+         return nullptr;
+-- 
+2.51.0
+


=====================================
PKGBUILD
=====================================
@@ -5,14 +5,16 @@ pkgbase=hepmc
 pkgname=("${pkgbase}" "${pkgbase}-docs")
 _pkgname=HepMC3
 pkgver=3.3.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A particle physics package for storing collision events from Monte 
Carlo generators"
 arch=('x86_64')
 url="https://hepmc.web.cern.ch/";
 license=('GPL3')
 makedepends=('cmake' 'doxygen' 'gcc-fortran' 'graphviz' 'hepmc2' 'pythia8' 
'python' 'root' 'protobuf' 'cern-vdt')
-source=("${pkgbase}-${pkgver}.tar.gz::https://hepmc.web.cern.ch/${pkgbase}/releases/${_pkgname}-${pkgver}.tar.gz";)
-sha256sums=('08240160b0f28dc3293aa4d61ce65e2d67cd597acf6faca439f2e46625f7e793')
+source=("${pkgbase}-${pkgver}.tar.gz::https://hepmc.web.cern.ch/${pkgbase}/releases/${_pkgname}-${pkgver}.tar.gz";
+        0001-HepMC3ViewerFrame.cc-fix-build-with-recent-Graphviz.patch)
+sha256sums=('08240160b0f28dc3293aa4d61ce65e2d67cd597acf6faca439f2e46625f7e793'
+            'a6eb8fb1d440826598500e327757054032a74d439bd64d6461e4a74816a127ac')
 
 _pick() {
   local p="$1" f d; shift
@@ -24,6 +26,11 @@ _pick() {
   done
 }
 
+prepare() {
+  cd "${_pkgname}-${pkgver}"
+  patch -p1 -i 
../0001-HepMC3ViewerFrame.cc-fix-build-with-recent-Graphviz.patch
+}
+
 build() {
   local cmake_options=(
     -B build


=====================================
REUSE.toml
=====================================
@@ -20,3 +20,10 @@ path = [
 ]
 SPDX-FileCopyrightText = "Arch Linux contributors"
 SPDX-License-Identifier = "0BSD"
+
+[[annotations]]
+path = [
+    "0001-HepMC3ViewerFrame.cc-fix-build-with-recent-Graphviz.patch",
+]
+SPDX-FileCopyrightText = "Arch Linux contributors"
+SPDX-License-Identifier = "0BSD"



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/hepmc/-/commit/ab4f7af6888401863a44d0f2e9359a2c0eee175a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/hepmc/-/commit/ab4f7af6888401863a44d0f2e9359a2c0eee175a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to