Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Don't include signature in version strings

This explodes the build if HEAD is signed, since the generated version
is gpg: Signature made Mon 26 Dec 2022 20:34:48 CET, then a few more
lines, then the SHA.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/7c9637711271f50ec2341fb8a7c29585335dab04.1672174189.git.nabijaczleweli@nabijaczleweli.xyz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ahelenia Ziemiańska and committed by
Arnaldo Carvalho de Melo
f24fb539 55c41f2e

+2 -2
+1 -1
tools/perf/Documentation/Makefile
··· 267 267 $(ASCIIDOC) -b docbook -d manpage \ 268 268 $(ASCIIDOC_EXTRA) -aperf_version=$(PERF_VERSION) \ 269 269 -aperf_date=$(shell git log -1 --pretty="format:%cd" \ 270 - --date=short $<) \ 270 + --date=short --no-show-signature $<) \ 271 271 -o $@+ $< && \ 272 272 mv $@+ $@ 273 273
+1 -1
tools/perf/util/PERF-VERSION-GEN
··· 19 19 if test -d ../../.git -o -f ../../.git 20 20 then 21 21 TAG=$(MAKEFLAGS= make -sC ../.. kernelversion) 22 - CID=$(git log -1 --abbrev=12 --pretty=format:"%h" 2>/dev/null) && CID="-g$CID" 22 + CID=$(git log -1 --abbrev=12 --pretty=format:"%h" --no-show-signature 2>/dev/null) && CID="-g$CID" 23 23 elif test -f ../../PERF-VERSION-FILE 24 24 then 25 25 TAG=$(cut -d' ' -f3 ../../PERF-VERSION-FILE | sed -e 's/\"//g')