--- tau-2.16.4.orig/Makefile +++ tau-2.16.4/Makefile @@ -89,7 +89,7 @@ else echo System previously configured as a `utils/ConfigQuery -arch` ; fi @echo "*********** RECURSIVELY MAKING SUBDIRECTORIES ***********" @for i in ${EXPORTS}; do (echo "*** COMPILING $$i DIRECTORY"; cd $$i;\ - $(MAKE) "MAKE=$(MAKE)" "CC=$(CC)" "CXX=$(CXX)" "LINKER=$(LINKER)" ); done + $(MAKE) "MAKE=$(MAKE)" "CC=$(CC)" "CXX=$(CXX)" "LINKER=$(LINKER)" ) || exit $?; done @echo "***************** DONE ************************" tests: --- tau-2.16.4.orig/include/tau_config.h +++ tau-2.16.4/include/tau_config.h @@ -0,0 +1 @@ +#define TAU_CONFIG " -arch=default" --- tau-2.16.4.orig/src/Profile/Makefile +++ tau-2.16.4/src/Profile/Makefile @@ -40,6 +40,9 @@ #KAI#CEXTRA = --one_per #ENDIF# ############################################## +# Use -fPIC, so that the shared lib is correct +#GNU#CEXTRA = -fPIC #ENDIF# + ############################################## #PGICC#PRELINK_PHASE = $(CXX) --prelink_objects $(OBJS) #ENDIF# #PGINOPRELINK#PRELINK_PHASE = #ENDIF# @@ -335,139 +338,139 @@ $(JDKDIR)/bin/javac Profile.java Profiler.o : Profiler.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< MetaData.o : MetaData.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TulipTimers.o : TulipTimers.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< UserEvent.o : UserEvent.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< FunctionInfo.o : FunctionInfo.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< RtsLayer.o : RtsLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< RtsThread.o : RtsThread.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< ProfileParam.o : ProfileParam.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< pcxx_events.o : pcxx_events.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< Tracer.o : Tracer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PthreadLayer.o : PthreadLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< SprocLayer.o : SprocLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PapiThreadLayer.o : PapiThreadLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< JavaThreadLayer.o : JavaThreadLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TulipThreadLayer.o : TulipThreadLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauCAPI.o : TauCAPI.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauFAPI.o : TauFAPI.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauJAPI.o : TauJAPI.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauMapping.o : TauMapping.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauHooks.o : TauHooks.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauJava.o : TauJava.cpp - $(CXX) $(CXXFLAGS) -c TauJava.cpp + $(CXX) $(CXXFLAGS) -c $< PclLayer.o : PclLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PapiLayer.o : PapiLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< MultipleCounters.o : MultipleCounters.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauDisable.o : TauDisable.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< OpenMPLayer.o : OpenMPLayer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauOpari.o : TauOpari.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauKojakOpari.o : TauKojakOpari.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauLinuxTimers.o : TauLinuxTimers.c $(HDRS) - gcc -c $(USER_OPT) $(@:.o=.c) + gcc -c $(CEXTRA) $(USER_OPT) $< TauCallPath.o : TauCallPath.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PyGroups.o : PyGroups.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PyExceptions.o : PyExceptions.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PyDatabase.o : PyDatabase.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PyBindings.o : PyBindings.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PyTimer.o : PyTimer.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< PyTau.o : PyTau.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauMuse.o : TauMuse.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauMuseFilters.o : TauMuseFilters.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauMuseHandlers.o : TauMuseHandlers.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauMusePackages.o : TauMusePackages.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauCompensate.o : TauCompensate.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauHandler.o : TauHandler.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< TauMemory.o : TauMemory.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) + $(CXX) $(CXXFLAGS) -c $< ktau_syscall.o : ktau_syscall.c $(HDRS) - $(CC) $(CXXFLAGS) -c $(@:.o=.c) + $(CC) $(CXXFLAGS) -c $< -$(TAUROOT)/src/Profile/TauPGIHelper.o : TauPGIHelper.cpp $(HDRS) - $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) -o $@ +TauPGIHelper.o : TauPGIHelper.cpp $(HDRS) + $(CXX) $(CXXFLAGS) -c $< clean : --- tau-2.16.4.orig/utils/FixMakefile.sed +++ tau-2.16.4/utils/FixMakefile.sed @@ -0,0 +1,53 @@ +s/\(.*\)#ENDIF#\(.*\)/\2\1#ENDIF#/g +s/^CONFIG_ARCH=\(.*\)/CONFIG_ARCH=default/g +s/^TAU_ARCH=\(.*\)/TAU_ARCH=default/g +s@^TAUROOT=\(.*\)@TAUROOT=@g +s@^TULIPDIR=\(.*\)@TULIPDIR=@g +s@^TAUGCCLIBOPTS=\(.*\)@TAUGCCLIBOPTS=@g +s@^TAUGCCLIBDIR=\(.*\)@TAUGCCLIBDIR=@g +s@^PCLDIR=\(.*\)@PCLDIR=@g +s@^PAPIDIR=\(.*\)@PAPIDIR=@g +s@^PAPISUBDIR=\(.*\)@PAPISUBDIR=@g +s@^PDTDIR=\(.*\)@PDTDIR=@g +s@^PDTCOMPDIR=\(.*\)@PDTCOMPDIR=@g +s@^DYNINSTDIR=\(.*\)@DYNINSTDIR=@g +s@^JDKDIR=\(.*\)@JDKDIR=@g +s@^OPARIDIR=\(.*\)@OPARIDIR=@g +s@^TAU_OPARI_TOOL=\(.*\)@TAU_OPARI_TOOL=@g +s@^EPILOGDIR=\(.*\)@EPILOGDIR=@g +s@^EPILOGBINDIR=\(.*\)@EPILOGBINDIR=@g +s@^EPILOGLIBDIR=\(.*\)@EPILOGLIBDIR=@g +s@^EPILOGEXTRALINKCMD=\(.*\)@EPILOGEXTRALINKCMD=@g +s@^EPILOGINCDIR=\(.*\)@EPILOGINCDIR=@g +s@^PERFINCDIR=\(.*\)@PERFINCDIR=@g +s@^PERFLIBDIR=\(.*\)@PERFLIBDIR=@g +s@^PERFLIBRARY=\(.*\)@PERFLIBRARY=@g +s@^VAMPIRTRACEDIR=\(.*\)@VAMPIRTRACEDIR=@g +s@^EXTRADIR=\(.*\)@EXTRADIR=@g +s@^EXTRADIRCXX=\(.*\)@EXTRADIRCXX=@g +s@^VTFDIR=\(.*\)@VTFDIR=@g +s@^OTFDIR=\(.*\)@OTFDIR=@g +s@^SLOG2DIR=\(.*\)@SLOG2DIR=@g +s@^PYTHON_INCDIR=\(.*\)@PYTHON_INCDIR=@g +s@^PYTHON_LIBDIR=\(.*\)@PYTHON_LIBDIR=@g +s@^TAU_CONFIG=\(.*\)@TAU_CONFIG=@g +s@^TAU_MPI_INC=\(.*\)@TAU_MPI_INC=@g +s@^TAU_MPI_LIB=\(.*\)@TAU_MPI_LIB=@g +s@^TAU_MPI_FLIB=\(.*\)@TAU_MPI_FLIB=@g +s@^TAU_MPILIB_DIR=\(.*\)@TAU_MPILIB_DIR=@g +s@^TAU_PREFIX_INSTALL_DIR=\(.*\)@TAU_PREFIX_INSTALL_DIR=@g +s/#PVM_INSTALLED#\(.*\)/\1#PVM_INSTALLED#/g +s/^PVM_ARCH=\(.*\)/PVM_ARCH=default/g +s@^PVM_DIR=\(.*\)@PVM_DIR=default@g +s@^CONFIG_CC=\(.*\)@CONFIG_CC=gcc@g +s@^CONFIG_CXX=\(.*\)@CONFIG_CXX=g++@g +s@^PCXX_OPT=\(.*\)@PCXX_OPT=-g@g +s@^USER_OPT=\(.*\)@USER_OPT=-g@g +s@^PDT_CXX=\(.*\)@PDT_CXX=@g +s@^TAU_SHMEM_INC=\(.*\)@TAU_SHMEM_INC=@g +s@^TAU_SHMEM_LIB=\(.*\)@TAU_SHMEM_LIB=@g +s@^CHARMDIR=\(.*\)@CHARMDIR=@g +s@^FORCEIA32=\(.*\)@FORCEIA32=@g +s@^KTAU_INCDIR=\(.*\)@KTAU_INCDIR=@g +s@^KTAU_INCUSERDIR=\(.*\)@KTAU_INCUSERDIR=@g +s@^KTAU_LIB=\(.*\)@KTAU_LIB=@g --- tau-2.16.4.orig/debian/patches/01-generated.diff +++ tau-2.16.4/debian/patches/01-generated.diff @@ -0,0 +1,112 @@ +diff --git a/tools/src/common/Makefile b/tools/src/common/Makefile +index 4f81836..372bfa5 100644 +--- a/tools/src/common/Makefile ++++ b/tools/src/common/Makefile +@@ -1,6 +1,6 @@ + +-CONFIG_ARCH=apple +-TAUROOT=/Users/khuck/tau2 ++CONFIG_ARCH=default ++TAUROOT= + TOOLS_SRC=$(TAUROOT)/tools/src + + +diff --git a/tools/src/perfdmf/Makefile b/tools/src/perfdmf/Makefile +index 3bab7dd..e6ef723 100644 +--- a/tools/src/perfdmf/Makefile ++++ b/tools/src/perfdmf/Makefile +@@ -1,6 +1,6 @@ + # settings set automatically by the configure script. +-CONFIG_ARCH=apple +-TAUROOT=/Users/khuck/tau2 ++CONFIG_ARCH=default ++TAUROOT= + + + # these are classpaths for the build. The second classpath is for the +diff --git a/tools/src/vis/Makefile b/tools/src/vis/Makefile +index 3bb4664..1aecf97 100644 +--- a/tools/src/vis/Makefile ++++ b/tools/src/vis/Makefile +@@ -1,6 +1,6 @@ + +-CONFIG_ARCH=i386_linux +-TAUROOT=/home/amorris/tau2 ++CONFIG_ARCH=default ++TAUROOT= + TOOLS_SRC=$(TAUROOT)/tools/src + + +diff --git a/tools/src/windows/examples/dll/Makefile b/tools/src/windows/examples/dll/Makefile +old mode 100755 +new mode 100644 +diff --git a/tools/src/windows/examples/threads/Makefile b/tools/src/windows/examples/threads/Makefile +old mode 100755 +new mode 100644 +diff --git a/utils/FixMakefile.sed b/utils/FixMakefile.sed +index 6bcad35..b235ec8 100644 +--- a/utils/FixMakefile.sed ++++ b/utils/FixMakefile.sed +@@ -1,5 +1,33 @@ + s/\(.*\)#ENDIF#\(.*\)/\2\1#ENDIF#/g + s/^CONFIG_ARCH=\(.*\)/CONFIG_ARCH=default/g ++s/^TAU_ARCH=\(.*\)/TAU_ARCH=default/g ++s@^TAUROOT=\(.*\)@TAUROOT=@g ++s@^TULIPDIR=\(.*\)@TULIPDIR=@g ++s@^TAUGCCLIBOPTS=\(.*\)@TAUGCCLIBOPTS=@g ++s@^TAUGCCLIBDIR=\(.*\)@TAUGCCLIBDIR=@g ++s@^PCLDIR=\(.*\)@PCLDIR=@g ++s@^PAPIDIR=\(.*\)@PAPIDIR=@g ++s@^PAPISUBDIR=\(.*\)@PAPISUBDIR=@g ++s@^PDTDIR=\(.*\)@PDTDIR=@g ++s@^PDTCOMPDIR=\(.*\)@PDTCOMPDIR=@g ++s@^DYNINSTDIR=\(.*\)@DYNINSTDIR=@g ++s@^JDKDIR=\(.*\)@JDKDIR=@g ++s@^OPARIDIR=\(.*\)@OPARIDIR=@g ++s@^TAU_OPARI_TOOL=\(.*\)@TAU_OPARI_TOOL=@g ++s@^EPILOGDIR=\(.*\)@EPILOGDIR=@g ++s@^EXTRADIR=\(.*\)@EXTRADIR=@g ++s@^EXTRADIRCXX=\(.*\)@EXTRADIRCXX=@g ++s@^VTFDIR=\(.*\)@VTFDIR=@g ++s@^OTFDIR=\(.*\)@OTFDIR=@g ++s@^SLOG2DIR=\(.*\)@SLOG2DIR=@g ++s@^PYTHON_INCDIR=\(.*\)@PYTHON_INCDIR=@g ++s@^PYTHON_LIBDIR=\(.*\)@PYTHON_LIBDIR=@g ++s@^TAU_CONFIG=\(.*\)@TAU_CONFIG=@g ++s@^TAU_MPI_INC=\(.*\)@TAU_MPI_INC=@g ++s@^TAU_MPI_LIB=\(.*\)@TAU_MPI_LIB=@g ++s@^TAU_MPI_FLIB=\(.*\)@TAU_MPI_FLIB=@g ++s@^TAU_MPILIB_DIR=\(.*\)@TAU_MPILIB_DIR=@g ++s@^TAU_PREFIX_INSTALL_DIR=\(.*\)@TAU_PREFIX_INSTALL_DIR=@g + s/#PVM_INSTALLED#\(.*\)/\1#PVM_INSTALLED#/g + s/^PVM_ARCH=\(.*\)/PVM_ARCH=default/g + s@^PVM_DIR=\(.*\)@PVM_DIR=default@g +@@ -7,3 +35,8 @@ s@^CONFIG_CC=\(.*\)@CONFIG_CC=gcc@g + s@^CONFIG_CXX=\(.*\)@CONFIG_CXX=g++@g + s@^PCXX_OPT=\(.*\)@PCXX_OPT=-g@g + s@^USER_OPT=\(.*\)@USER_OPT=-g@g ++s@^PDT_CXX=\(.*\)@PDT_CXX=@g ++s@^TAU_SHMEM_INC=\(.*\)@TAU_SHMEM_INC=@g ++s@^TAU_SHMEM_LIB=\(.*\)@TAU_SHMEM_LIB=@g ++s@^CHARMDIR=\(.*\)@CHARMDIR=@g ++s@^FORCEIA32=\(.*\)@FORCEIA32=@g +diff --git a/utils/csUI/Makefile b/utils/csUI/Makefile +index 0061432..a2b9b78 100644 +--- a/utils/csUI/Makefile ++++ b/utils/csUI/Makefile +@@ -19,12 +19,12 @@ #** Documentation : See http://ww + #**************************************************************************** + + ########### Automatically modified by the configure script ############ +-CONFIG_ARCH=solaris2 ++CONFIG_ARCH=default + CONFIG_CC=gcc + CONFIG_CXX=g++ + PCXX_OPT=-g +-USER_OPT= +-TAUROOT=/tmp/sameer/tau2 ++USER_OPT=-g ++TAUROOT= + XFORMSROOT=/local/apps/xforms/FORMS + ####################################################################### + --- tau-2.16.4.orig/debian/patches/02-build-errors.diff +++ tau-2.16.4/debian/patches/02-build-errors.diff @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 16dca22..00aba25 100644 +--- a/Makefile ++++ b/Makefile +@@ -87,7 +87,7 @@ exports : + else echo System previously configured as a `utils/ConfigQuery -arch` ; fi + @echo "*********** RECURSIVELY MAKING SUBDIRECTORIES ***********" + @for i in ${EXPORTS}; do (echo "*** COMPILING $$i DIRECTORY"; cd $$i;\ +- $(MAKE) "MAKE=$(MAKE)" "CC=$(CC)" "CXX=$(CXX)" "LINKER=$(LINKER)" ); done ++ $(MAKE) "MAKE=$(MAKE)" "CC=$(CC)" "CXX=$(CXX)" "LINKER=$(LINKER)" ) || exit $?; done + @echo "***************** DONE ************************" + + tests: --- tau-2.16.4.orig/debian/patches/03-vpath.diff +++ tau-2.16.4/debian/patches/03-vpath.diff @@ -0,0 +1,182 @@ +diff --git a/src/Profile/Makefile b/src/Profile/Makefile +index 734bb42..be365f0 100644 +--- a/src/Profile/Makefile ++++ b/src/Profile/Makefile +@@ -288,133 +288,133 @@ Profile.class : Profile.java + $(JDKDIR)/bin/javac Profile.java + + Profiler.o : Profiler.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TulipTimers.o : TulipTimers.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + UserEvent.o : UserEvent.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + FunctionInfo.o : FunctionInfo.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + RtsLayer.o : RtsLayer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + RtsThread.o : RtsThread.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + ProfileParam.o : ProfileParam.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + pcxx_events.o : pcxx_events.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + Tracer.o : Tracer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + PthreadLayer.o : PthreadLayer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + SprocLayer.o : SprocLayer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + JavaThreadLayer.o : JavaThreadLayer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TulipThreadLayer.o : TulipThreadLayer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauCAPI.o : TauCAPI.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauFAPI.o : TauFAPI.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauJAPI.o : TauJAPI.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauMapping.o : TauMapping.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauHooks.o : TauHooks.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauJava.o : TauJava.cpp +- $(CXX) $(CXXFLAGS) -c TauJava.cpp ++ $(CXX) $(CXXFLAGS) -c $< + + PclLayer.o : PclLayer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + PapiLayer.o : PapiLayer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + MultipleCounters.o : MultipleCounters.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauDisable.o : TauDisable.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + OpenMPLayer.o : OpenMPLayer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauOpari.o : TauOpari.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauKojakOpari.o : TauKojakOpari.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauLinuxTimers.o : TauLinuxTimers.c $(HDRS) +- gcc -c $(@:.o=.c) ++ gcc -c $< + + TauCallPath.o : TauCallPath.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + PyGroups.o : PyGroups.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + PyExceptions.o : PyExceptions.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + PyDatabase.o : PyDatabase.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + PyBindings.o : PyBindings.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + PyTimer.o : PyTimer.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + PyTau.o : PyTau.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauMuse.o : TauMuse.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauMuseFilters.o : TauMuseFilters.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauMuseHandlers.o : TauMuseHandlers.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauMusePackages.o : TauMusePackages.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauCompensate.o : TauCompensate.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauHandler.o : TauHandler.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + TauMemory.o : TauMemory.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) ++ $(CXX) $(CXXFLAGS) -c $< + + ktau_proc_interface.o : ktau_proc_interface.c $(HDRS) +- $(CC) $(CXXFLAGS) -c $(@:.o=.c) ++ $(CC) $(CXXFLAGS) -c $< + +-$(TAUROOT)/src/Profile/TauPGIHelper.o : TauPGIHelper.cpp $(HDRS) +- $(CXX) $(CXXFLAGS) -c $(@:.o=.cpp) -o $@ ++TauPGIHelper.o : TauPGIHelper.cpp $(HDRS) ++ $(CXX) $(CXXFLAGS) -c $< + + + clean : --- tau-2.16.4.orig/debian/patches/04-pic.diff +++ tau-2.16.4/debian/patches/04-pic.diff @@ -0,0 +1,14 @@ +diff --git a/src/Profile/Makefile b/src/Profile/Makefile +index be365f0..ef01e93 100644 +--- a/src/Profile/Makefile ++++ b/src/Profile/Makefile +@@ -40,6 +40,9 @@ ############# For KAI KCC compiler, use + #KAI#CEXTRA = --one_per #ENDIF# + ############################################## + ++# Use -fPIC, so that the shared lib is correct ++#GNU#CEXTRA = -fPIC #ENDIF# ++ + ############################################## + #PGICC#PRELINK_PHASE = $(CXX) --prelink_objects $(OBJS) #ENDIF# + #PGINOPRELINK#PRELINK_PHASE = #ENDIF# --- tau-2.16.4.orig/debian/patches/05-example-fixes.diff +++ tau-2.16.4/debian/patches/05-example-fixes.diff @@ -0,0 +1,65 @@ +diff --git a/examples/fork/Makefile b/examples/fork/Makefile +index 1ebbcfc..2ff28a2 100644 +--- a/examples/fork/Makefile ++++ b/examples/fork/Makefile +@@ -13,7 +13,7 @@ ######################################## + + TAUROOTDIR = ../.. + +-include $(TAUROOTDIR)/include/Makefile ++include $(TAUROOTDIR)/default/lib/Makefile.tau + + CXX = $(TAU_CXX) + +diff --git a/examples/instrument/Makefile b/examples/instrument/Makefile +index c1df0b3..d0ce51e 100644 +--- a/examples/instrument/Makefile ++++ b/examples/instrument/Makefile +@@ -13,7 +13,7 @@ ######################################## + + TAUROOTDIR = ../.. + +-include $(TAUROOTDIR)/include/Makefile ++include $(TAUROOTDIR)/default/lib/Makefile.tau + + CXX = $(TAU_CXX) + +diff --git a/examples/mapping/embedded/Makefile b/examples/mapping/embedded/Makefile +index 4928de3..847692d 100644 +--- a/examples/mapping/embedded/Makefile ++++ b/examples/mapping/embedded/Makefile +@@ -13,7 +13,7 @@ ######################################## + + TAUROOTDIR = ../../.. + +-include $(TAUROOTDIR)/include/Makefile ++include $(TAUROOTDIR)/default/lib/Makefile.tau + + CXX = $(TAU_CXX) + +diff --git a/examples/mapping/external/Makefile b/examples/mapping/external/Makefile +index a84d29c..4472379 100644 +--- a/examples/mapping/external/Makefile ++++ b/examples/mapping/external/Makefile +@@ -13,7 +13,7 @@ ######################################## + + TAUROOTDIR = ../../.. + +-include $(TAUROOTDIR)/include/Makefile ++include $(TAUROOTDIR)/default/lib/Makefile.tau + + CXX = $(TAU_CXX) + +diff --git a/examples/selectiveAccess/Makefile b/examples/selectiveAccess/Makefile +index b0b20f7..3f7c191 100644 +--- a/examples/selectiveAccess/Makefile ++++ b/examples/selectiveAccess/Makefile +@@ -13,7 +13,7 @@ ######################################## + + TAUROOTDIR = ../.. + +-include $(TAUROOTDIR)/include/Makefile ++include $(TAUROOTDIR)/default/lib/Makefile.tau + + CXX = $(TAU_CXX) + --- tau-2.16.4.orig/debian/patches/series +++ tau-2.16.4/debian/patches/series @@ -0,0 +1,6 @@ +# This series applies on GIT commit c5f31268c765dc2a9a31bac7419b2a32a907fe84 +01-generated.diff +02-build-errors.diff +03-vpath.diff +04-pic.diff +05-example-fixes.diff --- tau-2.16.4.orig/debian/README.maint +++ tau-2.16.4/debian/README.maint @@ -0,0 +1,30 @@ +Maintainer notes for the tau package +==================================== + +I currently maintain this package using stgit. There are no tools yet +to help Debian-specific tasks in this matter, so here is how I work: + + - upstream releases imported manually into "upstream" branch + - stgit-managed branch with my stack of patches, including a "debian" +patch at the top of the stack. + - when a release is ready, "stg goto debian", "rm debian/patches/*", +and "stg export -nd debian/patches" to get the patches possible to use +by someone without access to the tree, then remove the debian patch +itself from debian/patches/ and the series file, and "stg refresh" + - build up debian/changelog from "stgit series -d" output + - "cg-tag vX.Y.Z-D" + +I hope to put this tree available on alioth at some point, but it +would not be so useful, since fetching a stgit tree looses the stack +information (as of stgit 0.10). + +Other possible improvements: + +- work out a topic-branch-based scheme to manage the history of +individual patches +- write a tool to automate the various tasks +- maybe explain how someone can reconstruct my working environment +from debian/patches + +-- +Yann Dirson, 2006-09-23. --- tau-2.16.4.orig/debian/TODO +++ tau-2.16.4/debian/TODO @@ -0,0 +1,21 @@ +- allow building without $DISPLAY + +- check PAPI and PCL licences, and maybe package them + +- check MAGNET/MUSE + +- build mpich- and pvm-enabled tools + +- package existing docs if possible + +- investigate installtau usability +- investigate packaging PDT +- investigate an installer for DynInst +- investigate Java support +- build eclipse plugin + +- check other items from + http://www.cs.uoregon.edu/research/paracomp/tau/ + +- investigate writing an openc++-based parser for PDT, to replace the +proprietary one --- tau-2.16.4.orig/debian/changelog +++ tau-2.16.4/debian/changelog @@ -0,0 +1,368 @@ +tau (2.16.4-1) unstable; urgency=low + + * New upstream release, orig tarball cleaned up. + * Etch was released, upload to unstable again. + * Fixed renaming and symlinking of scripts for policy compliance, which + was producing broken links. + + -- Yann Dirson Sat, 19 May 2007 01:01:29 +0200 + +tau (2.16.1-1) experimental; urgency=low + + * New upstream release, cleaned up orig tarball from prebuilt material, + sparing many megabytes and making sure we rebuild everyhing we ship. + + -- Yann Dirson Thu, 15 Feb 2007 22:34:00 +0100 + +tau (2.16-3) experimental; urgency=low + + * Only activate x86 TSC counters (wrongly named "Linux timers") on x86, + ia64, and amd64 processors. + + -- Yann Dirson Fri, 9 Feb 2007 22:50:47 +0100 + +tau (2.16-2) experimental; urgency=low + + * Be sure to have TauLinuxTimers.c compiled with -fPIC. + + -- Yann Dirson Thu, 8 Feb 2007 21:13:23 +0100 + +tau (2.16-1) experimental; urgency=low + + * New upstream release (targetted at lenny, so to experimental for now). + * More debian/rules cleanups. + * Don't install useless files in /etc. + * Use Linux Timers instead of less efficient gettimeofday. + + -- Yann Dirson Wed, 7 Feb 2007 22:48:35 +0100 + +tau (2.15.6b1-4) unstable; urgency=high + + * Create symlinks to pprof and taud under /usr/lib/tau/unknown, so racy + finds them, while keeping tau-racy arch-independant (Closes: #409307). + + -- Yann Dirson Thu, 1 Feb 2007 23:52:40 +0100 + +tau (2.15.6b1-3) unstable; urgency=low + + * Use a wildcard and ship all README* files. + * Fully use dh_movefiles, suppress manual file moves. + * Removed perfexplorer_configure script, which is for the not-yet-done + perfexplorer package, and phaseconvert, which is for the not-yet-done + perfdmf package. + * Removed /etc/tau: the files it contains relate to perfdmf, and most of + them are not meant to be conffiles anyway. + * Cleaned up debian/rules some more. + + -- Yann Dirson Wed, 4 Oct 2006 01:12:47 +0200 + +tau (2.15.6b1-2) unstable; urgency=low + + * Add a debian/pycompat requesting version 2, to make python transition + complete. + * Remove executable bit on include files. + * Moved python shlibs and modules back into python-tau, by restricting + patterns in debian/tau.files. Have to replace previous version of tau + because of this. + * Bumped Standards-version to 3.7.2, no change. + + -- Yann Dirson Tue, 26 Sep 2006 22:17:35 +0200 + +tau (2.15.6b1-1) unstable; urgency=low + + * New upstream release. + * Now has manpages, TODO --. + + * Acknowledge NMU (Closes: #373389). + * Restrict running of dh_pycental to package python-tau, to silence a + complaint about package tau. + * Switch from dh_installexamples to dh_movefiles - incidentally that + causes python example files to get really shipped after their move out + of tau-python-common. + + * Install into debian/tmp to make the rules more standard. + * Converted my handling of the package to stgit, copied + debian/README.maint from tulip package to explain that. + * Switch stamping convention from *-stamp to stamps/*. + + -- Yann Dirson Sun, 24 Sep 2006 19:46:48 +0200 + +tau (2.14.6-2.1) unstable; urgency=low + + * NMU. + * Convert to the updated Python policy. Collapse tau-python-common, + python2.3-dev, python2.4-dev into a python-tau package. Closes: #373389. + + -- Matthias Klose Thu, 13 Jul 2006 19:57:35 +0200 + +tau (2.14.6-2) unstable; urgency=low + + * Rebuilt with g++-4.0. + * Be sure not to install libjogl.so, which is a prebuilt binary related + to the java apps which we do not build yet. + + -- Yann Dirson Wed, 13 Jul 2005 01:22:48 +0200 + +tau (2.14.6-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Mon, 4 Jul 2005 21:01:53 +0200 + +tau (2.14.5-2) unstable; urgency=low + + * Removed production of packages for python 2.1 and 2.2, as those will + be dropped from etch. + * Fixed dependencies ot tau-python-common to refer to 2.3 and 2.4. + * Bumped standards-version to 3.6.2, no change. + + -- Yann Dirson Sun, 3 Jul 2005 12:34:30 +0200 + +tau (2.14.5-1) unstable; urgency=low + + * New upstream release. + * Added a python2.4 package. + + -- Yann Dirson Mon, 20 Jun 2005 22:07:25 +0200 + +tau (2.14.1.1-1) unstable; urgency=low + + * New upstream release. + * Added debian/watch file. + * Added missing URL for upstream tarballs in copyright file. + + -- Yann Dirson Fri, 28 Jan 2005 22:21:41 +0100 + +tau (2.14-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Fri, 12 Nov 2004 19:51:29 +0100 + +tau (2.13.7-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Fri, 24 Sep 2004 23:27:16 +0200 + +tau (2.13.6-1) unstable; urgency=low + + * New upstream release. + * Avoid extra doc files now installed in /usr/lib, ensure CREDITS is + installed in docdir. + * Ensure wrapper scripts for new perfdmf java tool do not get shipped. + + -- Yann Dirson Wed, 23 Jun 2004 21:42:09 +0200 + +tau (2.13.5-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Fri, 12 Mar 2004 21:39:12 +0100 + +tau (2.13.4-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Wed, 3 Mar 2004 21:30:55 +0100 + +tau (2.13.3-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Thu, 8 Jan 2004 22:45:36 +0100 + +tau (2.13.1-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Tue, 9 Dec 2003 21:31:23 +0100 + +tau (2.13-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Wed, 19 Nov 2003 00:52:59 +0100 + +tau (2.12.14-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Sun, 26 Oct 2003 22:30:20 +0100 + +tau (2.12.10-1) unstable; urgency=low + + * New upstream release. + * python packages belong to section "python" (sync with override). + + -- Yann Dirson Tue, 12 Aug 2003 19:09:33 +0200 + +tau (2.12.9.1-1) unstable; urgency=low + + * New upstream release. + * Have tau-racy depend on "wish | tk8.4" instead of "tk8.3". + + -- Yann Dirson Mon, 4 Aug 2003 11:57:20 +0200 + +tau (2.12.9-2) unstable; urgency=low + + * The "just married" release. + * Whoops, fixed i386-ism in debian/rules (Closes: #202972). + + -- Yann Dirson Mon, 28 Jul 2003 13:30:10 +0200 + +tau (2.12.9-1) unstable; urgency=low + + * New upstream release. + * Adapted cleanup rules to renaming of the not-yet-shipped java gui. + * Use dh-buildinfo. + + -- Yann Dirson Tue, 22 Jul 2003 20:31:48 +0200 + +tau (2.12.8-4) unstable; urgency=low + + * Modularized build of python module. + * Fixed src/Profile/Makefile to use make idioms compatible with use of + VPATH. + * Use that to build the bindings for python 2.1 and 2.3 as well. Split + stuff that would overlap into new tau-python-common package. + * Added note about what TAU is in tau-examples description. + * Use -g -O2 by default as per current policy; support "noopt" flag. + * Bumped Standards-Version to 3.5.10. + * Made python examples more easily located through the relevant + packages' doc-dirs. + + -- Yann Dirson Tue, 3 Jun 2003 22:34:18 +0200 + +tau (2.12.8-3) unstable; urgency=low + + * Built the python bindings in a separate shared object, making + python2.2-tau arch:any. + * Fixed some hardcoded refs to linux_i386 in debian/rules. + + -- Yann Dirson Mon, 2 Jun 2003 23:06:23 +0200 + +tau (2.12.8-2) unstable; urgency=low + + * Build bindings for python 2.2 in new python-tau package. + * Moved python examples in that package, and make it replace old + tau-examples. + * Moved xbm and a couple of things from /usr/lib into /usr/share, with + symlinks (lintian). + + -- Yann Dirson Sun, 1 Jun 2003 00:37:26 +0200 + +tau (2.12.8-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Fri, 30 May 2003 13:53:48 +0200 + +tau (2.12.5-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Thu, 27 Mar 2003 00:17:47 +0100 + +tau (2.12.3-1) unstable; urgency=low + + * New upstream release. + * Note: not building new python bindings yet. + + -- Yann Dirson Fri, 14 Mar 2003 12:01:14 +0100 + +tau (2.12.2-1) unstable; urgency=low + + * New upstream release. + * Added a prcs-clean rule to avoid adding too much cruft to the diff. + + -- Yann Dirson Sat, 15 Feb 2003 18:10:35 +0100 + +tau (2.12-2) unstable; urgency=low + + * Rebuilt for g++-3.2 transition. + * Applied upstream fix for build problem with this g++ version. + + -- Yann Dirson Wed, 15 Jan 2003 00:43:46 +0100 + +tau (2.12-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Mon, 6 Jan 2003 23:43:02 +0100 + +tau (2.11.19-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Thu, 31 Oct 2002 00:06:18 +0100 + +tau (2.11.18-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Sat, 17 Aug 2002 00:23:25 +0200 + +tau (2.11.16-2) unstable; urgency=low + + * Add -fPIC to the build of src/Profile/, so that shared libs are OK - + it broke the build on hppa, and is probably the cause of the problems + with mips/mipsel (Closes: #151893). + + -- Yann Dirson Wed, 7 Aug 2002 00:45:34 +0200 + +tau (2.11.16-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Tue, 6 Aug 2002 00:30:08 +0200 + +tau (2.11.15.1-1) unstable; urgency=low + + * New upstream release. + + -- Yann Dirson Mon, 22 Jul 2002 23:14:16 +0200 + +tau (2.11.14-2) unstable; urgency=low + + * Added missing build-dep on tcsh (Closes: #150918). + + -- Yann Dirson Thu, 27 Jun 2002 00:27:54 +0200 + +tau (2.11.14-1) unstable; urgency=low + + * New upstream release. Integrates all of my patches except the + autodetection of strange echo behaviour for ash - reapplied this + one. + * Disable probing for wish, which requires $DISPLAY to be set, as we + know which one we use anyway. Should make autobuilders happy when + they get to build this package. + * Have "clean" remove a couple binary files more. + + -- Yann Dirson Wed, 19 Jun 2002 00:58:02 +0200 + +tau (2.11.13-1) unstable; urgency=low + + * New upstream release. + * Don't have the main package depend on tk. + * Only install racy help files in tau-racy package, not those for + obsolete tools. + * Add tcsh real package alternative for c-shell dependency. + + -- Yann Dirson Mon, 17 Jun 2002 00:56:48 +0200 + +tau (2.11.12-1) unstable; urgency=low + + * Initial Release (Closes: #149721). + * Fixed test in ./configure to detect ash as being of the 'echo "\2" + outputs ASCII 002' kind. + * Fixed erdering of wish detection, so that wish8.3 is correctly taken + even if earlier ones are installed. + * Added -p to several mkdir invocations in configure, so that it works + when installing inside a "deep" hierarchy. + * Fixed src/Profile/Makefile to create a relative symlink, not an + absolute one pointing to my build dir. + * Moved binaries to /usr/bin/, keeping symlinks from the /usr/lib + hierarchy to be sure nothing breaks (hopefully). + + -- Yann Dirson Fri, 14 Jun 2002 01:42:51 +0200 --- tau-2.16.4.orig/debian/compat +++ tau-2.16.4/debian/compat @@ -0,0 +1 @@ +4 --- tau-2.16.4.orig/debian/control +++ tau-2.16.4/debian/control @@ -0,0 +1,66 @@ +Source: tau +Section: devel +Priority: optional +Maintainer: Yann Dirson +Build-Depends: debhelper (>= 5.0.37.2), dh-buildinfo, tcsh, python-all-dev (>= 2.3.5-11), python-central (>= 0.5) +XS-Python-Version: all +Standards-Version: 3.7.2 + +Package: tau +Architecture: any +Depends: ${shlibs:Depends} +Recommends: tau-racy +Suggests: tau-examples +Description: Tuning and Analysis Utilities - base profiling toolkit + TAU is a profiling toolkit specially made for parallel computing + (multi-thread, multi-process, MPI, PVM). It consists of an + instrumentation API, which can be used manually (or added + automatically by other instrumentation tools) to get runtime + profiling information. + . + This package provides the API and library, and the command-line + analysis tool. A Tcl/Tk-based GUI is available in package tau-racy. + . + This version is built with pthread support only. Support for PVM and + MPI, as well as use of PCL or PAPI for the use of hardware counters, + and of PDT or DynInst for automatic code instrumentation, are not + available in packaged form yet. + +Package: tau-racy +Architecture: all +Depends: tau, tk8.4 | wish, tcsh | c-shell +Description: Tuning and Analysis Utilities - Tcl/tk profiler GUI + TAU is a profiling toolkit specially made for parallel computing + (multi-thread, multi-process, MPI, PVM). + . + RACY (Routine and data ACces profile displaY) is a GUI that + graphically visualizes profiling data. + . + RACY has been superceded by a set of Java tools, and is no more + actively developed. Unfortunately, those tools cannot build yet + using free tools. + +Package: python-tau +Section: python +Architecture: any +Depends: tau (= ${Source-Version}), ${python:Depends}, ${shlibs:Depends} +Provides: tau-python-common, ${python:Provides} +Conflicts: tau-python-common, python2.3-tau, python2.4-tau +Replaces: tau-python-common, python2.3-tau, python2.4-tau, tau-examples (<= 2.12.8-1), python2.2-tau (<= 2.12.8-3), tau(= 2.15.6b1-1) +XB-Python-Version: ${python:Versions} +Description: Tuning and Analysis Utilities - support for python bindings + TAU is a profiling toolkit specially made for parallel computing + (multi-thread, multi-process, MPI, PVM). + . + This package python bindings to the TAU functionality, as well as + some auto-instrumentation support for python programs. + +Package: tau-examples +Architecture: all +Recommends: tau +Description: Tuning and Analysis Utilities - examples + TAU is a profiling toolkit specially made for parallel computing + (multi-thread, multi-process, MPI, PVM). + . + A collection of examples that demonstrate how to use TAU to + profile various sorts of applications. --- tau-2.16.4.orig/debian/copyright +++ tau-2.16.4/debian/copyright @@ -0,0 +1,50 @@ +This package was debianized by Yann Dirson on +Wed, 12 Jun 2002 02:28:56 +0200. + +It was downloaded from +http://www.cs.uoregon.edu/research/paracomp/tau/tauprofile/dist/ + +Web sites: + http://www.acl.lanl.gov/tau/ + http://www.cs.uoregon.edu/research/paracomp/tau/ + +Upstream Authors: + Sameer Suresh Shende and others + Department of Computer and Information Science, University of Oregon + Research Center Juelich, ZAM Germany + Advanced Computing Laboratory, Los Alamos National Laboratory + +Mailing-list: + +Copyright: + +***************************************************************************** +** Tuning and Analysis Utilities ** +** http://www.acl.lanl.gov/tau ** +***************************************************************************** +** Copyright 1997-2002 ** +** Department of Computer and Information Science, University of Oregon ** +** Research Center Juelich, ZAM Germany ** +** Advanced Computing Laboratory, Los Alamos National Laboratory ** +***************************************************************************** +** +** Permission to use, copy, modify, and distribute this software and its +** documentation for any purpose and without fee is hereby granted, +** provided that the above copyright notice appear in all copies and that +** both that copyright notice and this permission notice appear in +** supporting documentation, and that the name of University of Oregon (UO) +** Research Center Juelich, (ZAM) and Los Alamos National Laboratory (LANL) +** not be used in advertising or publicity pertaining to distribution of +** the software without specific, written prior permission. The +** University of Oregon, ZAM and LANL make no representations about the +** suitability of this software for any purpose. It is provided "as is" +** without express or implied warranty. +** +** UO, ZAM AND LANL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +** INCLUDING , AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, +** IN NO EVENT SHALL THE UNIVERSITY OF OREGON, ZAM OR LANL BE LIABLE FOR +** ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER +** RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF +** CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +** CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** --- tau-2.16.4.orig/debian/docs +++ tau-2.16.4/debian/docs @@ -0,0 +1,4 @@ +README +README.DYNINST +README.JAVA +Windows-Readme.txt --- tau-2.16.4.orig/debian/pycompat +++ tau-2.16.4/debian/pycompat @@ -0,0 +1 @@ +2 --- tau-2.16.4.orig/debian/python-tau.files +++ tau-2.16.4/debian/python-tau.files @@ -0,0 +1,3 @@ +/usr/lib/python* +/usr/lib/tau/*/lib/tau.py +/usr/share/doc/tau-examples/examples/python --- tau-2.16.4.orig/debian/rules +++ tau-2.16.4/debian/rules @@ -0,0 +1,270 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ALL_PY_VERS := $(shell pyversions -vr debian/control) + +export DH_OPTIONS + +PRCS_PRJ=tau + +builddir=${CURDIR}/debian/BUILD +taudir=${builddir}/usr/lib/tau + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +CPU=$(shell dpkg-architecture -l | grep DEB_HOST_ARCH_CPU= | cut -d= -f2) + +CONFIGFLAGS= -pthread +ifeq ($(CPU),i386) +CONFIGFLAGS+= -LINUXTIMERS +endif +ifeq ($(CPU),ia64) +CONFIGFLAGS+= -LINUXTIMERS +endif +ifeq ($(CPU),amd64) +CONFIGFLAGS+= -LINUXTIMERS +endif + +build: stamps/build-arch stamps/build-indep +stamps/build-arch: + dh_testdir + + ./configure -prefix=${taudir} $(CONFIGFLAGS) + # Fix permissions + chmod -x ${taudir}/include/Profile/TulipThreadLayer.h + + $(MAKE) install USER_OPT="${CFLAGS}" + # Remove empty junk files + rm -f debian/BUILD/usr/lib/tau/*/lib/libjogl* + # Fix the installed scripts not to hardcode tempdir + FILES=$$(file $$(grep -lr ${CURDIR} ${builddir}) | grep -vE '(ELF|ar archive|symbolic link)' | cut -d: -f1) ;\ + if test -n "$$FILES"; then \ + perl -pi -e 's!${taudir}!/usr/lib/tau!g' $$FILES ; \ + perl -pi -e 's!${builddir}!/usr/lib/tau!g' $$FILES ; \ + perl -pi -e 's!${CURDIR}/usr/lib/tau!/usr/lib/tau!g' $$FILES ; \ + perl -pi -e 's!${CURDIR}!/usr/lib/tau!g' $$FILES ; \ + fi + + # build python modules + debian/rules $(patsubst %,python%,${ALL_PY_VERS}) + + mkdir -p stamps + touch stamps/build-arch + +stamps/build-indep: + dh_testdir + # Nothing to do for now + +python%: + # Build python module as a separate object + # FIXME: this is suboptimal for successive builds but who cares + mkdir -p ${builddir}/usr/lib/python$*/site-packages + ${MAKE} -C ${builddir}/usr/lib/python$*/site-packages/ \ + -f ${CURDIR}/src/Profile/Makefile VPATH=${CURDIR}/src/Profile \ + USER_OPT="${CFLAGS} -I/usr/include/python$*" \ + $(subst .cpp,.o,$(notdir $(wildcard src/Profile/Py*.cpp))) + libpath=$$(cd debian/BUILD && echo usr/lib/tau/*/lib) && \ + if test `echo $$libpath|wc -w` != 1; then \ + printf "too many dirs: "; echo usr/lib/tau/*; false; fi && \ + cd ${builddir}/usr/lib/python$*/site-packages/ && g++ -shared Py*.o \ + -L${CURDIR}/debian/BUILD/$$libpath -Wl,-rpath=/$$libpath -lTAU \ + -lpthread \ + -o pytau.so + rm ${builddir}/usr/lib/python$*/site-packages/*.o + +clean: + dh_testdir + dh_testroot + rm -rf stamps + + ./configure -arch=default + -$(MAKE) clean + rm -rf ${builddir} default + # forgotten files + rm -f src/Profile/*.o \ + src/Profile/*.so \ + src/Profile/*.a \ + include/tauarch.h \ + include/tauroot.h \ + .last_config \ + etc/* \ + tools/src/TauIL/Makefile.inc \ + tools/src/perfexplorer/configure \ + utils/sedexamples.out + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + rm -rf debian/tmp + mkdir debian/tmp + cp -a ${builddir}/* debian/tmp/ + + # remove java-related stuff + find debian/tmp -name '*.jar' -o -name 'perfdmf_*' | xargs rm -f + cd debian/tmp/usr/lib/tau/*/bin && rm jracy paraprof + rm -f debian/tmp/usr/lib/tau/*/lib/libjogl.so + + # remove extra files + cd debian/tmp/usr/lib/tau && rm README CREDITS LICENSE + + # move binaries to /usr/bin, keep symlinks just in case + mkdir -p debian/tmp/usr/bin/ + set -e; for f in $$(cd debian/tmp/usr/lib/tau/*/bin && echo *); do \ + case "$$f" in \ + *.sh) mv debian/tmp/usr/lib/tau/*/bin/$$f debian/tmp/usr/bin/$${f%.sh} ;\ + ln -s ../../../../bin/$${f%.sh} debian/tmp/usr/lib/tau/*/bin/ ;\ + (cd debian/tmp/usr/lib/tau/*/bin && mv $${f%.sh} $$f) ;;\ + *.pl) mv debian/tmp/usr/lib/tau/*/bin/$$f debian/tmp/usr/bin/$${f%.pl} ;\ + ln -s ../../../../bin/$${f%.pl} debian/tmp/usr/lib/tau/*/bin/ ;\ + (cd debian/tmp/usr/lib/tau/*/bin && mv $${f%.pl} $$f) ;;\ + *) mv debian/tmp/usr/lib/tau/*/bin/$$f debian/tmp/usr/bin/ ;\ + ln -s ../../../../bin/$$f debian/tmp/usr/lib/tau/*/bin/ ;;\ + esac ;\ + done + + # put symlinks for arch-indep scripts + mkdir -p debian/tmp/usr/lib/tau/unknown/bin + cd debian/tmp/usr/lib/tau/unknown/bin && ln -s ../../../../bin/taud . + cd debian/tmp/usr/lib/tau/unknown/bin && ln -s ../../../../bin/pprof . + + # move manpages + mkdir -p debian/tmp/usr/share + mv debian/tmp/usr/lib/tau/man debian/tmp/usr/share/ + # move examples + mkdir -p debian/tmp/usr/share/doc/tau-examples + mv debian/tmp/usr/lib/tau/examples debian/tmp/usr/share/doc/tau-examples + + # fix permissions + chmod -R -x debian/tmp/usr/lib/tau/include + + # complete python installation + cp -p src/Profile/tau.py debian/tmp/usr/lib/tau/*/lib/ + for v in ${ALL_PY_VERS}; do (\ + cd debian/tmp/usr/lib/python$${v}/site-packages/ && \ + ln -s ../../tau/*/lib/tau.py . \ + ); done + + dh_movefiles + + # missing racy files + mkdir -p debian/tau-racy/usr/share/tau debian/tau-racy/usr/lib/tau + cd debian/tau-racy/usr/share/tau && mkdir -p tools/src tools/help utils + ln -s ../../share/tau/tools ../../share/tau/utils \ + debian/tau-racy/usr/lib/tau/ + cp -a tools/inc tools/xbm \ + debian/tau-racy/usr/share/tau/tools/ + cp -a tools/src/racy.tcl tools/src/taud.tcl \ + debian/tau-racy/usr/share/tau/tools/src/ + cp -a tools/help/racy tools/help/general \ + debian/tau-racy/usr/share/tau/tools/help/ + cp -a utils/archfind* \ + debian/tau-racy/usr/share/tau/utils/ + + +# Build architecture-independent files here. +binary-indep: DH_OPTIONS=-i +binary-indep: build install + dh_testdir + dh_testroot + + # symlink to master docdir + set -e; for i in tau-racy; do \ + mkdir -p debian/$$i/usr/share/doc;\ + ln -s tau debian/$$i/usr/share/doc/$$i;\ + done + +# dh_installdebconf + dh_installdocs + dh_buildinfo + dh_installchangelogs Changes + + mkdir -p debian/tau-examples/usr/share/doc/tau + ln -s ../tau-examples/examples debian/tau-examples/usr/share/doc/tau/ + mkdir -p debian/python-tau/usr/share/doc/tau-examples/examples/python + mkdir -p debian/python-tau/usr/share/doc/python-tau + ln -s ../tau-examples/examples/python debian/python-tau/usr/share/doc/python-tau/examples + +# dh_installexamples + # This is already in python-tau + rm -rf debian/tau-examples/usr/share/doc/*/examples/python + + # Adjust TAUROOTDIR for installed version + perl -pi -e 's!^TAUROOTDIR\t.*!TAUROOTDIR = /usr/lib/tau!' \ + `find debian/tau-examples/usr/share/doc/tau-examples/examples/ -name Makefile` + # Remove examples that depend on PDT + rm -rf debian/tau/usr/share/doc/tau/examples/pdt* + for i in `find debian/tau-examples/usr/share/doc/tau-examples/examples/ -name Makefile | xargs grep -l PDTDIR`; do \ + rm -rf `dirname $$i`; \ + done + # Remove examples that depend on Java + rm -rf debian/tau-examples/usr/share/doc/tau-examples/examples/java + # Remove huge example that depend on MPI + rm -rf debian/tau-examples/usr/share/doc/tau-examples/examples/NPB2.3 + # Fix perms on example files + cd debian/tau-examples/usr/share/doc/tau-examples/examples && \ + chmod -x fork/fork.cpp fork/fork.cpp \ + cthreads/hello.c + # NPB2.3/sys/print_* + + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: DH_OPTIONS=-a +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf +# dh_installexamples + dh_installdocs + dh_buildinfo + + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs Changes +# dh_link + dh_strip + dh_compress + DH_PYCENTRAL=nomove DH_OPTIONS= dh_pycentral -ppython-tau + dh_fixperms + dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- tau-2.16.4.orig/debian/tau-examples.files +++ tau-2.16.4/debian/tau-examples.files @@ -0,0 +1 @@ +usr/share/doc/tau-examples --- tau-2.16.4.orig/debian/tau-racy.dirs +++ tau-2.16.4/debian/tau-racy.dirs @@ -0,0 +1 @@ +usr/bin --- tau-2.16.4.orig/debian/tau-racy.files +++ tau-2.16.4/debian/tau-racy.files @@ -0,0 +1,5 @@ +/usr/bin/racy +/usr/bin/taud +/usr/lib/tau/*/bin/racy +/usr/lib/tau/*/bin/taud +/usr/lib/tau/unknown/bin --- tau-2.16.4.orig/debian/tau.dirs +++ tau-2.16.4/debian/tau.dirs @@ -0,0 +1 @@ +usr/bin --- tau-2.16.4.orig/debian/tau.docs +++ tau-2.16.4/debian/tau.docs @@ -0,0 +1,2 @@ +README* +CREDITS --- tau-2.16.4.orig/debian/tau.files +++ tau-2.16.4/debian/tau.files @@ -0,0 +1,12 @@ +/usr/bin/tau_* +/usr/bin/tauex +/usr/bin/pprof +/usr/lib/tau/*/bin/tau_* +/usr/lib/tau/*/bin/tauex +/usr/lib/tau/*_*/bin/pprof +/usr/lib/tau/include +/usr/lib/tau/*/lib/Makefile* +/usr/lib/tau/*/lib/*.so +/usr/lib/tau/*/lib/*/*.so +/usr/lib/tau/*/lib/*.a +/usr/share/man --- tau-2.16.4.orig/debian/watch +++ tau-2.16.4/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://www.cs.uoregon.edu/research/paracomp/tau/tauprofile/dist/ tau-([0-9.]*)\.tar\.gz --- tau-2.16.4.orig/.all_configs +++ tau-2.16.4/.all_configs @@ -0,0 +1,3 @@ + -arch=default + -arch=default + -arch=default