lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131101070219.GA21471@gmail.com>
Date:	Fri, 1 Nov 2013 08:02:19 +0100
From:	Ingo Molnar <mingo@...nel.org>
To:	David Ahern <dsahern@...il.com>
Cc:	Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
	LKML <linux-kernel@...r.kernel.org>,
	Namhyung Kim <namhyung@...nel.org>,
	Jiri Olsa <jolsa@...hat.com>
Subject: Re: perf version not set when building out of tree


* David Ahern <dsahern@...il.com> wrote:

> When building out of tree:
> 
> make perf-tar-src-pkg

What's the canonical way to build a perf tarball? I didn't find any 
makefile target for that.

> tar -xf perf-<ver>.tar -C /tmp
> cd /tmp/perf<ver>
> make -C tools/perf
> 
> you get the warning message:
> make[1]: *** No rule to make target `kernelversion'.  Stop.
> 
> which comes from tools/perf/util/PERF-VERSION-GEN,
> 
> if test -z "$TAG"
> then
>     TAG=$(MAKEFLAGS= make -sC ../.. kernelversion)
> fi
> 
> There is no top level Makefile. perf is actually built, but has no
> version info:
> 
> $ tools/perf/perf --version
> perf version
> 
> I thought someone had proposed a way to fix that.

I think we should pack the PERF-VERSION-FILE with the tarball and 
use that. This needs roughly 3 changes:

 - make PERF-VERSION-FILE part of the tarball
 - make sure it's not zapped on 'make clean'
 - don't try to regenerate it if there's no git repository to get a version from

Thanks,

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