lkml.org 
[lkml]   [2021]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/2] perf: remove shebang from scripts/{perl,python}/*.{pl,py}
From
Date
On 03. 08. 21, 13:44, Adrian Hunter wrote:
> On 26/07/21 12:14 pm, Jiri Slaby wrote:
>> The scripts cannot be executed on their own. The python ones were always
>> installed without x permissions, the perl ones fail anyway:
>> BEGIN failed--compilation aborted at /usr/lib/perf-core/scripts/perl/rw-by-pid.pl line 18.
>> so there is no point to have a shebang in them. This causes rpmlint to
>> complain too:
>> W: non-executable-script /usr/lib/perf-core/scripts/perl/rw-by-file.pl 644 /usr/bin/perl -w
>>
>> Hence drop shebangs in them all and remove x permissions in the
>> repository. If anyone wants some of them executable, they need to fix
>> the install scripts first.
>>
>> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
>> Cc: Adrian Hunter <adrian.hunter@intel.com>
>> Cc: Andi Kleen <ak@linux.intel.com>
>> Cc: Ingo Molnar <mingo@redhat.com>
>> Cc: Jiri Olsa <jolsa@redhat.com>
>> Cc: Kan Liang <kan.liang@linux.intel.com>
>> Cc: Leo Yan <leo.yan@linaro.org>
>> Cc: Mark Rutland <mark.rutland@arm.com>
>> Cc: Namhyung Kim <namhyung@kernel.org>
>> Cc: Peter Zijlstra <peterz@infradead.org>
>> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
>> ---
>> tools/perf/scripts/perl/rw-by-file.pl | 1 -
>> tools/perf/scripts/perl/rw-by-pid.pl | 1 -
>> tools/perf/scripts/perl/rwtop.pl | 1 -
>> tools/perf/scripts/perl/wakeup-latency.pl | 1 -
>> tools/perf/scripts/python/exported-sql-viewer.py | 1 -
>
> exported-sql-viewer.py is a standalone executable

That's great, but in fact noone can run it when make-installed as I
stated above:

>> If anyone wants some of them executable, they need to fix
>> the install scripts first.

See:
$(INSTALL) scripts/python/*.py -m 644 -t
'$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python';

thanks,
--
js
suse labs

\
 
 \ /
  Last update: 2021-08-04 07:49    [W:0.036 / U:9.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site