From 13cc51cd2433f3345580e2d700066db4e553d9ec Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 15 Oct 2019 14:05:38 +0200 Subject: [PATCH] libcmis: fix build with gcc9 --- ...no-include-cxx-headers-from-extern-c.patch | 19 +++++++++++++++++++ srcpkgs/libcmis/template | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libcmis/patches/no-include-cxx-headers-from-extern-c.patch diff --git a/srcpkgs/libcmis/patches/no-include-cxx-headers-from-extern-c.patch b/srcpkgs/libcmis/patches/no-include-cxx-headers-from-extern-c.patch new file mode 100644 index 00000000000000..c82cf900561253 --- /dev/null +++ b/srcpkgs/libcmis/patches/no-include-cxx-headers-from-extern-c.patch @@ -0,0 +1,19 @@ +FTBFS: /usr/include/c++/9.2/memory:146:1: error: template with C linkage + +--- inc/libcmis-c/repository.h ++++ inc/libcmis-c/repository.h +@@ -28,12 +28,12 @@ + #ifndef _REPOSITORY_H_ + #define _REPOSITORY_H_ + ++#include ++ + #ifdef __cplusplus + extern "C" { + #endif + +-#include +- + #include "libcmis-c/libcmis-c-api.h" + #include "libcmis-c/types.h" + diff --git a/srcpkgs/libcmis/template b/srcpkgs/libcmis/template index 9913168a63534b..eaf3215cff9723 100644 --- a/srcpkgs/libcmis/template +++ b/srcpkgs/libcmis/template @@ -1,7 +1,7 @@ # Template file for 'libcmis' pkgname=libcmis version=0.5.2 -revision=2 +revision=3 build_style=gnu-configure configure_args="DOCBOOK2MAN=docbook2man --disable-werror" hostmakedepends="pkg-config docbook2x"