[arch-commits] Commit in pythia8/trunk (5 files)

Konstantin Gizdov kgizdov at archlinux.org
Mon Nov 18 15:26:34 UTC 2019


    Date: Monday, November 18, 2019 @ 15:26:34
  Author: kgizdov
Revision: 530331

upgpkg: pythia8 8.3.01-1

Added:
  pythia8/trunk/fix_ar_options.patch
    (from rev 530330, pythia8/trunk/fix_lhapdf_build.patch)
  pythia8/trunk/fix_python_lib_paths.patch
Modified:
  pythia8/trunk/PKGBUILD
Deleted:
  pythia8/trunk/fix_lhapdf_build.patch
  pythia8/trunk/respect_lib_suffix.patch

----------------------------+
 PKGBUILD                   |  109 ++++++++++++++-------------------
 fix_ar_options.patch       |   17 +++++
 fix_lhapdf_build.patch     |   12 ---
 fix_python_lib_paths.patch |   18 +++++
 respect_lib_suffix.patch   |  141 -------------------------------------------
 5 files changed, 84 insertions(+), 213 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-18 12:39:15 UTC (rev 530330)
+++ PKGBUILD	2019-11-18 15:26:34 UTC (rev 530331)
@@ -4,23 +4,23 @@
 
 pkgbase=pythia8
 pkgname=('pythia8' 'python-pythia8')
-pkgver=8.2.43
+pkgver=8.3.01
 _pkgid="${pkgbase:0:-1}${pkgver//./}"
-pkgrel=2
+pkgrel=1
 pkgdesc="High-energy physics events generator"
 arch=('x86_64')
 url="http://home.thep.lu.se/Pythia/"
 license=('GPL')
-depends=('python')
-makedepends=('python' 'fastjet' 'hepmc' 'lhapdf>=6.2' 'root')
+depends=('python' 'openmp')
+makedepends=('fastjet' 'hepmc' 'lhapdf>=6.2' 'root')
 source=("http://home.thep.lu.se/~torbjorn/pythia8/${_pkgid}.tgz"
         'pythia8.sh'
-        'fix_lhapdf_build.patch'
-        'respect_lib_suffix.patch')
-sha256sums=('f8ec27437d9c75302e192ab68929131a6fd642966fe66178dbe87da6da2b1c79'
+        'fix_ar_options.patch'
+        'fix_python_lib_paths.patch')
+sha256sums=('51382768eb9aafb97870dca1909516422297b64ef6a6b94659259b3e4afa7f06'
             '4e373b685960e410024b4e33e22c2dea360dfedd7962837087332f428c974ae5'
-            'f7c70b069b350005ac7e9028617713dece9b82c1e8b0dc5fb1f2870abec1d94c'
-            '4eb15725cfb5e287fdd9520cb4211b88ebc38a690b7522690ba0664d50bc8669')
+            '27b8a11d404be6cb683ec7fc5a2b3cca7f443bde751be2771d68f060a380c212'
+            '50958ce04faf57da452af64ec3f1fd3ba961a3b27e0e22fee24ea046f461186b')
 get_pyver () {
     python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
 }
