summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-09-04 10:33:22 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-09-04 10:33:22 +0000
commitd947ad95ddc5c97f477b02385db54ab56f9c7178 (patch)
tree413e9d1be80768a082bbeddd59386e86b0d468d9 /dev-cpp/libassa
parentVersion bump to 2.10.9 (diff)
downloadgentoo-2-d947ad95ddc5c97f477b02385db54ab56f9c7178.tar.gz
gentoo-2-d947ad95ddc5c97f477b02385db54ab56f9c7178.tar.bz2
gentoo-2-d947ad95ddc5c97f477b02385db54ab56f9c7178.zip
Fix building with GCC 4.4+ wrt #281733.
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'dev-cpp/libassa')
-rw-r--r--dev-cpp/libassa/ChangeLog6
-rw-r--r--dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch28
-rw-r--r--dev-cpp/libassa/libassa-3.5.0.ebuild9
3 files changed, 41 insertions, 2 deletions
diff --git a/dev-cpp/libassa/ChangeLog b/dev-cpp/libassa/ChangeLog
index 3df07414fbb3..4cc41b2b6e51 100644
--- a/dev-cpp/libassa/ChangeLog
+++ b/dev-cpp/libassa/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-cpp/libassa
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libassa/ChangeLog,v 1.6 2009/04/14 13:22:39 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libassa/ChangeLog,v 1.7 2009/09/04 10:33:22 ssuominen Exp $
+
+ 04 Sep 2009; Samuli Suominen <ssuominen@gentoo.org> libassa-3.5.0.ebuild,
+ +files/libassa-3.5.0-gcc44.patch:
+ Fix building with GCC 4.4+ wrt #281733.
14 Apr 2009; Raúl Porcel <armin76@gentoo.org> libassa-3.5.0.ebuild:
Add ~x86 wrt #265897
diff --git a/dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch b/dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch
new file mode 100644
index 000000000000..02e3f9232a8c
--- /dev/null
+++ b/dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch
@@ -0,0 +1,28 @@
+For va_list in gcc 4.4+ and glibc system stdarg.h is always required. For gcc 4.4+ including stdio.h
+is required because of headers clean up.
+
+Patch by Samuli Suominen <ssuominen@gentoo.org>
+
+diff -ur libassa-3.5.0.orig/assa/Logger_Impl.cpp libassa-3.5.0/assa/Logger_Impl.cpp
+--- libassa-3.5.0.orig/assa/Logger_Impl.cpp 2006-07-20 05:30:54.000000000 +0300
++++ libassa-3.5.0/assa/Logger_Impl.cpp 2009-09-04 13:26:26.000000000 +0300
+@@ -14,6 +14,7 @@
+
+ #include <iostream>
+ #include <iomanip>
++#include <stdio.h> // vsnprintf(3)
+ #include <string.h> // strerror(3)
+
+ #include "assa/TimeVal.h"
+diff -ur libassa-3.5.0.orig/assa/Logger_Impl.h libassa-3.5.0/assa/Logger_Impl.h
+--- libassa-3.5.0.orig/assa/Logger_Impl.h 2006-07-20 05:30:54.000000000 +0300
++++ libassa-3.5.0/assa/Logger_Impl.h 2009-09-04 13:29:45.000000000 +0300
+@@ -21,7 +21,7 @@
+ #include <sys/varargs.h> // va_list
+ #endif
+
+-#if defined (__CYGWIN32__) || defined (__NetBSD__) || defined (WIN32)
++#if defined (__CYGWIN32__) || defined (__NetBSD__) || defined (WIN32) || defined (__GLIBC__)
+ # include <stdarg.h>
+ #endif
+
diff --git a/dev-cpp/libassa/libassa-3.5.0.ebuild b/dev-cpp/libassa/libassa-3.5.0.ebuild
index 9c1bbb4d1ef6..3c1be770af93 100644
--- a/dev-cpp/libassa/libassa-3.5.0.ebuild
+++ b/dev-cpp/libassa/libassa-3.5.0.ebuild
@@ -1,6 +1,9 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libassa/libassa-3.5.0.ebuild,v 1.3 2009/04/14 13:22:39 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libassa/libassa-3.5.0.ebuild,v 1.4 2009/09/04 10:33:22 ssuominen Exp $
+
+EAPI=2
+inherit eutils
DESCRIPTION="A networking library based on Adaptive Communication Patterns"
HOMEPAGE="http://libassa.sourceforge.net/"
@@ -11,6 +14,10 @@ SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc44.patch
+}
+
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README TODO