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 971A1138330 for ; Mon, 3 Oct 2016 21:21:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1ADFE0BF0; Mon, 3 Oct 2016 21:21:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85946E0BF0 for ; Mon, 3 Oct 2016 21:21:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0892C340EF8 for ; Mon, 3 Oct 2016 21:21:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5AC792480 for ; Mon, 3 Oct 2016 21:21:03 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1475529656.6924f47fe17a0242f9fffeacf3b8b61cce748083.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/adplay/files/, media-sound/adplay/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/adplay/adplay-1.7.ebuild media-sound/adplay/files/adplay-1.7-fix-c++14.patch X-VCS-Directories: media-sound/adplay/ media-sound/adplay/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 6924f47fe17a0242f9fffeacf3b8b61cce748083 X-VCS-Branch: master Date: Mon, 3 Oct 2016 21:21:03 +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-Archives-Salt: 5af2316c-d935-4e1b-9156-3ff869ed1511 X-Archives-Hash: 47d8a89b7dc29b89c1976398c36a8475 commit: 6924f47fe17a0242f9fffeacf3b8b61cce748083 Author: David Seifert gentoo org> AuthorDate: Mon Oct 3 21:20:25 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Mon Oct 3 21:20:56 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6924f47f media-sound/adplay: Allow for compiling with GCC 6 Gentoo-bug: 596092 Package-Manager: portage-2.3.1 media-sound/adplay/adplay-1.7.ebuild | 9 ++++----- .../adplay/files/adplay-1.7-fix-c++14.patch | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/media-sound/adplay/adplay-1.7.ebuild b/media-sound/adplay/adplay-1.7.ebuild index c84830c..6d5680f 100644 --- a/media-sound/adplay/adplay-1.7.ebuild +++ b/media-sound/adplay/adplay-1.7.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=4 +EAPI=6 DESCRIPTION="A console player for AdLib music" HOMEPAGE="http://adplug.sourceforge.net" @@ -20,14 +20,13 @@ RDEPEND=">=media-libs/adplug-2.2.1 sdl? ( media-libs/libsdl )" DEPEND="${RDEPEND} virtual/pkgconfig" - -DOCS=( AUTHORS ChangeLog NEWS README TODO ) +PATCHES=( "${FILESDIR}/${PN}-1.7-fix-c++14.patch" ) src_configure() { econf \ + --disable-output-esound \ $(use_enable alsa output-alsa) \ $(use_enable ao output-ao) \ - --disable-output-esound \ $(use_enable oss output-oss) \ $(use_enable sdl output-sdl) } diff --git a/media-sound/adplay/files/adplay-1.7-fix-c++14.patch b/media-sound/adplay/files/adplay-1.7-fix-c++14.patch new file mode 100644 index 00000000..aedbbc0 --- /dev/null +++ b/media-sound/adplay/files/adplay-1.7-fix-c++14.patch @@ -0,0 +1,22 @@ +From 48dcaa87ff91369eb41998abd72e226fe138b528 Mon Sep 17 00:00:00 2001 +From: Adam Nielsen +Date: Sun, 22 May 2016 08:49:47 +1000 +Subject: [PATCH] Cast -1 to unsigned int to prevent compiler error + +--- + src/adplay.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/adplay.cc b/src/adplay.cc +index d73ec25..da00730 100644 +--- a/src/adplay.cc ++++ b/src/adplay.cc +@@ -90,7 +90,7 @@ static struct { + 1, 16, 0, // Else default to mono (until stereo w/ single OPL is fixed) + #endif + MSG_NOTE, +- -1, ++ (unsigned int)-1, + NULL, + NULL, + true, false, false, false,