Compare commits
	
		
			3 Commits
		
	
	
		
			7b0433320a
			...
			6813741c4d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6813741c4d | |||
| 50409bb201 | |||
| 8b1cfcc523 | 
| @ -1,7 +1,9 @@ | ||||
| { | ||||
|   stdenv | ||||
| , fetchFromGitHub | ||||
| , fetchpatch | ||||
| , autoreconfHook | ||||
| , boost186 | ||||
| , boost | ||||
| , libxml2 | ||||
| , xml2 | ||||
| , wxGTK32 | ||||
| @ -15,18 +17,28 @@ | ||||
| 
 | ||||
| let | ||||
|   wx = wxGTK32; | ||||
|   boost = boost186; | ||||
| in | ||||
| stdenv.mkDerivation rec { | ||||
|   pname = "wxparaver"; | ||||
|   version = "4.11.2"; | ||||
|   version = "4.12.0"; | ||||
| 
 | ||||
|   src = builtins.fetchGit { | ||||
|     url = "https://github.com/bsc-performance-tools/wxparaver.git"; | ||||
|     rev = "129e6b4a4f061e5a319049db8db1620f5de3bd70"; # v4.11.2 (missing tag) | ||||
|     ref = "master"; | ||||
|   src = fetchFromGitHub { | ||||
|     owner = "bsc-performance-tools"; | ||||
|     repo = "wxparaver"; | ||||
|     rev = "v${version}"; | ||||
|     sha256 = "sha256-YsO5gsuEFQdki3lQudEqgo5WXOt/fPdvNw5OxZQ86Zo="; | ||||
|   }; | ||||
| 
 | ||||
|   patches = [ | ||||
|     ./do-not-steal-focus-on-redraw.patch | ||||
| 
 | ||||
|     # Fix for boost >=1.87 (thanks to gamezelda) | ||||
|     (fetchpatch { | ||||
|       url = "https://aur.archlinux.org/cgit/aur.git/plain/wxparaver-tutorialsdownload-Fix-Boost-ASIO-1.87.0-removals.patch?h=wxparaver&id=b0dcd08c472536e0a1a3cc1dfbc4c77d9f5e0d47"; | ||||
|       sha256 = "sha256-YgGLxqj+6SvFEpyKl0RlUHl2qBo7r65/kI3cy0OKFYE="; | ||||
|     }) | ||||
|   ]; | ||||
| 
 | ||||
|   hardeningDisable = [ "all" ]; | ||||
| 
 | ||||
|   # Fix the PARAVER_HOME variable | ||||
|  | ||||
							
								
								
									
										26
									
								
								pkgs/paraver/do-not-steal-focus-on-redraw.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								pkgs/paraver/do-not-steal-focus-on-redraw.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | ||||
| From 2b185e1b5ce52808b3026334851dbcd5a640ed4d Mon Sep 17 00:00:00 2001 | ||||
| From: aleixbonerib <aleix.boneribo@bsc.es> | ||||
| Date: Mon, 10 Jun 2024 20:59:45 +0200 | ||||
| Subject: [PATCH] fix: do not set focus on redraw | ||||
| 
 | ||||
| Some wm can change the window size without focusing. Right now, when the | ||||
| plot is resized it takes back focus. | ||||
| ---
 | ||||
|  src/gtimeline.cpp | 1 - | ||||
|  1 file changed, 1 deletion(-) | ||||
| 
 | ||||
| diff --git a/src/gtimeline.cpp b/src/gtimeline.cpp
 | ||||
| index 23ebef2..a896066 100644
 | ||||
| --- a/src/gtimeline.cpp
 | ||||
| +++ b/src/gtimeline.cpp
 | ||||
| @@ -899,7 +899,6 @@ void gTimeline::redraw()
 | ||||
|   | ||||
|    drawZone->Refresh(); | ||||
|   | ||||
| -  SetFocus();
 | ||||
|  } | ||||
|   | ||||
|   | ||||
| -- 
 | ||||
| 2.44.1 | ||||
| 
 | ||||
| @ -11,7 +11,7 @@ diff --git a/api/semanticcolor.cpp b/api/semanticcolor.cpp | ||||
| index 9f86960..22859eb 100644
 | ||||
| --- a/api/semanticcolor.cpp
 | ||||
| +++ b/api/semanticcolor.cpp
 | ||||
| @@ -232,8 +232,9 @@ rgb CodeColor::getColor( PRV_UINT32 pos ) const
 | ||||
| @@ -295,8 +295,9 @@ rgb SemanticColor::getColor( PRV_UINT32 pos ) const
 | ||||
|  { | ||||
|    if( pos == 0 && ParaverConfig::getInstance()->getColorsTimelineUseZero() ) | ||||
|      return ParaverConfig::getInstance()->getColorsTimelineColorZero(); | ||||
| @ -22,26 +22,26 @@ index 9f86960..22859eb 100644 | ||||
| +  return colors[ pos + 1 ];
 | ||||
|  } | ||||
|   | ||||
|  void CodeColor::setColor( PRV_UINT32 whichPos, rgb whichColor ) | ||||
| @@ -250,6 +251,12 @@ void CodeColor::setColor( PRV_UINT32 whichPos, rgb whichColor )
 | ||||
|  void SemanticColor::setColor( PRV_UINT32 whichPos, rgb whichColor ) | ||||
| @@ -314,6 +315,12 @@ void SemanticColor::setColor( PRV_UINT32 whichPos, rgb whichColor )
 | ||||
|    colors[ whichPos ] = whichColor; | ||||
|  } | ||||
|   | ||||
| +void CodeColor::cutAfter( PRV_UINT32 pos )
 | ||||
| +void SemanticColor::cutAfter( PRV_UINT32 pos )
 | ||||
| +{
 | ||||
| +  if ( pos < colors.size() )
 | ||||
| +    colors.erase( colors.begin() + pos, colors.end() );
 | ||||
| +}
 | ||||
| +
 | ||||
|  void CodeColor::setCustomColor( TSemanticValue whichValue, rgb color )  | ||||
|  void SemanticColor::setCustomColor( TSemanticValue whichValue, rgb color )  | ||||
|  { | ||||
|    customPalette[ whichValue ] = color; | ||||
| diff --git a/api/semanticcolor.h b/api/semanticcolor.h
 | ||||
| index a079556..bddf3d8 100644
 | ||||
| --- a/api/semanticcolor.h
 | ||||
| +++ b/api/semanticcolor.h
 | ||||
| @@ -98,6 +98,7 @@ class CodeColor: public SemanticColor
 | ||||
|   | ||||
| @@ -114,6 +114,7 @@ class SemanticColor
 | ||||
|      // Code Color methods | ||||
|      PRV_UINT32 getNumColors() const; | ||||
|      void setColor( PRV_UINT32 pos, rgb color ); | ||||
| +    void cutAfter( PRV_UINT32 pos );
 | ||||
| @ -61,7 +61,7 @@ index b0d2050..ee2ab69 100644 | ||||
|    for ( auto it : semanticColors ) | ||||
|    { | ||||
|      std::tie( tmpColor.red, tmpColor.green, tmpColor.blue ) = it.second; | ||||
|      myCodeColor.setColor( it.first, tmpColor ); | ||||
|      mySemanticColor.setColor( it.first, tmpColor ); | ||||
| +	if (it.first > maxValue)
 | ||||
| +      maxValue = it.first;
 | ||||
|    } | ||||
| @ -69,7 +69,7 @@ index b0d2050..ee2ab69 100644 | ||||
| +  // Cut the palette after the highest defined value, so there are no
 | ||||
| +  // extra expanded values
 | ||||
| +  if ( !pcfParser.expandColors )
 | ||||
| +	myCodeColor.cutAfter(maxValue);
 | ||||
| +	mySemanticColor.cutAfter(maxValue);
 | ||||
| +
 | ||||
|    myEventLabels = EventLabels( pcfParser ); | ||||
|    myStateLabels = StateLabels( pcfParser ); | ||||
|  | ||||
							
								
								
									
										23
									
								
								pkgs/paraver/fix-libxml2-deprecation.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								pkgs/paraver/fix-libxml2-deprecation.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | ||||
| commit 60aa3ffa05f6b40db191a880e9e622d608744c1f | ||||
| Author: Aleix Boné <aleix.boneribo@bsc.es> | ||||
| Date:   Sun Jul 21 12:11:30 2025 +0200 | ||||
| 
 | ||||
|     fix libxml2 deprecated macro | ||||
| 
 | ||||
| diff --git a/configure.ac b/configure.ac
 | ||||
| index 7fe1876..3ce1091 100644
 | ||||
| --- a/configure.ac
 | ||||
| +++ b/configure.ac
 | ||||
| @@ -46,7 +46,10 @@ AC_PROG_CPP
 | ||||
|  AC_PROG_CXXCPP | ||||
|  AC_PROG_SED | ||||
|   | ||||
| -AM_PATH_XML2
 | ||||
| +PKG_PROG_PKG_CONFIG
 | ||||
| +PKG_CHECK_MODULES([XML], [libxml-2.0])
 | ||||
| +
 | ||||
| +AC_SUBST(XML_CPPFLAGS, $XML_CFLAGS)
 | ||||
|   | ||||
|  AX_BOOST_BASE(1.36) | ||||
|  AX_BOOST_SERIALIZATION | ||||
| 
 | ||||
| @ -1,5 +1,6 @@ | ||||
| { | ||||
|   stdenv | ||||
| , fetchFromGitHub | ||||
| , autoreconfHook | ||||
| , boost | ||||
| , libxml2 | ||||
| @ -16,17 +17,19 @@ let | ||||
| in | ||||
| stdenv.mkDerivation rec { | ||||
|   pname = "paraver-kernel"; | ||||
|   version = "${src.shortRev}"; | ||||
|   version = "4.12.0"; | ||||
| 
 | ||||
|   src = builtins.fetchGit { | ||||
|     url = "https://github.com/bsc-performance-tools/paraver-kernel.git"; | ||||
|     rev = "2e167da3cee78ca11e31b74faefb23f12bac2b8c"; # master (missing tag) | ||||
|     ref = "master"; | ||||
|   src = fetchFromGitHub { | ||||
|     owner = "bsc-performance-tools"; | ||||
|     repo = "paraver-kernel"; | ||||
|     rev = "v${version}"; | ||||
|     sha256 = "sha256-Xs7g8ITZhPt00v7o2WlTddbou8C8Rc9kBMFpl2WsCS4="; | ||||
|   }; | ||||
| 
 | ||||
|   patches = [ | ||||
|     # https://github.com/bsc-performance-tools/paraver-kernel/pull/11 | ||||
|     ./dont-expand-colors.patch | ||||
|     ./fix-libxml2-deprecation.patch | ||||
|   ]; | ||||
| 
 | ||||
|   hardeningDisable = [ "all" ]; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user