1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 12:45:18 +03:00
aports/testing/libsigrokdecode/version.patch
Natanael Copa 171f6d3388 testing/libsigrokdecode: rebuild against python 3.8
and fix the .pc version
2019-11-05 15:35:34 +00:00

13 lines
506 B
Diff

diff --git a/m4/sigrok.m4 b/m4/sigrok.m4
index 2ca2444..924b9df 100644
--- a/m4/sigrok.m4
+++ b/m4/sigrok.m4
@@ -54,7 +54,7 @@ m4_assert([$# >= 6])[]dnl
$1=$4
sr_git_deps=
# Check if we can get revision information from git.
-sr_head=`git -C "$srcdir" rev-parse --verify --short HEAD 2>&AS_MESSAGE_LOG_FD`
+sr_head=`test -d "$srcdir"/.git && git -C "$srcdir" rev-parse --verify --short HEAD 2>&AS_MESSAGE_LOG_FD`
AS_IF([test "$?" = 0 && test "x$sr_head" != x], [dnl
test ! -f "$srcdir/.git/HEAD" \