* [gentoo-commits] repo/gentoo:master commit in: media-video/movit/files/, media-video/movit/
@ 2016-02-23 10:00 Patrick Lauer
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Lauer @ 2016-02-23 10:00 UTC (permalink / raw
To: gentoo-commits
commit: baab4691c357ef98b6ad32786c0942097e9c6eed
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 23 09:59:37 2016 +0000
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Tue Feb 23 09:59:51 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=baab4691
media-video/movit: Fix locale handling #575438
Package-Manager: portage-2.2.27
media-video/movit/files/movit-fix-locale.patch | 16 ++++++++++++++++
.../movit/{movit-1.3.1.ebuild => movit-1.3.1-r1.ebuild} | 6 ++++++
2 files changed, 22 insertions(+)
diff --git a/media-video/movit/files/movit-fix-locale.patch b/media-video/movit/files/movit-fix-locale.patch
new file mode 100644
index 0000000..f98c970
--- /dev/null
+++ b/media-video/movit/files/movit-fix-locale.patch
@@ -0,0 +1,16 @@
+--- a/init.cpp 2016-02-14 19:53:12.141197530 +0100
++++ b/init.cpp 2016-02-14 19:55:09.374196665 +0100
+@@ -388,7 +388,12 @@
+ // Now we have something on the form X.YY. We convert it to a float, and hope
+ // that if it's inexact (e.g. 1.30), atof() will round the same way the
+ // compiler will.
+- float glsl_version = atof(glsl_version_str);
++
++ std::istringstream locale_convert(glsl_version_str);
++ locale_convert.imbue(std::locale("C"));
++ double glsl_version;
++ locale_convert >> glsl_version;
++
+ free(glsl_version_str);
+
+ return glsl_version;
diff --git a/media-video/movit/movit-1.3.1.ebuild b/media-video/movit/movit-1.3.1-r1.ebuild
similarity index 90%
rename from media-video/movit/movit-1.3.1.ebuild
rename to media-video/movit/movit-1.3.1-r1.ebuild
index 0892714..f5931de 100644
--- a/media-video/movit/movit-1.3.1.ebuild
+++ b/media-video/movit/movit-1.3.1-r1.ebuild
@@ -4,6 +4,8 @@
EAPI=5
+inherit eutils
+
# no sane way to use OpenGL from within tests?
RESTRICT="test"
@@ -26,6 +28,10 @@ RDEPEND="media-libs/mesa
"
DEPEND="${RDEPEND}"
+src_prepare() {
+ epatch "${FILESDIR}/movit-fix-locale.patch"
+}
+
src_compile() {
GTEST_DIR="${WORKDIR}/gtest-1.7.0" emake
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-video/movit/files/, media-video/movit/
@ 2022-04-21 18:49 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-04-21 18:49 UTC (permalink / raw
To: gentoo-commits
commit: d4c7383ea2a0a480b86ddeee835d7cf7a5b127c6
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 18:26:10 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 18:49:31 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4c7383e
media-video/movit: fix build with GCC 12
Closes: https://bugs.gentoo.org/839915
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-video/movit/files/movit-1.6.3-gcc12.patch | 12 ++++++++++++
media-video/movit/movit-1.6.3.ebuild | 9 ++++++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/media-video/movit/files/movit-1.6.3-gcc12.patch b/media-video/movit/files/movit-1.6.3-gcc12.patch
new file mode 100644
index 000000000000..00b9e9203b11
--- /dev/null
+++ b/media-video/movit/files/movit-1.6.3-gcc12.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/839915
+
+--- a/test_util.cpp
++++ b/test_util.cpp
+@@ -2,6 +2,7 @@
+ #include <math.h>
+ #include <stdio.h>
+ #include <algorithm>
++#include <memory>
+ #include <epoxy/gl.h>
+ #include <gtest/gtest.h>
+ #include <gtest/gtest-message.h>
diff --git a/media-video/movit/movit-1.6.3.ebuild b/media-video/movit/movit-1.6.3.ebuild
index a083a1dd4b0f..bc9144f4e5d9 100644
--- a/media-video/movit/movit-1.6.3.ebuild
+++ b/media-video/movit/movit-1.6.3.ebuild
@@ -21,12 +21,15 @@ RESTRICT="test"
RDEPEND="media-libs/mesa[X(+)]
>=dev-cpp/eigen-3.2.0:3
media-libs/libepoxy[egl]
- >=sci-libs/fftw-3
- media-libs/libsdl2
- "
+ >=sci-libs/fftw-3:=
+ media-libs/libsdl2"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.3-gcc12.patch
+)
+
src_compile() {
GTEST_DIR="${WORKDIR}/googletest-release-${GTEST_PV}/googletest" emake
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-21 18:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23 10:00 [gentoo-commits] repo/gentoo:master commit in: media-video/movit/files/, media-video/movit/ Patrick Lauer
-- strict thread matches above, loose matches on Subject: below --
2022-04-21 18:49 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox