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: <20100708205754.GH25306@ghostprotocols.net>
Date:	Thu, 8 Jul 2010 17:57:54 -0300
From:	Arnaldo Carvalho de Melo <acme@...hat.com>
To:	Thavidu Ranatunga <tharan@....ibm.com>
Cc:	linux-kernel@...r.kernel.org, Ian Munsie <imunsie@....ibm.com>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Paul Mackerras <paulus@...ba.org>, Ingo Molnar <mingo@...e.hu>,
	Christoph Hellwig <hch@...radead.org>
Subject: Re: [PATCH 2/2] perf: Version String fix, for fallback if not from
	git

Em Mon, Jul 05, 2010 at 06:00:15PM +1000, Thavidu Ranatunga escreveu:
> This gets rid of the default version fallback for Perf and changes it so that it
> returns the version of the kernel from it's Makefile (if sources were not from
> git, ie. if it was downloaded from a tarball)
> 
> Signed-off-by: Thavidu Ranatunga <tharan@....ibm.com>
> Signed-off-by: Ian Munsie <imunsie@....ibm.com>

>  	VN=$(git describe --abbrev=4 HEAD 2>/dev/null) &&
>  	case "$VN" in
>  	*$LF*) (exit 1) ;;
> @@ -27,7 +23,12 @@ elif test -d ../../.git -o -f ../../.git &&
>  then
>  	VN=$(echo "$VN" | sed -e 's/-/./g');
>  else
> -	VN="$DEF_VER"
> +	eval `grep '^VERSION\s*=' ../../Makefile|tr -d ' '`
> +	eval `grep '^PATCHLEVEL\s*=' ../../Makefile|tr -d ' '`
> +	eval `grep '^SUBLEVEL\s*=' ../../Makefile|tr -d ' '`
> +	eval `grep '^EXTRAVERSION\s*=' ../../Makefile|tr -d ' '`
> +
> +	VN="${VERSION}.${PATCHLEVEL}.${SUBLEVEL}${EXTRAVERSION}"

This makes 'make perf-tarbz2-src-pkg':

[acme@...lia linux-2.6-tip]$ make perf-tarbz2-src-pkg
  TAR
[acme@...lia linux-2.6-tip]$ mv perf-2.6.35-rc4.tar.bz2 /tmp
[acme@...lia linux-2.6-tip]$ cd /tmp
[acme@...lia tmp]$ tar xf perf-2.6.35-rc4.tar.bz2
[acme@...lia tmp]$ cd perf-2.6.35-rc4/tools/perf
[acme@...lia perf]$ make
grep: ../../Makefile: No such file or directory
grep: ../../Makefile: No such file or directory

- Arnaldo
--
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