From 23b0d21a500c1b36d9df88ff30d3bc1491af208b Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Thu, 12 Dec 2019 21:41:54 +0100 Subject: [PATCH] media-plugins/vdr-freecell: fixed time_ms was not declared in this scope Bug: https://bugs.gentoo.org/702612 Closes: https://bugs.gentoo.org/702612 Package-Manager: Portage-2.3.81, Repoman-2.3.18 Signed-off-by: Joerg Bornkessel --- .../files/vdr-freecell-0.0.2_compilefix.patch | 17 +++++++++++++++++ .../vdr-freecell/vdr-freecell-0.0.2-r4.ebuild | 1 + 2 files changed, 18 insertions(+) create mode 100644 media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_compilefix.patch diff --git a/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_compilefix.patch b/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_compilefix.patch new file mode 100644 index 000000000000..fb97d1850ff9 --- /dev/null +++ b/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_compilefix.patch @@ -0,0 +1,17 @@ +https://bugs.gentoo.org/702612 +compile fix for: time_ms was not declared in this scope + +Signed-off-by: Joerg Bornkessel (12 Dec 2019) + +diff -Naur freecell-0.0.2.orig/cards.c freecell-0.0.2/cards.c +--- freecell-0.0.2.orig/cards.c 2019-12-12 21:25:43.000000000 +0100 ++++ freecell-0.0.2/cards.c 2019-12-12 21:27:38.000000000 +0100 +@@ -52,7 +52,7 @@ + mX = X; + mY = Y; + mStacked = Stacked; +- mSeed = time_ms(); ++ mSeed = cTimeMs::Now(); + } + + cCardStack::~cCardStack() { diff --git a/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild b/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild index 3d10e2af527e..a8442bf991d2 100644 --- a/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild +++ b/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild @@ -24,6 +24,7 @@ src_prepare() { eapply -p2 "${FILESDIR}/gcc-3.4.patch" eapply "${FILESDIR}/${P}-gentoo.diff" eapply "${FILESDIR}/${P}_vdr-1.5.4-compile.diff" + eapply "${FILESDIR}/${P}_compilefix.patch" } src_install() { -- 2.26.2