Fix amd-uprof dependencies with patchelf
Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
		
							parent
							
								
									60acbeddcd
								
							
						
					
					
						commit
						6abfdee535
					
				| @ -3,6 +3,19 @@ | |||||||
| , curl | , curl | ||||||
| , cacert | , cacert | ||||||
| , runCommandLocal | , runCommandLocal | ||||||
|  | , autoPatchelfHook | ||||||
|  | , elfutils | ||||||
|  | , glib | ||||||
|  | , libGL | ||||||
|  | , ncurses5 | ||||||
|  | , xorg | ||||||
|  | , zlib | ||||||
|  | , libxkbcommon | ||||||
|  | , freetype | ||||||
|  | , fontconfig | ||||||
|  | , libGLU | ||||||
|  | , dbus | ||||||
|  | , rocmPackages | ||||||
| }: | }: | ||||||
| 
 | 
 | ||||||
| let | let | ||||||
| @ -31,11 +44,36 @@ in | |||||||
|     src = uprofSrc; |     src = uprofSrc; | ||||||
|     dontStrip = true; |     dontStrip = true; | ||||||
|     phases = [ "installPhase" "fixupPhase" ]; |     phases = [ "installPhase" "fixupPhase" ]; | ||||||
|  |     nativeBuildInputs = [ autoPatchelfHook ]; | ||||||
|  |     buildInputs = [ | ||||||
|  |       stdenv.cc.cc.lib | ||||||
|  |       ncurses5 | ||||||
|  |       elfutils | ||||||
|  |       glib | ||||||
|  |       libGL | ||||||
|  |       libGLU | ||||||
|  |       xorg.libX11 | ||||||
|  |       xorg.libXext | ||||||
|  |       xorg.libXi | ||||||
|  |       xorg.libXmu | ||||||
|  |       xorg.libxcb | ||||||
|  |       xorg.xcbutilwm | ||||||
|  |       xorg.xcbutilrenderutil | ||||||
|  |       xorg.xcbutilkeysyms | ||||||
|  |       xorg.xcbutilimage | ||||||
|  |       fontconfig.lib | ||||||
|  |       libxkbcommon | ||||||
|  |       zlib | ||||||
|  |       freetype | ||||||
|  |       dbus | ||||||
|  |       rocmPackages.rocprofiler | ||||||
|  |     ]; | ||||||
|     installPhase = '' |     installPhase = '' | ||||||
|       set -x |       set -x | ||||||
|       mkdir -p $out |       mkdir -p $out | ||||||
|       tar -x -v -C $out --strip-components=1 -f $src |       tar -x -v -C $out --strip-components=1 -f $src | ||||||
|       rm $out/bin/AMDPowerProfilerDriverSource.tar.gz |       rm $out/bin/AMDPowerProfilerDriverSource.tar.gz | ||||||
|  |       patchelf --replace-needed libroctracer64.so.1 libroctracer64.so $out/bin/ProfileAgents/x64/libAMDGpuAgent.so | ||||||
|       set +x |       set +x | ||||||
|     ''; |     ''; | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user