diff --git a/tkonlinesw-2.7.0-fix-gcc46.patch b/tkonlinesw-2.7.0-fix-gcc46.patch
deleted file mode 100644
index 87307eea8ba..00000000000
--- a/tkonlinesw-2.7.0-fix-gcc46.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-diff --git a/FecSoftwareV3_0/generic/include/FecExceptionHandler.h b/FecSoftwareV3_0/generic/include/FecExceptionHandler.h
-index d12892e..ce95d47 100755
---- a/FecSoftwareV3_0/generic/include/FecExceptionHandler.h
-+++ b/FecSoftwareV3_0/generic/include/FecExceptionHandler.h
-@@ -778,7 +778,7 @@ class FecExceptionHandler {
- */
- static void setFrame ( tscType8 *dst, tscType8 *src, bool dAck = false ) {
-
-- unsigned int realSize = src[2] & FEC_LENGTH_2BYTES ? ((src[2] & 0x7F) << 8 | src[3] + 1 +3) : src[2]+3 ;
-+ unsigned int realSize = src[2] & FEC_LENGTH_2BYTES ? (((src[2] & 0x7F) << 8) | (src[3] + 1 +3)) : src[2]+3 ;
- // ^ size is two bytes
- // ^ dst src length
- // ^ if dAck is set
-diff --git a/FecSoftwareV3_0/generic/include/FecRingRegisters.h b/FecSoftwareV3_0/generic/include/FecRingRegisters.h
-index 85184fa..5274970 100755
---- a/FecSoftwareV3_0/generic/include/FecRingRegisters.h
-+++ b/FecSoftwareV3_0/generic/include/FecRingRegisters.h
-@@ -462,7 +462,7 @@ class FecRingRegisters {
- */
- static std::string decodeFrame ( tscType8 *frame ) {
-
-- int realSize = frame[2] & FEC_LENGTH_2BYTES ? ((frame[2] & 0x7F) << 8 | frame[3] + 1) : frame[2] ;
-+ int realSize = frame[2] & FEC_LENGTH_2BYTES ? (((frame[2] & 0x7F) << 8) | (frame[3] + 1)) : frame[2] ;
-
- if (realSize != 0) {
-
-diff --git a/FecSoftwareV3_0/generic/include/ParameterDescription.h b/FecSoftwareV3_0/generic/include/ParameterDescription.h
-index 7472b92..1f6c0c5 100755
---- a/FecSoftwareV3_0/generic/include/ParameterDescription.h
-+++ b/FecSoftwareV3_0/generic/include/ParameterDescription.h
-@@ -196,7 +196,6 @@ class ParameterDescription {
- tscType16 *val16 ;
- tscType32 *val32 ;
- double *valDble ;
-- std::string *valString ;
-
- switch (type_) {
- case INTEGER8:
-@@ -223,7 +222,6 @@ class ParameterDescription {
- break ;
- case STRING:
- valConvert_ = new std::string (value_) ;
-- valString = (std::string *)valConvert_ ;
- break ;
- }
- }
diff --git a/tkonlinesw-toolfile.spec b/tkonlinesw-toolfile.spec
index be41f9f9233..1cf912f3e29 100644
--- a/tkonlinesw-toolfile.spec
+++ b/tkonlinesw-toolfile.spec
@@ -18,6 +18,7 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/tkonlinesw.xml
+
diff --git a/tkonlinesw.spec b/tkonlinesw.spec
index aa8e364900a..fb662c5a4d2 100644
--- a/tkonlinesw.spec
+++ b/tkonlinesw.spec
@@ -1,10 +1,9 @@
-### RPM external tkonlinesw 2.7.0
+### RPM external tkonlinesw 4.0.0-1
%define projectname trackerDAQ
-%define releasename %{projectname}-%{realversion}
-Source0: http://cms-trackerdaq-service.web.cern.ch/cms-trackerdaq-service/download/sources/trackerDAQ-2.7.0-10.tgz
+%define releasename %{projectname}-4.0-tkonline
+Source0: http://cms-trackerdaq-service.web.cern.ch/cms-trackerdaq-service/download/sources/trackerDAQ-%{realversion}.tgz
Patch0: tkonlinesw-2.7.0-macosx
-Patch1: tkonlinesw-2.7.0-fix-gcc46
# NOTE: given how broken the standard build system is
# on macosx, it's not worth fixing it.
@@ -20,6 +19,7 @@ Requires: oracle
Requires: xerces-c
Requires: gmake
Requires: systemtools
+Requires: root
%prep
%setup -q -n %releasename
@@ -28,7 +28,6 @@ case %cmsos in
%patch0 -p1
;;
esac
-%patch1 -p1
# Clean up some mysterious old build within the sources that screws
# up the install by copying in an old libFed9UUtils.so
# (this is really needed)
@@ -38,8 +37,6 @@ perl -p -i -e "s|-Werror||" FecSoftwareV3_0/generic/Makefile
%build
-echo "pwd: $PWD"
-
###############################################################################
# Tracker Specific Definitions for running, should just be this ...
################################################################################
@@ -69,7 +66,6 @@ export ENV_CMS_TK_LASTGBOARD=%{_builddir}/%releasename/LAS
# We use an empty directory because the path neeeds to exist.
mkdir -p %i/dummy/Linux/lib
export ENV_CMS_TK_HAL_ROOT=%{i}/dummy/Linux
-export ROOTSYS=%{i}/dummy/Linux
export ENV_CMS_TK_CAEN_ROOT=%{i}/dummy/Linux
export ENV_CMS_TK_SBS_ROOT=%{i}/dummy/Linux
export ENV_CMS_TK_TTC_ROOT=%{i}/dummy/Linux
@@ -143,6 +139,6 @@ esac
case %cmsos in
slc*)
# Option --prefix in configure is not working yet, using tar:
- tar -c -C %{_builddir}/%{releasename}/opt/%{projectname} --exclude "libcppunit.so" include lib | tar -x -C %{i}
+ tar -c -C %{_builddir}/%{releasename}/opt/%{projectname} include lib | tar -x -C %{i}
;;
esac