Date: Saturday, October 21, 2017 @ 10:54:57 Author: jelle Revision: 263790
upgpkg: hyperion 1.03.2-12 protobuf 3.4.0 rebuild Added: hyperion/trunk/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch Modified: hyperion/trunk/PKGBUILD ------------------------------------------------------+ 0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch | 26 +++++++++++++++++ PKGBUILD | 12 +++++-- 2 files changed, 35 insertions(+), 3 deletions(-) Added: 0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch =================================================================== --- 0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch (rev 0) +++ 0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch 2017-10-21 10:54:57 UTC (rev 263790) @@ -0,0 +1,26 @@ +From 88ae95d522bfdda4c29a1116367aad8c7d948779 Mon Sep 17 00:00:00 2001 +From: Jelle van der Waa <je...@vdwaa.nl> +Date: Sat, 21 Oct 2017 12:46:49 +0200 +Subject: [PATCH] Fix no decleration of `assert` with GCC 7.2 + +Add a missing include for cassert to fix the -fpermissive compiler +error. +--- + include/utils/Image.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/utils/Image.h b/include/utils/Image.h +index e8c82e4..dad57a2 100644 +--- a/include/utils/Image.h ++++ b/include/utils/Image.h +@@ -1,6 +1,7 @@ + #pragma once + + // STL includes ++#include <cassert> + #include <vector> + #include <cstdint> + #include <cstring> +-- +2.14.2 + Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-10-21 10:17:44 UTC (rev 263789) +++ PKGBUILD 2017-10-21 10:54:57 UTC (rev 263790) @@ -4,7 +4,7 @@ pkgname=hyperion pkgver=1.03.2 -pkgrel=11 +pkgrel=12 pkgdesc="An opensource 'AmbiLight' implementation" arch=('i686' 'x86_64') url="https://github.com/hyperion-project/hyperion" @@ -13,9 +13,15 @@ optdepends=('xorg-server: X11 grabbing') makedepends=('cmake') backup=('etc/hyperion/hyperion.config.json') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tvdzwan/${pkgname}/archive/${pkgver}.tar.gz") -sha512sums=('7406f5bdf323d2799fb375557603fefd1f077cda287b5aa9ff10251b22d8dd07590458515b0e01ef97fba80885aab1aa72bd8b5d26873ad8ebcc1ba53d6776ec') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tvdzwan/${pkgname}/archive/${pkgver}.tar.gz" "0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch") +sha512sums=('7406f5bdf323d2799fb375557603fefd1f077cda287b5aa9ff10251b22d8dd07590458515b0e01ef97fba80885aab1aa72bd8b5d26873ad8ebcc1ba53d6776ec' + '11c51f6085d78bb75a7d73372262eedc2dab84b9d37ee1850f6b8d8c9cfe85d72a69b7d755e169028c6f7150f09201ded7d32a4edf15130ca2a12a188fe5945c') +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch" +} + build() { cd "${srcdir}/${pkgname}-${pkgver}" mkdir -p build