diff options
author | Ian Whyman <thev00d00@gentoo.org> | 2015-08-22 18:22:53 +0100 |
---|---|---|
committer | Ian Whyman <thev00d00@gentoo.org> | 2015-08-22 18:23:38 +0100 |
commit | c65bea600f7c2f12a3c3c030d938ebbfdc70724a (patch) | |
tree | d8952630116bf0a3f6f368adda905a7960cc5b28 /dev-libs/libcec/files | |
parent | sys-apps/systemd: Remove old (diff) | |
download | gentoo-c65bea600f7c2f12a3c3c030d938ebbfdc70724a.tar.gz gentoo-c65bea600f7c2f12a3c3c030d938ebbfdc70724a.tar.bz2 gentoo-c65bea600f7c2f12a3c3c030d938ebbfdc70724a.zip |
dev-libs/libcec: Version bump to 3.x
Bug: 554094
Diffstat (limited to 'dev-libs/libcec/files')
-rw-r--r-- | dev-libs/libcec/files/libcec-3.0.1-envcheck.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch b/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch new file mode 100644 index 000000000000..bb8f107312f9 --- /dev/null +++ b/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch @@ -0,0 +1,16 @@ +diff --git a/support/git-rev.sh b/support/git-rev.sh +index 5dce3d0..4aadae6 100755 +--- a/support/git-rev.sh ++++ b/support/git-rev.sh +@@ -1,5 +1,8 @@ + #!/bin/sh + + ## cmake doesn't read the variable when it doesn't end with a newline, and I haven't figured out how to have it add a newline directly... +-echo -n "`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h"`\n" +- ++if [ -d .git ]; then ++ echo "`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h"`" ++else ++ echo "<unknown>" ++fi + |