Skip to contentSkip to conversation

package/libcec: needs gcc >= 4.7

PATCH New Yann E. MORIN 3 participants 3 messages Aug 5, 2015 – Aug 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libcec: needs gcc >= 4.7

As per upstream, gcc-4.7 is required to build libcec:

    https://github.com/Pulse-Eight/libcec/issues/78#issuecomment-91578591

Fixes:

    http://autobuild.buildroot.org/results/3b5/3b5611725c13668472482ed4ad3b46886d4c63d9/
    http://autobuild.buildroot.org/results/0d0/0d032cdd8dbf6d0ddef392c3e5a734881e00ee64/
    http://autobuild.buildroot.org/results/c21/c21c555c38261f6911349ff9fdac6edeb4debaac/
    [...]

Possibly fixes:

    http://autobuild.buildroot.org/results/4a7/4a7b2af2fc3924255ac89e18f4f5c90bb8383265/
    http://autobuild.buildroot.org/results/dd6/dd61c186e6d85a9b30cd32edb74a52f7a4f73cc8/
    [...]
---
 package/kodi/Config.in   | 4 +++-
 package/libcec/Config.in | 6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)
package/kodi/Config.in +3 -1
index c3b3183..797f59d 100644
@@ -158,13 +158,15 @@ config BR2_PACKAGE_KODI_LIBCEC
 	bool "hdmi cec"
 	depends on !BR2_STATIC_LIBS # libcec
 	depends on BR2_PACKAGE_HAS_UDEV
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # libcec
 	select BR2_PACKAGE_LIBCEC
 	help
 	  Enable CEC (Consumer Electronics Control) support.
 	  Select this if you want Kodi to support HDMI CEC.
 
 comment "hdmi cec support needs udev /dev management and a toolchain w/ dynamic library"
-	depends on BR2_STATIC_LIBS || !BR2_PACKAGE_HAS_UDEV
+	depends on BR2_STATIC_LIBS || !BR2_PACKAGE_HAS_UDEV || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
 
 config BR2_PACKAGE_KODI_LIRC
 	bool "lirc"
package/libcec/Config.in +4 -2
index 2cf011d..2dddc53 100644
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBCEC
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_WCHAR
 	depends on !BR2_STATIC_LIBS
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
 	select BR2_PACKAGE_LIBPLATFORM
 	help
 	  libcec allows you in combination with the right hardware to
@@ -12,6 +13,7 @@ config BR2_PACKAGE_LIBCEC
 
 	  http://libcec.pulse-eight.com
 
-comment "libcec needs a toolchain w/ C++, wchar, threads, dynamic library"
+comment "libcec needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.7"
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_USE_WCHAR || BR2_STATIC_LIBS
+		!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || \
+		BR2_STATIC_LIBS
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 package/libcec: needs gcc >= 4.7

Am Wed, 05 Aug 2015 20:05:57 +0200 schrieb Yann E. MORIN:

Quoted 2 lines

As per upstream, gcc-4.7 is required to build libcec:
https://github.com/Pulse-Eight/libcec/

issues/78#issuecomment-91578591

Quoted 3 lines

Fixes:
http://autobuild.buildroot.org/

results/3b5/3b5611725c13668472482ed4ad3b46886d4c63d9/

Quoted 1 line

http://autobuild.buildroot.org/

results/0d0/0d032cdd8dbf6d0ddef392c3e5a734881e00ee64/

Quoted 1 line

http://autobuild.buildroot.org/results/c21/

c21c555c38261f6911349ff9fdac6edeb4debaac/

Quoted 4 lines
    [...]

Possibly fixes:
http://autobuild.buildroot.org/

results/4a7/4a7b2af2fc3924255ac89e18f4f5c90bb8383265/

Quoted 1 line

http://autobuild.buildroot.org/results/dd6/

dd61c186e6d85a9b30cd32edb74a52f7a4f73cc8/

Quoted 14 lines
    [...]

Signed-off-by: "Yann E. MORIN"
<[email protected]>
Cc: Bernd Kuhls <[email protected]>

---
 package/kodi/Config.in   | 4 +++-
 package/libcec/Config.in | 6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)
package/kodi/Config.in index renamed from package/kodi/Config.in +0 -0

c3b3183..797f59d 100644 --- a/package/kodi/Config.in +++ b/package/kodi/Config.in @@ -158,13 +158,15 @@ config BR2_PACKAGE_KODI_LIBCEC

package/kodi/Config.in index

Quoted 2 lines
package/kodi/Config.in index renamed from package/kodi/Config.in +0 -0
 	bool "hdmi cec"
 	depends on !BR2_STATIC_LIBS # libcec depends on 

BR2_PACKAGE_HAS_UDEV

package/kodi/Config.in index

Quoted 1 line
package/kodi/Config.in index renamed from package/kodi/Config.in +1 -0
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # libcec

Hi Yann,

Regards, Bernd

#2 lore raw

PATCH 1/1 package/libcec: needs gcc >= 4.7

In reply to Yann E. MORIN

Dear Yann E. MORIN,

Quoted 14 lines · Yann E. MORIN

As per upstream, gcc-4.7 is required to build libcec:

    https://github.com/Pulse-Eight/libcec/issues/78#issuecomment-91578591

Fixes:

    http://autobuild.buildroot.org/results/3b5/3b5611725c13668472482ed4ad3b46886d4c63d9/
    http://autobuild.buildroot.org/results/0d0/0d032cdd8dbf6d0ddef392c3e5a734881e00ee64/
    http://autobuild.buildroot.org/results/c21/c21c555c38261f6911349ff9fdac6edeb4debaac/
    [...]

Possibly fixes:

    http://autobuild.buildroot.org/results/4a7/4a7b2af2fc3924255ac89e18f4f5c90bb8383265/
    http://autobuild.buildroot.org/results/dd6/dd61c186e6d85a9b30cd32edb74a52f7a4f73cc8/
    [...]
Quoted 6 lines
---
 package/kodi/Config.in   | 4 +++-
 package/libcec/Config.in | 6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com