Skip to content

Commit 8bad58f

Browse files
committed
apply patch to fix JupyROOT
1 parent 390e680 commit 8bad58f

File tree

4 files changed

+48
-7
lines changed

4 files changed

+48
-7
lines changed

.SRCINFO

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pkgbase = root
22
pkgdesc = C++ data analysis framework and interpreter from CERN with extra features enabled.
33
pkgver = 6.08.00
4-
pkgrel = 2
4+
pkgrel = 3
55
url = http://root.cern.ch
66
arch = i686
77
arch = x86_64
@@ -32,15 +32,17 @@ pkgbase = root
3232
optdepends = tcsh: Legacy CSH support
3333
options = !emptydirs
3434
source = https://root.cern.ch/download/root_v6.08.00.source.tar.gz
35+
source = JupyROOT_fix.patch
3536
source = root.sh
3637
source = root.xml
3738
source = rootd
3839
source = settings.cmake
3940
sha256sums = 388b4158c6e5706418031060c52c4e6b89cd8856ba06bf11c550eeb1759615d9
41+
sha256sums = a17309295f998ed826dcbf1b5d04de7ed44d64c35221806c75b775796578783d
4042
sha256sums = 9d1f8e7ad923cb5450386edbbce085d258653c0160419cdd6ff154542cc32bd7
4143
sha256sums = b103d46705883590d9e07aafb890ec1150f63dc2ca5f40d67e6ebef49a6d0a32
4244
sha256sums = 3c45b03761d5254142710b7004af0077f18efece7c95511910140d0542c8de8a
43-
sha256sums = e5e236ab8ec21136d97d696648ce8f2448b196f40a2f90bbfd450bc186df94c2
45+
sha256sums = 40503aebd8a0ab5380a24d69145cf7d93d483d4d9330e4c23fb04e55c9ed2caf
4446

4547
pkgname = root
4648

JupyROOT_fix.patch

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
diff -aur root-6.08.00_old/bindings/pyroot/JupyROOT/cppcompleter.py root-6.08.00/bindings/pyroot/JupyROOT/cppcompleter.py
2+
--- root-6.08.00_old/bindings/pyroot/JupyROOT/cppcompleter.py 2016-11-16 22:45:36.414079070 +0000
3+
+++ root-6.08.00/bindings/pyroot/JupyROOT/cppcompleter.py 2016-11-16 22:47:02.314603898 +0000
4+
@@ -5,7 +5,7 @@
5+
# Author: Enric Tejedor <enric.tejedor.saavedra@cern.ch> CERN
6+
#-----------------------------------------------------------------------------
7+
8+
-import utils
9+
+from JupyROOT import utils
10+
import ROOT
11+
12+
# Jit a wrapper for the ttabcom
13+
diff -aur root-6.08.00_old/bindings/pyroot/JupyROOT/utils.py root-6.08.00/bindings/pyroot/JupyROOT/utils.py
14+
--- root-6.08.00_old/bindings/pyroot/JupyROOT/utils.py 2016-11-16 22:45:36.414079070 +0000
15+
+++ root-6.08.00/bindings/pyroot/JupyROOT/utils.py 2016-11-16 22:47:33.781463543 +0000
16+
@@ -14,7 +14,7 @@
17+
import itertools
18+
import re
19+
import fnmatch
20+
-import handlers
21+
+from JupyROOT import handlers
22+
import time
23+
from hashlib import sha1
24+
from contextlib import contextmanager
25+
@@ -24,7 +24,7 @@
26+
from IPython.core.extensions import ExtensionManager
27+
import IPython.display
28+
import ROOT
29+
-import cppcompleter
30+
+from JupyROOT import cppcompleter
31+
32+
# We want iPython to take over the graphics
33+
ROOT.gROOT.SetBatch()

