From cfefcd859f2b51a6ebe23c5be149ff258755e249 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 22 Jul 2015 22:30:25 +0200 Subject: package/libcec: bump to version 3.0.1 - reflect upstream changes of the build system by switching from an autotools-package to cmake-package [Thomas: - remove the gcc 4.5 dependency. While we do need a dependency on the gcc version, the proposed implementation was not correct as it wasn't handling external toolchains. - add a patch to fix a problem caused by libcec build system trying to use 'git' to get a version number, which does not work when the version control system information is not available, as is the case in Buildroot.] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- ...-generate-an-invalid-env.h-when-not-built.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 package/libcec/0001-fixed-don-t-generate-an-invalid-env.h-when-not-built.patch (limited to 'package/libcec/0001-fixed-don-t-generate-an-invalid-env.h-when-not-built.patch') diff --git a/package/libcec/0001-fixed-don-t-generate-an-invalid-env.h-when-not-built.patch b/package/libcec/0001-fixed-don-t-generate-an-invalid-env.h-when-not-built.patch new file mode 100644 index 0000000000..d823a5b27d --- /dev/null +++ b/package/libcec/0001-fixed-don-t-generate-an-invalid-env.h-when-not-built.patch @@ -0,0 +1,31 @@ +From 369ffb5be23eca520df99732541d0482da271fd3 Mon Sep 17 00:00:00 2001 +From: Lars Op den Kamp +Date: Sat, 11 Jul 2015 00:53:17 +0200 +Subject: [PATCH] fixed: don't generate an invalid env.h when not built with + the .git dir present. closes #112 + +Backported from upstream commit 2f32a9debc1f148b5dfcfc463480f1432bb71725. + +Signed-off-by: Thomas Petazzoni +--- + support/git-rev.sh | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +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 "" ++fi +-- +2.5.0 + -- cgit v1.2.3