From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F50513934E for ; Sun, 25 Jul 2021 23:23:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B328EE097B; Sun, 25 Jul 2021 23:23:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8D624E0999 for ; Sun, 25 Jul 2021 23:23:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3AB6F335D56 for ; Sun, 25 Jul 2021 23:23:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE7957AF for ; Sun, 25 Jul 2021 23:23:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1627255412.5f696cf69f7580b3b3e4483e58437a5e29400a25.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/bino/files/, media-video/bino/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/bino/bino-1.6.7.ebuild media-video/bino/files/bino-1.6.7-gcc11.patch X-VCS-Directories: media-video/bino/ media-video/bino/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5f696cf69f7580b3b3e4483e58437a5e29400a25 X-VCS-Branch: master Date: Sun, 25 Jul 2021 23:23:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7907e780-7431-47e4-aa27-95c8fbb701f8 X-Archives-Hash: 4ddde25b916ebd8a338d0cca5c97220a commit: 5f696cf69f7580b3b3e4483e58437a5e29400a25 Author: Sam James gentoo org> AuthorDate: Sun Jul 25 22:57:07 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jul 25 23:23:32 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f696cf6 media-video/bino: update EAPI 6 -> 7, fix build with GCC 11 Closes: https://bugs.gentoo.org/790128 Signed-off-by: Sam James gentoo.org> media-video/bino/bino-1.6.7.ebuild | 43 +++++++++++---------------- media-video/bino/files/bino-1.6.7-gcc11.patch | 30 +++++++++++++++++++ 2 files changed, 48 insertions(+), 25 deletions(-) diff --git a/media-video/bino/bino-1.6.7.ebuild b/media-video/bino/bino-1.6.7.ebuild index 2969055aea7..8c5b35e1714 100644 --- a/media-video/bino/bino-1.6.7.ebuild +++ b/media-video/bino/bino-1.6.7.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit flag-o-matic xdg-utils +inherit flag-o-matic xdg DESCRIPTION="Stereoscopic and multi-display media player" HOMEPAGE="https://bino3d.org/" @@ -25,28 +25,28 @@ RDEPEND=" virtual/libintl >=media-video/ffmpeg-0.7:0= lirc? ( app-misc/lirc ) - video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] ) -" -DEPEND="${RDEPEND} - sys-devel/gettext - virtual/pkgconfig -" + video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )" +DEPEND="${RDEPEND}" +BDEPEND="sys-devel/gettext + virtual/pkgconfig" -src_configure() { - # Qt5 now requires C++11, #649282 - append-cxxflags -std=c++11 +PATCHES=( + "${FILESDIR}"/${PN}-1.6.7-gcc11.patch +) +src_configure() { if use video_cards_nvidia; then - append-cppflags "-I/usr/include/NVCtrl" - append-ldflags "-L/usr/$(get_libdir)/opengl/nvidia/lib -L/usr/$(get_libdir)" + append-cppflags "-I${ESYSROOT}/usr/include/NVCtrl" + append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/opengl/nvidia/lib -L${ESYSROOT}/usr/$(get_libdir)" append-libs "Xext" fi + if use lirc; then - append-cppflags "-I/usr/include/lirc" + append-cppflags "-I${ESYSROOT}/usr/include/lirc" append-libs "lirc_client" fi - # Fix a compilation error because of a multiple definitions in glew + # Fix a compilation error because of a multiple definitions error in glew append-ldflags "-zmuldefs" econf \ @@ -59,15 +59,8 @@ src_configure() { src_install() { default + if ! use doc; then - rm -rf "${D}"/usr/share/doc/${PF}/html || die + rm -rf "${ED}"/usr/share/doc/${PF}/html || die fi } - -pkg_postinst() { - xdg_desktop_database_update -} - -pkg_postrm() { - xdg_desktop_database_update -} diff --git a/media-video/bino/files/bino-1.6.7-gcc11.patch b/media-video/bino/files/bino-1.6.7-gcc11.patch new file mode 100644 index 00000000000..8d4bf4070f3 --- /dev/null +++ b/media-video/bino/files/bino-1.6.7-gcc11.patch @@ -0,0 +1,30 @@ +https://git.marlam.de/gitweb/?p=bino.git;a=commitdiff;h=7997ad11eefe241bb85a27c50d009c99851d7b0b +https://bugs.gentoo.org/790128 + +From 7997ad11eefe241bb85a27c50d009c99851d7b0b Mon Sep 17 00:00:00 2001 +From: Martin Lambers +Date: Sat, 27 Feb 2021 21:28:50 +0100 +Subject: [PATCH] fix compilation with C++ 17 compilers such as gcc 11 + +--- + src/base/dbg.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/base/dbg.cpp b/src/base/dbg.cpp +index 6c6234f..044be67 100644 +--- a/src/base/dbg.cpp ++++ b/src/base/dbg.cpp +@@ -74,8 +74,10 @@ namespace dbg + (void)sigaction(SIGFPE, &signal_handler, NULL); + (void)sigaction(SIGSEGV, &signal_handler, NULL); + #endif ++#if __cplusplus < 201700 + std::set_unexpected(exception_crash); + std::set_terminate(exception_crash); ++#endif + std::set_new_handler(oom_abort); + } + +-- +2.20.1 +