Skip to content

Instantly share code, notes, and snippets.

@silvio
Created December 11, 2014 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silvio/0deaa2899a1400aa505b to your computer and use it in GitHub Desktop.
Save silvio/0deaa2899a1400aa505b to your computer and use it in GitHub Desktop.
From a5e137918a0d940b51ad5611eff270a904be41a0 Mon Sep 17 00:00:00 2001
From: Silvio Fricke <silvio.fricke@gmail.com>
Date: Thu, 11 Dec 2014 20:04:22 +0100
Subject: [PATCH] linux-git: remove rc indication
The rc indication breaks with the version ruling of pacman. Before this
patch we have the situation that pacman assumpting that
3.18.rc4.r278.g5f01feb greater than 3.18.r2866.g92a578b, but this isn't
right. Commit 92a578b in fact is a (3.19.)rc0 tag which are not tagged
at all. So we remove the rc completly.
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
---
PKGBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PKGBUILD b/PKGBUILD
index 015bc90..eff5711 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,7 +28,7 @@ _kernelname=${pkgbase#linux}
pkgver() {
cd "${_srcname}"
- git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+ git describe --long | sed -E 's/^v//;s/(rc..?)-//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
--
2.1.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment