From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CD9CE1388C2 for ; Thu, 14 Jan 2016 00:48:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9226521C002; Thu, 14 Jan 2016 00:48:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E05C21C002 for ; Thu, 14 Jan 2016 00:48:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8D0753409C8 for ; Thu, 14 Jan 2016 00:48:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BEE55A91 for ; Thu, 14 Jan 2016 00:47:59 +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: <1452732472.edcdcd00ac0cf9a56faef2ceb75c2a82eed7f2b0.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/daudio/, media-sound/daudio/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/daudio/daudio-0.3-r1.ebuild media-sound/daudio/files/daudio-0.3-qa-implicit-declarations.patch X-VCS-Directories: media-sound/daudio/ media-sound/daudio/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: edcdcd00ac0cf9a56faef2ceb75c2a82eed7f2b0 X-VCS-Branch: master Date: Thu, 14 Jan 2016 00:47:59 +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: f530d5ba-f384-4222-a0d3-7c828829315f X-Archives-Hash: fe4438b089f2fe45cd6419aecccf8360 commit: edcdcd00ac0cf9a56faef2ceb75c2a82eed7f2b0 Author: David Seifert gentoo org> AuthorDate: Thu Jan 14 00:47:19 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Thu Jan 14 00:47:52 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edcdcd00 media-sound/daudio: add -std=gnu89 to CFLAGS to restore pre-GCC5 semantics Gentoo-Bug: 570582 In addition, modernize to EAPI=6 and fix implicit declarations. Package-Manager: portage-2.2.26 media-sound/daudio/daudio-0.3-r1.ebuild | 45 ++++++++++ .../daudio-0.3-qa-implicit-declarations.patch | 98 ++++++++++++++++++++++ 2 files changed, 143 insertions(+) diff --git a/media-sound/daudio/daudio-0.3-r1.ebuild b/media-sound/daudio/daudio-0.3-r1.ebuild new file mode 100644 index 0000000..2ff9aab --- /dev/null +++ b/media-sound/daudio/daudio-0.3-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="Distributed audio on the local network" +HOMEPAGE="http://daudio.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +#-sparc: 0.3: static audio on local daemon. No audio when client connects to amd64 daemon +KEYWORDS="~amd64 ~ppc -sparc ~x86" + +IUSE="" +DEPEND=">=media-libs/libmad-0.15.0b-r1" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-makefile.patch" + "${FILESDIR}/${P}-qa-implicit-declarations.patch" +) + +src_prepare() { + # fix #570582 by restoring pre-GCC5 inline semantics + append-cflags -std=gnu89 + + tc-export CC + default +} + +src_compile() { + emake -C client + emake -C server + emake -C streamer +} + +src_install() { + dobin client/daudioc server/daudiod streamer/dstreamer + newinitd "${FILESDIR}"/daudio.rc daudio + dodoc doc/* +} diff --git a/media-sound/daudio/files/daudio-0.3-qa-implicit-declarations.patch b/media-sound/daudio/files/daudio-0.3-qa-implicit-declarations.patch new file mode 100644 index 0000000..d60be6f --- /dev/null +++ b/media-sound/daudio/files/daudio-0.3-qa-implicit-declarations.patch @@ -0,0 +1,98 @@ +Fix implicit declarations, such as: + +main.c: In function ‘main’: +main.c:45:2: warning: incompatible implicit declaration of built-in function ‘exit’ + exit(1); + ^ +--- daudio-0.3/client/main.c ++++ daudio-0.3/client/main.c +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + + int main(int argc, char **argv) { + int s; +@@ -50,7 +51,7 @@ + + /* drop priveledges */ + uid = getuid(); +- seteuid(uid); ++ if(seteuid(uid)){}; + + set_default_options(void); + +--- daudio-0.3/client/net.c ++++ daudio-0.3/client/net.c +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + #include "net.h" + #include "../common/frame.h" +--- daudio-0.3/server/local.c ++++ daudio-0.3/server/local.c +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + #include "timer.h" + #include "data.h" +@@ -71,7 +72,7 @@ + + /* drop priveleges */ + uid = getuid(); +- seteuid(uid); ++ if(seteuid(uid)){}; + + current = bigbuf.buffer; + +--- daudio-0.3/server/main.c ++++ daudio-0.3/server/main.c +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + int main () { + int r; +@@ -40,19 +41,19 @@ + uid = getuid(); + r = d_init(); + if(r == -1) { +- seteuid(uid); ++ if(seteuid(uid)){}; + perror("d_init failed"); + exit(1); + } + r = b_init(); + if(r == -1) { +- seteuid(uid); ++ if(seteuid(uid)){}; + perror("b_init failed"); + exit(1); + } + r = t_init(); + /* drop priveleges */ +- seteuid(uid); ++ if(seteuid(uid)){}; + if(r == -1) { + perror("t_init failed"); + exit(1); +--- daudio-0.3/server/timer.c ++++ daudio-0.3/server/timer.c +@@ -124,7 +124,7 @@ + + /* drop priveleges */ + uid = getuid(); +- seteuid(uid); ++ if(seteuid(uid)){}; + + mytimer.it_value.tv_sec = 0; + mytimer.it_value.tv_usec = 0;