@@ -27,8 +27,8 @@
 
 prepare() {
     cd "${srcdir}/${_pkgid}"
-    patch -p1 -i "${srcdir}/respect_lib_suffix.patch"
-    patch -p1 -i "${srcdir}/fix_lhapdf_build.patch"
+    patch -p1 -i "${srcdir}/fix_ar_options.patch"
+    patch -p1 -i "${srcdir}/fix_python_lib_paths.patch"
 }
 
 build() {
@@ -36,52 +36,45 @@
     _lib=/usr/lib
     _share=/usr/share/${pkgbase}
 
-    # with Python3
     cd "${srcdir}/${_pkgid}"
     # # no such package yet
     # --with-evtgen \
-    # --with-evtgen-include=${_inc} \
-    # --with-evtgen-lib=${_lib} \
-    # # no such package yet
     # --with-hepmc3 \
-    # --with-hepmc3-include=${_inc} \
-    # --with-hepmc3-lib=${_lib} \
-    # # no such package yet
+    # --with-mg5mes \
     # --with-powheg \
-    # --with-powheg-include=${_inc} \
-    # --with-powheg-lib=${_lib} \
-    # # no such package yet
-    # --with-promc \
-    # --with-promc-include=${_inc} \
-    # --with-promc-lib=${_lib} \
-    ./configure --prefix=/usr \
-                --prefix-include=${_inc} \
-                --prefix-lib=${_lib} \
-                --prefix-share=${_share} \
-                --cxx-common="${CXXFLAGS} -fPIC" \
-                --cxx-shared="-shared ${LDFLAGS} -ldl" \
-                --enable-shared \
-                --with-fastjet3 \
-                --with-fastjet3-include=${_inc} \
-                --with-fastjet3-lib=${_lib} \
-                --with-gzip \
-                --with-gzip-include=${_inc} \
-                --with-gzip-lib=${_lib} \
-                --with-hepmc2 \
-                --with-hepmc2-include=${_inc} \
-                --with-hepmc2-lib=${_lib} \
-                --with-lhapdf5 \
-                --with-lhapdf5-include=${_inc} \
-                --with-lhapdf5-lib=${_lib} \
-                --with-lhapdf6 \
-                --with-lhapdf6-include=${_inc} \
-                --with-lhapdf6-lib=${_lib} \
-                --with-python \
-                --with-python-include="/usr/include/python$(get_pyver)" \
-                --with-python-lib="/usr/lib/python$(get_pyver)" \
-                --with-root \
-                --with-root-include=/usr/include/root \
-                --with-root-lib=/usr/lib/root
+    # --with-rivet \
+    # --with-yoda \
+    ./configure \
+        --prefix=/usr \
+        --prefix-include=${_inc} \
+        --prefix-lib=${_lib} \
+        --prefix-share=${_share} \
+        --cxx-common="${CXXFLAGS} -fPIC" \
+        --cxx-shared="-shared ${LDFLAGS} -ldl" \
+        --with-fastjet3 \
+        --with-fastjet3-include=${_inc} \
+        --with-fastjet3-lib=${_lib} \
+        --with-gzip \
+        --with-gzip-include=${_inc} \
+        --with-gzip-lib=${_lib} \
+        --with-hepmc2 \
+        --with-hepmc2-include=${_inc} \
+        --with-hepmc2-lib=${_lib} \
+        --with-lhapdf5 \
+        --with-lhapdf5-include=${_inc} \
+        --with-lhapdf5-lib=${_lib} \
+        --with-lhapdf6 \
+        --with-lhapdf6-include=${_inc} \
+        --with-lhapdf6-lib=${_lib} \
+        --with-openmp \
+        --with-openmp-include=${_inc} \
+        --with-openmp-lib=${_lib} \
+        --with-python \
+        --with-python-include="/usr/include/python$(get_pyver)" \
+        --with-python-lib="/usr/lib/python$(get_pyver)" \
+        --with-root \
+        --with-root-include=/usr/include/root \
+        --with-root-lib=/usr/lib/root
     make
 }
 
@@ -89,11 +82,11 @@
     provides=('pythia')
     conflicts=('pythia')
     replaces=('pythia')
-    depends=('python')
     optdepends=('fastjet: fast jet finding in pp and e+e- collisions'
                 'hepmc: storing collisions from Monte Carlo'
                 'lhapdf: evaluate PDFs from discretised data files'
                 'root: integrated examples with CERN ROOT data analysis framework')
+
     cd "${srcdir}/${_pkgid}"
     install -Dm755 bin/pythia8-config "${pkgdir}/usr/bin/pythia8-config"
     install -Dm644 lib/libpythia8.a "${pkgdir}/usr/lib/libpythia8.a"
@@ -107,16 +100,12 @@
     cp -r examples "${pkgdir}/usr/share/${pkgbase}/"
 
     install -D "${srcdir}/pythia8.sh" "${pkgdir}/etc/profile.d/pythia8.sh"
-
-    cd "${pkgdir}/usr/lib"
 }
 
 package_python-pythia8() {
     pkgdesc="Python bindings for Pythia"
-    depends=('pythia')
+    depends=('pythia8')
+
     cd "${srcdir}/${_pkgid}"
-
-    install -Dm755 lib/_pythia8.so "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/_pythia8.so"
-    install -Dm755 lib/pythia8.py "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/pythia8.py"
-    install -Dm644 lib/__pycache__/pythia8.cpython-*.pyc  -t "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/__pycache__/"
+    install -Dm755 lib/pythia8.so "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/pythia8.so"
 }

