root/root-system-pythia.patch
Mattias Ellert ea40f6d9b5 Update to 6.12.04
Drop patches accepted upstream
Drop previously backported patches
Unbundle jsroot in root-net-http
Add hack to work around broken charmaps in StandardSymbolsPS.otf
Use local static script and style files for JupyROOT
Fix some javascript errors
Fix build rules for test binaries so that they are not installed
Address memory usage issue for ARM build
Drop pre-minified javascript and style files (Fedora packaging guidelines)
Enable builds on ppc/ppc64/ppc64le (do not pass all tests, but the list
  of failing tests is much shorter with this release)
Add dependency on python[23]-jsmva to python[23]-jupyroot
New sub-packages: root-gui-canvaspainter, root-gui-webdisplay and
  root-hist-draw (not for EPEL 7 since they are root7 specific and
  require c++-14)
2018-01-17 07:13:04 +01:00

42 lines
1.4 KiB
Diff

diff -ur root-6.12.04.orig/tutorials/pythia/pythia8.C root-6.12.04/tutorials/pythia/pythia8.C
--- root-6.12.04.orig/tutorials/pythia/pythia8.C 2017-12-13 08:27:42.000000000 +0100
+++ root-6.12.04/tutorials/pythia/pythia8.C 2018-01-10 07:01:23.215029332 +0100
@@ -8,11 +8,6 @@
/// root > .x pythia8.C
/// ~~~
///
-/// Note that before executing this script,
-///
-/// - the env variable PYTHIA8 must point to the pythia8100 (or newer) directory
-/// - the env variable PYTHIA8DATA must be defined and it must point to $PYTHIA8/xmldoc
-///
/// \macro_code
///
/// \author Andreas Morsch
@@ -27,26 +22,6 @@
void pythia8(Int_t nev = 100, Int_t ndeb = 1)
{
- const char *p8dataenv = gSystem->Getenv("PYTHIA8DATA");
- if (!p8dataenv) {
- const char *p8env = gSystem->Getenv("PYTHIA8");
- if (!p8env) {
- Error("pythia8.C",
- "Environment variable PYTHIA8 must contain path to pythia directory!");
- return;
- }
- TString p8d = p8env;
- p8d += "/xmldoc";
- gSystem->Setenv("PYTHIA8DATA", p8d);
- }
-
- const char* path = gSystem->ExpandPathName("$PYTHIA8DATA");
- if (gSystem->AccessPathName(path)) {
- Error("pythia8.C",
- "Environment variable PYTHIA8DATA must contain path to $PYTHIA8/xmldoc directory !");
- return;
- }
-
// Load libraries
gSystem->Load("libEG");
gSystem->Load("libEGPythia8");