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>] [day] [month] [year] [list]
Date:   Wed,  7 Mar 2018 10:34:03 +0100
From:   Gioh Kim <gi-oh.kim@...fitbricks.com>
To:     linux-kernel@...r.kernel.org, kstewart@...uxfoundation.org,
        tglx@...utronix.de, pombredanne@...b.com,
        gregkh@...uxfoundation.org
Cc:     Gioh Kim <gi-oh.kim@...fitbricks.com>
Subject: [PATCH] setlocalversion: use any tag

I googled about '+' mark in kernel version number. Many people also
do not understand why their kernel version includes '+'. And many
people creates an empty .scmversion file to remove it. I also
create the empty .scmversion file whenever I clean the kernel tree.
If setlocalversion script uses both of annotated tag and
lightweight tag, it would be more convenient because it is common to set
lightweight tag during developmene process.

Signed-off-by: Gioh Kim <gi-oh.kim@...fitbricks.com>
---
 scripts/setlocalversion | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 71f39410691b..9f4309697ea6 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -49,7 +49,7 @@ scm_version()
 
 		# If we are at a tagged commit (like "v2.6.30-rc6"), we ignore
 		# it, because this version is defined in the top level Makefile.
-		if [ -z "`git describe --exact-match 2>/dev/null`" ]; then
+		if [ -z "`git describe --exact-match --tags 2>/dev/null`" ]; then
 
 			# If only the short version is requested, don't bother
 			# running further git commands
-- 
2.14.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