Copied: pythia8/trunk/fix_ar_options.patch (from rev 530330, pythia8/trunk/fix_lhapdf_build.patch)
===================================================================
--- fix_ar_options.patch	                        (rev 0)
+++ fix_ar_options.patch	2019-11-18 15:26:34 UTC (rev 530331)
@@ -0,0 +1,17 @@
+--- pythia8301-old/Makefile	2019-11-18 16:03:32.498781658 +0200
++++ pythia8301-new/Makefile	2019-11-18 15:57:35.342991437 +0200
+@@ -106,13 +106,13 @@
+ # PYTHIA.
+ $(LOCAL_TMP)/Pythia.o: $(LOCAL_SRC)/Pythia.cc Makefile.inc
+ 	$(CXX) $< -o $@ -c $(OBJ_COMMON) -DXMLDIR=\"$(PREFIX_SHARE)/xmldoc\"
+ $(LOCAL_TMP)/%.o: $(LOCAL_SRC)/%.cc Makefile.inc
+ 	$(CXX) $< -o $@ -c $(OBJ_COMMON)
+ $(LOCAL_LIB)/libpythia8.a: $(OBJECTS) $(OBJECTS_ME)
+-	ar cr $@ $^
++	ar rcs $@ $^
+ $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX): $(OBJECTS) $(OBJECTS_ME)
+ 	$(CXX) $^ -o $@ $(CXX_COMMON) $(CXX_SHARED) $(CXX_SONAME)$(notdir $@)\
+ 	  $(LIB_COMMON)
+ 
+ # LHAPDF (turn off all warnings for readability).
+ $(LOCAL_TMP)/LHAPDF%Plugin.o: $(LOCAL_INCLUDE)/Pythia8Plugins/LHAPDF%.h

Deleted: fix_lhapdf_build.patch
===================================================================
--- fix_lhapdf_build.patch	2019-11-18 12:39:15 UTC (rev 530330)
+++ fix_lhapdf_build.patch	2019-11-18 15:26:34 UTC (rev 530331)
@@ -1,12 +0,0 @@
-diff -aur pythia8235-old/Makefile pythia8235-new/Makefile
---- pythia8235-old/Makefile	2018-03-27 18:15:17.000000000 +0100
-+++ pythia8235-new/Makefile	2018-11-27 23:42:13.813863630 +0000
-@@ -102,7 +102,7 @@
- 	$(CXX) $< -o $@ -c $(OBJ_COMMON)
- $(LOCAL_LIB)/libpythia8.a: $(OBJECTS)
- 	rm -f $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX)
--	ar cru $@ $^
-+	ar rcs $@ $^
- $(LOCAL_LIB)/libpythia8$(LIB_SUFFIX): $(OBJECTS)
- 	$(CXX) $^ -o $@ $(CXX_COMMON) $(CXX_SHARED) $(CXX_SONAME)$(notdir $@)\
- 	  $(LIB_COMMON)

Added: fix_python_lib_paths.patch
===================================================================
--- fix_python_lib_paths.patch	                        (rev 0)
+++ fix_python_lib_paths.patch	2019-11-18 15:26:34 UTC (rev 530331)
@@ -0,0 +1,18 @@
+diff -au6r pythia8301-old/plugins/python/Makefile pythia8301-new/plugins/python/Makefile
+--- pythia8301-old/plugins/python/Makefile	2019-10-29 18:08:54.000000000 +0200
++++ pythia8301-new/plugins/python/Makefile	2019-11-18 17:08:21.959441069 +0200
+@@ -24,13 +24,13 @@
+ TOP_INCLUDE=../../include
+ LOCAL_SRC=src
+ LOCAL_TMP=tmp
+ LOCAL_INCLUDE=include
+ LOCAL_MKDIRS:=$(shell mkdir -p $(LOCAL_TMP) $(TOP_LIB))
+ OBJ_COMMON:=-MD $(CXX_COMMON) -Iinclude $(PYTHON_INCLUDE) -w -fpermissive
+-LIB_COMMON=-Wl,-rpath,$(TOP_LIB) -ldl $(GZIP_LIB)
++LIB_COMMON=-ldl $(GZIP_LIB)
+ PYTHIA=$(TOP_LIB)/libpythia8$(LIB_SUFFIX)
+ 
+ # Determine the headers.
+ HEADERS=$(patsubst ../../include/Pythia8%.h,$(LOCAL_INCLUDE)/Pythia8%.h,\
+ 	$(sort $(wildcard ../../include/Pythia8*/*.h)))
+ 

Deleted: respect_lib_suffix.patch
===================================================================
--- respect_lib_suffix.patch	2019-11-18 12:39:15 UTC (rev 530330)
+++ respect_lib_suffix.patch	2019-11-18 15:26:34 UTC (rev 530331)
@@ -1,141 +0,0 @@
-diff -aur pythia8235-old/examples/Makefile pythia8235-new/examples/Makefile
---- pythia8235-new/examples/Makefile	2018-03-27 19:15:17.000000000 +0200
-+++ pythia8235-new/examples/Makefile	2018-04-16 13:45:00.155056245 +0200
-@@ -54,20 +54,20 @@
-                 in the top PYTHIA directory)
- 
- # PYTHIA libraries.
--$(PREFIX_LIB)/libpythia8.a :
-+$(PREFIX_LIB)/libpythia8$(LIB_SUFFIX) :
- 	$(error Error: PYTHIA must be built, please run "make"\
-                 in the top PYTHIA directory)
- 
- # Examples without external dependencies.
--main% : main%.cc $(PREFIX_LIB)/libpythia8.a
-+main% : main%.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- 	$(CXX) $< -o $@ $(CXX_COMMON) $(GZIP_INC) $(GZIP_FLAGS)
- 
- # MixMax.
--main23: $$@.cc $(PREFIX_LIB)/libpythia8.a
-+main23: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- 	$(CXX) $< -o $@ -std=c++11 -w $(CXX_COMMON) $(GZIP_INC) $(GZIP_FLAGS)
- 
- # GZIP (required).
--main34: $$@.cc $(PREFIX_LIB)/libpythia8.a
-+main34: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(GZIP_USE),true)
- 	$(CXX) $< -o $@ $(CXX_COMMON) $(GZIP_INC) $(GZIP_FLAGS)
- else
-@@ -76,7 +76,7 @@
- 
- # HEPMC2.
- main41 main42 main43 main85 main86 main87 main88 main89: $$@.cc\
--	$(PREFIX_LIB)/libpythia8.a
-+	$(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(HEPMC2_USE),true)
- 	$(CXX) $< -o $@ -I$(HEPMC2_INCLUDE) $(CXX_COMMON)\
- 	 -L$(HEPMC2_LIB) -Wl,-rpath,$(HEPMC2_LIB) -lHepMC\
-@@ -86,7 +86,7 @@
- endif
- 
- # PROMC.
--main46: $$@.cc $(PREFIX_LIB)/libpythia8.a
-+main46: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(PROMC_USE),true)
- 	$(CXX) $< -o $@ -I$(PROMC_INCLUDE)/src -I$(PROMC_INCLUDE)/include\
- 	 $(CXX_COMMON) -DPROMC=\"$(PROMC_INCLUDE)\" -Wno-long-long\
-@@ -97,7 +97,7 @@
- endif
- 
- # EVTGEN (and HEPMC2).
--main48: $$@.cc $(PREFIX_LIB)/libpythia8.a
-+main48: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(EVTGEN_USE)$(HEPMC2_USE)$(ENABLE_SHARED),truetruetrue)
- 	$(CXX) $< -o $@ -I$(EVTGEN_INCLUDE) $(CXX_COMMON)\
- 	 -DEVTGEN_PYTHIA -DEVTGEN_EXTERNAL -Wl,-rpath,$(HEPMC2_LIB)\
-@@ -108,7 +108,7 @@
- endif
- 
- # FASTJET3.
--main71 main72 main75: $$@.cc $(PREFIX_LIB)/libpythia8.a
-+main71 main72 main75: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(FASTJET3_USE),true)
- 	$(CXX) $< -o $@ -I$(FASTJET3_INCLUDE) $(CXX_COMMON)\
- 	 -L$(FASTJET3_LIB) -Wl,-rpath,$(FASTJET3_LIB) -lfastjet\
-@@ -118,7 +118,7 @@
- endif
- 
- # FASTJET3 with modified Mass-Drop Tagger.
--main74: $$@.cc $(PREFIX_LIB)/libpythia8.a
-+main74: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(FASTJET3_USE),true)
- 	$(CXX) $< -o $@ -I$(FASTJET3_INCLUDE) $(CXX_COMMON)\
- 	 -L$(FASTJET3_LIB) -Wl,-rpath,$(FASTJET3_LIB) -lfastjet -lRecursiveTools\
-@@ -128,7 +128,7 @@
- endif
- 
- # FASTJET3 and HEPMC2.
--main81 main82 main83 main84: $$@.cc $(PREFIX_LIB)/libpythia8.a
-+main81 main82 main83 main84: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(FASTJET3_USE)$(HEPMC2_USE),truetrue)
- 	$(CXX) $< -o $@ -I$(FASTJET3_INCLUDE) -I$(HEPMC2_INCLUDE) $(CXX_COMMON)\
- 	 -L$(HEPMC2_LIB) -Wl,-rpath,$(HEPMC2_LIB) -lHepMC\
-@@ -139,7 +139,7 @@
- endif
- 
- # ROOT (turn off all warnings for readability).
--main91: $$@.cc $(PREFIX_LIB)/libpythia8.a
-+main91: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(ROOT_USE),true)
- 	$(CXX) $< -o $@ -w -I$(ROOT_INCLUDE) $(CXX_COMMON)\
- 	 `$(ROOTBIN)root-config --cflags`\
-@@ -147,7 +147,7 @@
- else
- 	@echo "Error: $@ requires ROOT"
- endif
--main92: $$@.cc $(PREFIX_LIB)/libpythia8.a main92.so
-+main92: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX) main92.so
- ifeq ($(ROOT_USE),true)
- 	$(CXX) $< main92.so -o $@ -w -I$(ROOT_INCLUDE) $(CXX_COMMON)\
- 	 `$(ROOTBIN)root-config --cflags` -Wl,-rpath,./\
-@@ -155,7 +155,7 @@
- else
- 	@echo "Error: $@ requires ROOT"
- endif
--main92.so: main92Dct.cc $(PREFIX_LIB)/libpythia8.a
-+main92.so: main92Dct.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- 	$(CXX) $< -o $@ -w -I$(ROOT_INCLUDE) $(CXX_SHARED) $(CXX_COMMON)\
- 	 `$(ROOTBIN)root-config --cflags`
- main92Dct.cc: main92.h main92LinkDef.h
-@@ -164,7 +164,7 @@
- 
- # main93 with several dependencies. It is assumed that
- # Rivet and YODA are installed to system path or appended to it.
--main93: $$@.cc $(PREFIX_LIB)/libpythia8.a main93.so
-+main93: $$@.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX) main93.so
- ifeq ($(ROOT_USE),true)
- 	$(CXX) $< main93.so -o $@ -DUSE_ROOT -DUSE_YODA -std=c++11 -w -I$(ROOT_INCLUDE) $(CXX_COMMON)\
- 	 `$(ROOTBIN)root-config --cflags` -Wl,-rpath,./\
-@@ -174,7 +174,7 @@
- 	$(CXX) $< -o $@ -DUSE_YODA -std=c++11 -w $(CXX_COMMON) -lYODA\
- 	 -lHepMC -lRivet  $(GZIP_INC) $(GZIP_FLAGS)
- endif
--main93.so: main93Dct.cc $(PREFIX_LIB)/libpythia8.a
-+main93.so: main93Dct.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- ifeq ($(ROOT_USE),true)
- 	$(CXX) $< -o $@ -w -I$(ROOT_INCLUDE) $(CXX_SHARED) $(CXX_COMMON)\
- 	 `$(ROOTBIN)root-config --cflags`
-@@ -190,11 +190,11 @@
- endif
- 
- # User-written examples for tutorials, without external dependencies.
--mymain% : mymain%.cc $(PREFIX_LIB)/libpythia8.a
-+mymain% : mymain%.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- 	$(CXX) $< -o $@ $(CXX_COMMON) $(GZIP_INC) $(GZIP_FLAGS)
- 
- # Internally used tests, without external dependencies.
--test% : test%.cc $(PREFIX_LIB)/libpythia8.a
-+test% : test%.cc $(PREFIX_LIB)/libpythia8$(LIB_SUFFIX)
- 	$(CXX) $< -o $@ $(CXX_COMMON) $(GZIP_INC) $(GZIP_FLAGS)
- 
- # Clean.



More information about the arch-commits mailing list