diff options
author | Hannes Mehnert <hannes@gentoo.org> | 2002-12-15 20:55:02 +0000 |
---|---|---|
committer | Hannes Mehnert <hannes@gentoo.org> | 2002-12-15 20:55:02 +0000 |
commit | 766250a8cb840a2b751d96a027afa929b7207894 (patch) | |
tree | bf957e4954fd8ede97ef49151ec8b4ea053d0c7a /kde-base | |
parent | masked arts-1.0.4-r1 (diff) | |
download | gentoo-2-766250a8cb840a2b751d96a027afa929b7207894.tar.gz gentoo-2-766250a8cb840a2b751d96a027afa929b7207894.tar.bz2 gentoo-2-766250a8cb840a2b751d96a027afa929b7207894.zip |
added patch which should fix #10338
Diffstat (limited to 'kde-base')
-rw-r--r-- | kde-base/arts/ChangeLog | 6 | ||||
-rw-r--r-- | kde-base/arts/arts-1.0.4-r1.ebuild | 46 | ||||
-rw-r--r-- | kde-base/arts/files/arts-1.0.4-tmp-mcop-user-fix.patch | 33 | ||||
-rw-r--r-- | kde-base/arts/files/digest-arts-1.0.4-r1 | 1 |
4 files changed, 85 insertions, 1 deletions
diff --git a/kde-base/arts/ChangeLog b/kde-base/arts/ChangeLog index 80f15399af06..8a30af6f8f4b 100644 --- a/kde-base/arts/ChangeLog +++ b/kde-base/arts/ChangeLog @@ -1,7 +1,11 @@ # ChangeLog for kde-base/arts # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/arts/ChangeLog,v 1.19 2002/12/13 10:56:57 blizzy Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/arts/ChangeLog,v 1.20 2002/12/15 20:55:02 hannes Exp $ +*arts-1.0.4-r1 (15 Dec 2002) + + 15 Dec 2002; Hannes Mehnert <hannes@gentoo.org> arts-1.0.4-r1.ebuild: + added patch which should fix bug #10338 08 Dec 2002; Jack Morgan <jmorgan@gentoo.org> arts-1.1.0_rc5 : Added sparc keyword diff --git a/kde-base/arts/arts-1.0.4-r1.ebuild b/kde-base/arts/arts-1.0.4-r1.ebuild new file mode 100644 index 000000000000..7b18de287744 --- /dev/null +++ b/kde-base/arts/arts-1.0.4-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/arts/arts-1.0.4-r1.ebuild,v 1.1 2002/12/15 20:55:02 hannes Exp $ +inherit kde-base flag-o-matic + +SRC_URI="mirror://kde/stable/3.0.4/src/${P}.tar.bz2" +KEYWORDS="x86 ppc alpha" +HOMEPAGE="http://multimedia.kde.org" + +DESCRIPTION="KDE 3.x Sound Server" +set-kdedir 3 +need-qt 3.0.3 + +if [ "${COMPILER}" == "gcc3" ]; then + # GCC 3.1 kinda makes arts buggy and prone to crashes when compiled with + # these.. Even starting a compile shuts down the arts server + filter-flags "-fomit-frame-pointer -fstrength-reduce" +fi + +SLOT="3.0" +LICENSE="GPL-2 LGPL-2" + +# fix bug #10338 +PATCHES="${FILESDIR}/${P}-tmp-mcop-user-fix.patch" + +# fix bug #8175 +MAKEOPTS="$MAKEOPTS -j1" + +use alsa && myconf="$myconf --enable-alsa" || myconf="$myconf --disable-alsa" + +src_unpack() { + + base_src_unpack + + kde_sandbox_patch ${S}/soundserver + +} + +src_install() { + + kde_src_install + # fix root exploit - fixed upstream already + #chmod ug-s ${D}${KDEDIR}/bin/artswrapper + dodoc ${S}/doc/{NEWS,README,TODO} + +} diff --git a/kde-base/arts/files/arts-1.0.4-tmp-mcop-user-fix.patch b/kde-base/arts/files/arts-1.0.4-tmp-mcop-user-fix.patch new file mode 100644 index 000000000000..1a24fd51179d --- /dev/null +++ b/kde-base/arts/files/arts-1.0.4-tmp-mcop-user-fix.patch @@ -0,0 +1,33 @@ +--- ../foo/arts-1.0.4/mcop/mcoputils.cc 2002-02-09 14:10:12.000000000 +0100 ++++ mcop/mcoputils.cc 2002-12-15 21:41:24.000000000 +0100 +@@ -31,6 +31,7 @@ + #include <errno.h> + #include <config.h> + #include <ctype.h> ++#include <pwd.h> //included to get logname from uid + #include <map> + + using namespace std; +@@ -73,8 +74,20 @@ + + string MCOPUtils::createFilePath(string name) + { +- string logname = "unknown"; +- if(getenv("LOGNAME")) logname = getenv("LOGNAME"); ++// changed to get logname from uid instead of environment variable ++// LOGNAME to avoid trouble when LOGNAME does not exist or ++// is wrong (such as in kdesu environment) ++// S. Voitzsch Sebastian.Voitzsch@web.de ++// 2002-12-03 ++ ++ struct passwd *pwd = NULL; ++ pwd = getpwuid(geteuid()); ++ if (pwd == NULL) arts_fatal("could not get user name from user id"); ++ ++ string logname = "unknown"; ++ logname = pwd->pw_name; ++ ++// if(getenv("LOGNAME")) logname = getenv("LOGNAME"); + + string tmpdir = "/tmp/mcop-"+uglify(logname); + if(mkdir(tmpdir.c_str(),0700) != 0 && errno != EEXIST) diff --git a/kde-base/arts/files/digest-arts-1.0.4-r1 b/kde-base/arts/files/digest-arts-1.0.4-r1 new file mode 100644 index 000000000000..7bb530daf598 --- /dev/null +++ b/kde-base/arts/files/digest-arts-1.0.4-r1 @@ -0,0 +1 @@ +MD5 a88c1d7f2eb8d702045400c37b6d582e arts-1.0.4.tar.bz2 1021219 |