mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
trace-cmd: fix musl
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
a47c2dfb50
commit
8d727c1e07
1 changed files with 23 additions and 0 deletions
23
srcpkgs/trace-cmd/patches/fix-program-name.patch
Normal file
23
srcpkgs/trace-cmd/patches/fix-program-name.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
--- kernel-shark/src/kernelshark.cpp 2019-07-05 18:23:00.000000000 +0200
|
||||||
|
+++ kernel-shark/src/kernelshark.cpp 2019-07-08 17:52:19.081010524 +0200
|
||||||
|
@@ -35,6 +35,11 @@
|
||||||
|
{
|
||||||
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
QApplication a(argc, argv);
|
||||||
|
+ const char* program_name = strrchr(argv[0], '/');
|
||||||
|
+ if (nullptr == program_name)
|
||||||
|
+ program_name = argv[0];
|
||||||
|
+ else
|
||||||
|
+ ++program_name;
|
||||||
|
|
||||||
|
KsMainWindow ks;
|
||||||
|
|
||||||
|
@@ -48,7 +51,7 @@
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
case 'v':
|
||||||
|
- printf("%s - %s\n", basename(argv[0]), KS_VERSION_STRING);
|
||||||
|
+ printf("%s - %s\n", program_name, KS_VERSION_STRING);
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
case 'i':
|
Loading…
Add table
Reference in a new issue