diff options
author | Ian Stakenvicius <axs@gentoo.org> | 2012-10-05 19:22:14 +0000 |
---|---|---|
committer | Ian Stakenvicius <axs@gentoo.org> | 2012-10-05 19:22:14 +0000 |
commit | 712c3b44ecc1cad59c1acb34bf8946e52b45f28f (patch) | |
tree | be7944b7d3c86943269282c0a3b48211c36abcb4 /x11-misc/slim | |
parent | Respect CC,CXX,AR wrt to bug #378793 (diff) | |
download | gentoo-2-712c3b44ecc1cad59c1acb34bf8946e52b45f28f.tar.gz gentoo-2-712c3b44ecc1cad59c1acb34bf8946e52b45f28f.tar.bz2 gentoo-2-712c3b44ecc1cad59c1acb34bf8946e52b45f28f.zip |
swapped snprintf for sprintf to support arm's broken C++98 (bug 430502)
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/slim')
-rw-r--r-- | x11-misc/slim/ChangeLog | 6 | ||||
-rw-r--r-- | x11-misc/slim/files/slim-1.3.4-arm.patch | 11 | ||||
-rw-r--r-- | x11-misc/slim/slim-1.3.4-r1.ebuild | 3 |
3 files changed, 18 insertions, 2 deletions
diff --git a/x11-misc/slim/ChangeLog b/x11-misc/slim/ChangeLog index 61771ee28f23..318fc4b3beef 100644 --- a/x11-misc/slim/ChangeLog +++ b/x11-misc/slim/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for x11-misc/slim # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.89 2012/10/05 17:05:56 axs Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.90 2012/10/05 19:22:14 axs Exp $ + + 05 Oct 2012; Ian Stakenvicius <axs@gentoo.org> slim-1.3.4-r1.ebuild, + +files/slim-1.3.4-arm.patch: + swapped snprintf for sprintf to support arm's broken C++98 (bug 430502) *slim-1.3.4-r1 (05 Oct 2012) diff --git a/x11-misc/slim/files/slim-1.3.4-arm.patch b/x11-misc/slim/files/slim-1.3.4-arm.patch new file mode 100644 index 000000000000..30baf6bd5365 --- /dev/null +++ b/x11-misc/slim/files/slim-1.3.4-arm.patch @@ -0,0 +1,11 @@ +--- a/Ck.cpp 2012-06-26 04:20:14.000000000 -0400 ++++ b/Ck.cpp 2012-10-05 13:25:29.000000000 -0400 +@@ -91,7 +91,7 @@ + + vt = *((long *)return_value); + +- std::snprintf(device, 32, "/dev/tty%ld", vt); ++ std::sprintf(device, "/dev/tty%ld", vt); + + if(return_value) + XFree(return_value); diff --git a/x11-misc/slim/slim-1.3.4-r1.ebuild b/x11-misc/slim/slim-1.3.4-r1.ebuild index 41e511f2e484..8d17a1c30934 100644 --- a/x11-misc/slim/slim-1.3.4-r1.ebuild +++ b/x11-misc/slim/slim-1.3.4-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.4-r1.ebuild,v 1.1 2012/10/05 17:05:56 axs Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.4-r1.ebuild,v 1.2 2012/10/05 19:22:14 axs Exp $ EAPI=4 @@ -37,6 +37,7 @@ src_prepare() { epatch "${FILESDIR}"/${P}-config.diff epatch "${FILESDIR}"/${P}-libpng.patch epatch "${FILESDIR}"/${P}-pam-end.patch + epatch "${FILESDIR}"/${P}-arm.patch if use elibc_FreeBSD; then sed -i -e 's/"-DHAVE_SHADOW"/"-DNEEDS_BASENAME"/' CMakeLists.txt \ |