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 65461139694 for ; Fri, 30 Jun 2017 05:34:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0CB427400B; Fri, 30 Jun 2017 05:34:10 +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 7F0A927400B for ; Fri, 30 Jun 2017 05:34:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 336E33416CA for ; Fri, 30 Jun 2017 05:34:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F19AD7478 for ; Fri, 30 Jun 2017 05:34:07 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1498800746.811e5db14f48f6e7a843a2a95222c73f1cb42386.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/din/, media-sound/din/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/din/din-5.2.1.ebuild media-sound/din/files/fix-random-constants.patch X-VCS-Directories: media-sound/din/files/ media-sound/din/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 811e5db14f48f6e7a843a2a95222c73f1cb42386 X-VCS-Branch: master Date: Fri, 30 Jun 2017 05:34:07 +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: 8f40f057-683b-45e5-a20f-c05044caf8f2 X-Archives-Hash: 401b92619037f23ee8777d91bc9b4ebb commit: 811e5db14f48f6e7a843a2a95222c73f1cb42386 Author: Peter Levine gmail com> AuthorDate: Thu Jun 29 08:05:31 2017 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Fri Jun 30 05:32:26 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=811e5db1 media-sound/din: Fix building with GCC-6 Bug: https://bugs.gentoo.org/show_bug.cgi?id=594996 Package-Manager: Portage-2.3.6, Repoman-2.3.2 media-sound/din/din-5.2.1.ebuild | 3 ++- media-sound/din/files/fix-random-constants.patch | 30 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/media-sound/din/din-5.2.1.ebuild b/media-sound/din/din-5.2.1.ebuild index 4e825cf206f..592a773fe05 100644 --- a/media-sound/din/din-5.2.1.ebuild +++ b/media-sound/din/din-5.2.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -28,6 +28,7 @@ src_prepare() { epatch "${FILESDIR}"/${P}-makefile.patch epatch "${FILESDIR}"/${P}-tcl.patch epatch "${FILESDIR}"/${P}-desktop.patch + epatch "${FILESDIR}"/fix-random-constants.patch # force script to be regenerated so it uses the right data path rm data/checkdotdin || die diff --git a/media-sound/din/files/fix-random-constants.patch b/media-sound/din/files/fix-random-constants.patch new file mode 100644 index 00000000000..f055b10140d --- /dev/null +++ b/media-sound/din/files/fix-random-constants.patch @@ -0,0 +1,30 @@ +Description: Redefine some constants in include/random.h as unsigned + These constants are used with unsigned variables, so redefine them + for consistency. + . + This also fixes compilation errors under C++11: In C++11, array initialization + is considered list initialization and so prohibits narrowing conversions + (from negative signed values to unsigned). +Author: Philip Chung +Bug-Debian: https://bugs.debian.org/811778 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- + include/random.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +--- din-5.2.1.orig/include/random.h ++++ din-5.2.1/include/random.h +@@ -28,9 +28,9 @@ + + const int N = 624; + const int M = 397; +-const int MATRIX_A = 0x9908b0df; /* constant vector a */ +-const int UPPER_MASK = 0x80000000; /* most significant w-r bits */ +-const int LOWER_MASK = 0x7fffffff; /* least significant r bits */ ++const unsigned int MATRIX_A = 0x9908b0df; /* constant vector a */ ++const unsigned int UPPER_MASK = 0x80000000; /* most significant w-r bits */ ++const unsigned int LOWER_MASK = 0x7fffffff; /* least significant r bits */ + + static unsigned int mt[N]; /* the array for the state vector */ + static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */