aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/setlocalversion.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-10-26 13:24:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-10-26 13:24:44 +0000
commite5412705b673d7a1650741b4c45d87ef915674f1 (patch)
treed77e5c2ee0bc127e581037c24ef918f87b96f1ea /main/linux-grsec/setlocalversion.patch
parent6434bb6a29a04d2a043b94acca7d038a313d44a0 (diff)
downloadaports-e5412705b673d7a1650741b4c45d87ef915674f1.tar.bz2
aports-e5412705b673d7a1650741b4c45d87ef915674f1.tar.xz
main/linux-grsec: fix localversion
it picked up the aports git repo by mistake
Diffstat (limited to 'main/linux-grsec/setlocalversion.patch')
-rw-r--r--main/linux-grsec/setlocalversion.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/linux-grsec/setlocalversion.patch b/main/linux-grsec/setlocalversion.patch
new file mode 100644
index 0000000000..d82eb170ab
--- /dev/null
+++ b/main/linux-grsec/setlocalversion.patch
@@ -0,0 +1,11 @@
+--- ./scripts/setlocalversion.orig
++++ ./scripts/setlocalversion
+@@ -43,7 +43,7 @@
+ fi
+
+ # Check for git and a git repo.
+- if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
++ if [ -d "$srctree"/.git ] && head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
+
+ # 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.