1 |
commit: ad6d1c2f37145ba24dce788b556827893ea7d4b5 |
2 |
Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 27 11:10:31 2016 +0000 |
4 |
Commit: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 11:10:31 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad6d1c2f |
7 |
|
8 |
media-plugins/vdr-satip: fixed gcc-6 compile; wrt bug 594170 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
.../vdr-satip/files/vdr-satip-2.2.3_c++11.patch | 28 ++++++++++++++++++ |
13 |
media-plugins/vdr-satip/vdr-satip-2.2.3-r1.ebuild | 33 ++++++++++++++++++++++ |
14 |
2 files changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/media-plugins/vdr-satip/files/vdr-satip-2.2.3_c++11.patch b/media-plugins/vdr-satip/files/vdr-satip-2.2.3_c++11.patch |
17 |
new file mode 100644 |
18 |
index 00000000..102e8e9 |
19 |
--- /dev/null |
20 |
+++ b/media-plugins/vdr-satip/files/vdr-satip-2.2.3_c++11.patch |
21 |
@@ -0,0 +1,28 @@ |
22 |
+common.h still use function typeof, |
23 |
+this was never defined part of c++ and is |
24 |
+not supported in c++11 anymore |
25 |
+so we revert back to gnu++03 as it is not fixed by upstream |
26 |
+Signed-of-by: Joerg Bornkessel <hd_brummy@g.o> (2016/aug/01) |
27 |
+diff -Naur satip-2.2.3.orig/Makefile satip-2.2.3/Makefile |
28 |
+--- satip-2.2.3.orig/Makefile 2016-08-03 23:17:36.769080128 +0200 |
29 |
++++ satip-2.2.3/Makefile 2016-08-03 23:18:36.399080128 +0200 |
30 |
+@@ -32,6 +32,7 @@ |
31 |
+ |
32 |
+ export CFLAGS = $(call PKGCFG,cflags) |
33 |
+ export CXXFLAGS = $(call PKGCFG,cxxflags) |
34 |
++export CXXFLAGS += -std=gnu++03 |
35 |
+ STRIP = true |
36 |
+ |
37 |
+ ### The version number of VDR's plugin API: |
38 |
+diff -Naur satip-2.2.3.orig/common.h satip-2.2.3/common.h |
39 |
+--- satip-2.2.3.orig/common.h 2016-08-07 02:54:27.290440336 +0200 |
40 |
++++ satip-2.2.3/common.h 2016-08-07 02:54:53.193773669 +0200 |
41 |
+@@ -52,7 +52,7 @@ |
42 |
+ do { \ |
43 |
+ if (exp) { \ |
44 |
+ char tmp[64]; \ |
45 |
+- esyslog("[%s,%d]: "errstr": %s", __FILE__, __LINE__, \ |
46 |
++ esyslog("[%s,%d]: " errstr ": %s", __FILE__, __LINE__, \ |
47 |
+ strerror_r(errno, tmp, sizeof(tmp))); \ |
48 |
+ func; \ |
49 |
+ ret; \ |
50 |
|
51 |
diff --git a/media-plugins/vdr-satip/vdr-satip-2.2.3-r1.ebuild b/media-plugins/vdr-satip/vdr-satip-2.2.3-r1.ebuild |
52 |
new file mode 100644 |
53 |
index 00000000..b27b7df |
54 |
--- /dev/null |
55 |
+++ b/media-plugins/vdr-satip/vdr-satip-2.2.3-r1.ebuild |
56 |
@@ -0,0 +1,33 @@ |
57 |
+# Copyright 1999-2016 Gentoo Foundation |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+# $Id$ |
60 |
+ |
61 |
+EAPI=6 |
62 |
+ |
63 |
+inherit vdr-plugin-2 |
64 |
+ |
65 |
+DESCRIPTION="VDR Plugin: integrates SAT>IP network devices seamlessly into VDR" |
66 |
+HOMEPAGE="http://www.saunalahti.fi/~rahrenbe/vdr/satip/" |
67 |
+SRC_URI="http://www.saunalahti.fi/~rahrenbe/vdr/satip/files/${P}.tgz" |
68 |
+ |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+SLOT="0" |
71 |
+LICENSE="GPL-2" |
72 |
+IUSE="" |
73 |
+ |
74 |
+DEPEND=">=media-video/vdr-2.2.0 |
75 |
+ >=net-misc/curl-7.36 |
76 |
+ || ( dev-libs/tinyxml |
77 |
+ dev-libs/pugixml )" |
78 |
+RDEPEND="${DEPEND}" |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ vdr-plugin-2_src_prepare |
82 |
+ |
83 |
+ # c++11 compile fix |
84 |
+ eapply "${FILESDIR}/${P}_c++11.patch" |
85 |
+ |
86 |
+ if has_version "dev-libs/tinyxml" ; then |
87 |
+ sed -e "s:#SATIP_USE_TINYXML:SATIP_USE_TINYXML:" -i Makefile |
88 |
+ fi |
89 |
+} |