PKGBUILD

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
pkgname=root
88
pkgver=6.08.00
9-
pkgrel=2
9+
pkgrel=3
1010
pkgdesc='C++ data analysis framework and interpreter from CERN with extra features enabled.'
1111
arch=('i686' 'x86_64')
1212
url='http://root.cern.ch'
@@ -39,18 +39,23 @@ optdepends=('gcc-fortran: Enable the Fortran components of ROOT'
3939
)
4040
options=('!emptydirs')
4141
source=("https://root.cern.ch/download/root_v${pkgver}.source.tar.gz"
42+
'JupyROOT_fix.patch'
4243
'root.sh'
4344
'root.xml'
4445
'rootd'
4546
'settings.cmake')
4647
sha256sums=('388b4158c6e5706418031060c52c4e6b89cd8856ba06bf11c550eeb1759615d9'
48+
'a17309295f998ed826dcbf1b5d04de7ed44d64c35221806c75b775796578783d'
4749
'9d1f8e7ad923cb5450386edbbce085d258653c0160419cdd6ff154542cc32bd7'
4850
'b103d46705883590d9e07aafb890ec1150f63dc2ca5f40d67e6ebef49a6d0a32'
4951
'3c45b03761d5254142710b7004af0077f18efece7c95511910140d0542c8de8a'
50-
'e5e236ab8ec21136d97d696648ce8f2448b196f40a2f90bbfd450bc186df94c2')
52+
'40503aebd8a0ab5380a24d69145cf7d93d483d4d9330e4c23fb04e55c9ed2caf')
5153
prepare(){
5254
cd ${pkgname}-${pkgver}
5355

56+
# Fix JupyROOT inheritance
57+
patch -p1 -i ${srcdir}/JupyROOT_fix.patch
58+
5459
2to3 -w etc/dictpch/makepch.py 2>&1 > /dev/null
5560
}
5661

settings.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ set (builtin_ftgl OFF CACHE BOOL "" FORCE)
1010
set (builtin_freetype OFF CACHE BOOL "" FORCE)
1111
set (builtin_gl2ps OFF CACHE BOOL "" FORCE)
1212
set (builtin_glew OFF CACHE BOOL "" FORCE)
13-
set (builtin_pcre OFF CACHE BOOL "" FORCE)
14-
set (builtin_zlib OFF CACHE BOOL "" FORCE)
1513
set (builtin_lzma OFF CACHE BOOL "" FORCE)
1614
set (builtin_llvm ON CACHE BOOL "" FORCE)
15+
set (builtin_pcre OFF CACHE BOOL "" FORCE)
1716
set (builtin_tbb OFF CACHE BOOL "" FORCE)
1817
set (builtin_unuran OFF CACHE BOOL "" FORCE)
18+
set (builtin_zlib OFF CACHE BOOL "" FORCE)
1919
set (castor OFF CACHE BOOL "" FORCE)
2020
set (chirp OFF CACHE BOOL "" FORCE)
2121
set (cling ON CACHE BOOL "" FORCE)
@@ -31,6 +31,7 @@ set (glite OFF CACHE BOOL "" FORCE)
3131
set (gnuinstall ON CACHE BOOL "" FORCE)
3232
set (gsl_shared ON CACHE BOOL "" FORCE)
3333
set (hdfs OFF CACHE BOOL "" FORCE)
34+
set (http ON CACHE BOOL "" FORCE)
3435
set (mathmore ON CACHE BOOL "" FORCE)
3536
set (minuit2 ON CACHE BOOL "" FORCE)
3637
set (monalisa OFF CACHE BOOL "" FORCE)
@@ -50,6 +51,6 @@ set (tbb ON CACHE BOOL "" FORCE)
5051
set (testing OFF CACHE BOOL "" FORCE)
5152
set (tmva ON CACHE BOOL "" FORCE)
5253
set (unuran ON CACHE BOOL "" FORCE)
54+
set (x11 ON CACHE BOOL "" FORCE)
5355
set (xft ON CACHE BOOL "" FORCE)
5456
set (xrootd ON CACHE BOOL "" FORCE)
55-
set (x11 ON CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)