compile fix for invalid conversion from char to const char*
thx to Michael Brakemeier for point this out
-Signed-of-by: Joerg Bornkessel <hd_brummy@astrali.de> (17 Nov 2019)
-diff -Naur loadepg-0.2.5.orig/loadepg.c loadepg-0.2.5/loadepg.c
---- loadepg-0.2.5.orig/loadepg.c 2019-11-17 14:49:27.637235533 +0100
-+++ loadepg-0.2.5/loadepg.c 2019-11-17 14:50:23.690235533 +0100
-@@ -159,7 +159,7 @@
+Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org> (29 Feb 2020)
+diff -Naur vdr-loadepg-0.2.7.orig/loadepg.c vdr-loadepg-0.2.7/loadepg.c
+--- vdr-loadepg-0.2.7.orig/loadepg.c 2020-02-28 14:08:35.713790460 +0100
++++ vdr-loadepg-0.2.7/loadepg.c 2020-02-28 14:11:05.457790460 +0100
+@@ -162,7 +162,7 @@
(lProviders + nProviders)->SourceId = cSource::FromString(string2);
asprintf(&(lProviders + nProviders)->Parm1, "%i:%c:%s:%i", int1, char1, string2, int2);
asprintf(&(lProviders + nProviders)->Parm2, "%s", string3);
-- asprintf(&(lProviders + nProviders)->Parm3, '\0');
-+ asprintf(&(lProviders + nProviders)->Parm3, "");
+- asprintf(&(lProviders + nProviders)->Parm3, (char *) '\0');
++ asprintf(&(lProviders + nProviders)->Parm3, (char *) "");
nProviders ++;
IsSkyThemesNull = true;
}
-@@ -169,8 +169,8 @@
+@@ -172,8 +172,8 @@
(lProviders + nProviders)->DataFormat = DATA_FORMAT_MHW_1;
(lProviders + nProviders)->SourceId = cSource::FromString(string2);
asprintf(&(lProviders + nProviders)->Parm1, "%i:%c:%s:%i", int1, char1, string2, int2);
-- asprintf(&(lProviders + nProviders)->Parm2, '\0');
-- asprintf(&(lProviders + nProviders)->Parm3, '\0');
-+ asprintf(&(lProviders + nProviders)->Parm2, "");
-+ asprintf(&(lProviders + nProviders)->Parm3, "");
+- asprintf(&(lProviders + nProviders)->Parm2, (char *) '\0');
+- asprintf(&(lProviders + nProviders)->Parm3, (char *) '\0');
++ asprintf(&(lProviders + nProviders)->Parm2, (char *) "");
++ asprintf(&(lProviders + nProviders)->Parm3, (char *) "");
nProviders ++;
}
else if(sscanf(Line, "MHW_2=%[^:] :%i :%c :%[^:] :%i ", string1, &int1, &char1, string2, &int2) == 5)
-@@ -179,8 +179,8 @@
+@@ -182,8 +182,8 @@
(lProviders + nProviders)->DataFormat = DATA_FORMAT_MHW_2;
(lProviders + nProviders)->SourceId = cSource::FromString(string2);
asprintf(&(lProviders + nProviders)->Parm1, "%i:%c:%s:%i", int1, char1, string2, int2);
-- asprintf(&(lProviders + nProviders)->Parm2, '\0');
-- asprintf(&(lProviders + nProviders)->Parm3, '\0');
-+ asprintf(&(lProviders + nProviders)->Parm2, "");
-+ asprintf(&(lProviders + nProviders)->Parm3, "");
+- asprintf(&(lProviders + nProviders)->Parm2, (char *) '\0');
+- asprintf(&(lProviders + nProviders)->Parm3, (char *) '\0');
++ asprintf(&(lProviders + nProviders)->Parm2, (char *) "");
++ asprintf(&(lProviders + nProviders)->Parm3, (char *) "");
nProviders ++;
}
else if(sscanf(Line, "FILE=%[^:] :%s ", string1, string2) == 2)
-@@ -189,8 +189,8 @@
+@@ -192,8 +192,8 @@
(lProviders + nProviders)->DataFormat = DATA_FORMAT_FILE;
(lProviders + nProviders)->SourceId = 0;
asprintf(&(lProviders + nProviders)->Parm1, "%s", string2);
-- asprintf(&(lProviders + nProviders)->Parm2, '\0');
-- asprintf(&(lProviders + nProviders)->Parm3, '\0');
-+ asprintf(&(lProviders + nProviders)->Parm2, "");
-+ asprintf(&(lProviders + nProviders)->Parm3, "");
+- asprintf(&(lProviders + nProviders)->Parm2, (char *) '\0');
+- asprintf(&(lProviders + nProviders)->Parm3, (char *) '\0');
++ asprintf(&(lProviders + nProviders)->Parm2, (char *) "");
++ asprintf(&(lProviders + nProviders)->Parm3, (char *) "");
nProviders ++;
}
else if(sscanf(Line, "SCRIPT=%[^:] :%[^:] :%s ", string1, string2, string3) == 3)
-@@ -200,7 +200,7 @@
+@@ -203,7 +203,7 @@
(lProviders + nProviders)->SourceId = 0;
asprintf(&(lProviders + nProviders)->Parm1, "%s", string2);
asprintf(&(lProviders + nProviders)->Parm2, "%s", string3);
-- asprintf(&(lProviders + nProviders)->Parm3, '\0');
-+ asprintf(&(lProviders + nProviders)->Parm3, "");
+- asprintf(&(lProviders + nProviders)->Parm3, (char *) '\0');
++ asprintf(&(lProviders + nProviders)->Parm3, (char *) "");
nProviders ++;
}
}
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
-IUSE=""
DEPEND="media-video/vdr"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${P}"
src_prepare() {
# remove untranslated po files
- rm "${S}/po/{ca_ES,cs_CZ,da_DK,el_GR,et_EE,fr_FR,hr_HR,hu_HU,nn_NO,pl_PL,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po"
+ rm "${S}"/po/{ca_ES,cs_CZ,da_DK,el_GR,et_EE,fr_FR,hr_HR,hu_HU,nn_NO,pl_PL,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po
vdr-plugin-2_src_prepare
fix_vdr_libsi_include loadepg.h
eapply "${FILESDIR}/${P}_asprintf.patch"
+
}
src_install() {