From: | "Bjarke Istrup Pedersen (gurligebis)" <gurligebis@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-wireless/iw/files: iw-3.10-versioncheck.patch iw-3.2_libnl-3x-compile.diff |
Date: | Sun, 01 Sep 2013 17:40:26 |
Message-Id: | 20130901174018.D35FB2004E@flycatcher.gentoo.org |
1 | gurligebis 13/09/01 17:40:18 |
2 | |
3 | Added: iw-3.10-versioncheck.patch |
4 | Removed: iw-3.2_libnl-3x-compile.diff |
5 | Log: |
6 | Adding workaround for .git directory in parent folder, fixing bug #482334 |
7 | |
8 | (Portage version: 2.2.1/cvs/Linux i686, signed Manifest commit with key 15AE484C) |
9 | |
10 | Revision Changes Path |
11 | 1.1 net-wireless/iw/files/iw-3.10-versioncheck.patch |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/iw/files/iw-3.10-versioncheck.patch?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/iw/files/iw-3.10-versioncheck.patch?rev=1.1&content-type=text/plain |
15 | |
16 | Index: iw-3.10-versioncheck.patch |
17 | =================================================================== |
18 | From 2b60b435dd032572c556b064295a3e3607d00a55 Mon Sep 17 00:00:00 2001 |
19 | From: Florian Schmaus <fschmaus@×××××.com> |
20 | Date: Sun, 1 Sep 2013 17:57:21 +0200 |
21 | Subject: [PATCH] Don't get iw version from git if there is no .git/ |
22 | |
23 | The version.sh script should only try to get the version from git if the |
24 | source actually resides in a git repository, i.e. .git/ exists. Doing |
25 | otherwise in a non-git source repo results in git ascending until it |
26 | finds a .git directory, which will cause problems in some source-based |
27 | distributions ( https://bugs.gentoo.org/show_bug.cgi?id=482334 ). |
28 | --- |
29 | version.sh | 2 +- |
30 | 1 file changed, 1 insertion(+), 1 deletion(-) |
31 | |
32 | diff --git a/version.sh b/version.sh |
33 | index 80e55ab..0f1aa1d 100755 |
34 | --- a/version.sh |
35 | +++ b/version.sh |
36 | @@ -3,7 +3,7 @@ |
37 | VERSION="3.11" |
38 | OUT="$1" |
39 | |
40 | -if head=`git rev-parse --verify HEAD 2>/dev/null`; then |
41 | +if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then |
42 | git update-index --refresh --unmerged > /dev/null |
43 | descr=$(git describe) |
44 | |
45 | -- |
46 | 1.8.1.5 |