Fix compilation failure - bug 59743.
authorAaron Walker <ka0ttic@gentoo.org>
Thu, 6 Jan 2005 13:49:00 +0000 (13:49 +0000)
committerAaron Walker <ka0ttic@gentoo.org>
Thu, 6 Jan 2005 13:49:00 +0000 (13:49 +0000)
dev-libs/log4cxx/ChangeLog
dev-libs/log4cxx/Manifest
dev-libs/log4cxx/files/log4cxx-0.9.5-fix-errno.diff [new file with mode: 0644]
dev-libs/log4cxx/log4cxx-0.9.5.ebuild
dev-libs/log4cxx/log4cxx-0.9.7-r1.ebuild

index 5788d5bb02a7b6167126226b9e1864e41a5a65c5..19e9d5a4a2621d9f5315f5bd81de704dfdc027a3 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for dev-libs/log4cxx
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/ChangeLog,v 1.7 2004/12/28 10:42:23 ka0ttic Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/ChangeLog,v 1.8 2005/01/06 13:49:00 ka0ttic Exp $
+
+  06 Jan 2005; Aaron Walker <ka0ttic@gentoo.org>
+  +files/log4cxx-0.9.5-fix-errno.diff, log4cxx-0.9.5.ebuild:
+  Fix compilation failure - bug 59743.
 
 *log4cxx-0.9.7-r1 (28 Dec 2004)
 
index 2f6c80782360a92b141fe40ef37cda76903d741d..b0ad86ab76efcb5f649e0f864712d9b912153620 100644 (file)
@@ -1,17 +1,18 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 adcca9155baaf2f4fa19a0842596869f log4cxx-0.9.7-r1.ebuild 1559
-MD5 839e6262a6479c9c33123a3d77a195b7 log4cxx-0.9.5.ebuild 848
-MD5 9b028b286906970ba983eea940540811 ChangeLog 1273
+MD5 7e2198b107ecdb4548fd3b76a3480d21 log4cxx-0.9.7-r1.ebuild 1559
+MD5 500df1ceb8e4f1a53a7dc4090ee9b397 log4cxx-0.9.5.ebuild 882
+MD5 46c451c046f1128aaefd2f1a0ba76d15 ChangeLog 1423
 MD5 f8d10f350e91f30316ea4e1bd1e76470 metadata.xml 254
 MD5 50fe13b5c404fa59faeaebe40f36b6be files/log4cxx-0.9.7-gentoo.diff 750
 MD5 a94dc071335f2e2545d523996053a685 files/digest-log4cxx-0.9.7-r1 65
+MD5 f9e8c2a552b387262cde2f04b5dc9605 files/log4cxx-0.9.5-fix-errno.diff 683
 MD5 1135167eb4745c4a16791f44317ba88b files/digest-log4cxx-0.9.5 65
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
+Version: GnuPG v1.4.0 (GNU/Linux)
 
-iD8DBQFB0TiZEZCkKN40op4RAqTlAJ99ywoiYVk2Wp930x1qXkJ6eFIrTQCguvi2
-UcYdCIr3KH1/itbH9DalXEM=
-=HUiL
+iD8DBQFB3UHXEZCkKN40op4RApxNAJ44Y7hGq2j5ud/zYK5ENzM4MPKIpgCguw5g
+aq6LYH2Y48qMrDRUR6VZST0=
+=ya1h
 -----END PGP SIGNATURE-----
diff --git a/dev-libs/log4cxx/files/log4cxx-0.9.5-fix-errno.diff b/dev-libs/log4cxx/files/log4cxx-0.9.5-fix-errno.diff
new file mode 100644 (file)
index 0000000..d157ae3
--- /dev/null
@@ -0,0 +1,24 @@
+--- src/filewatchdog.cpp.orig  2004-08-07 21:36:34.987676584 -0500
++++ src/filewatchdog.cpp       2004-08-07 21:36:41.562677032 -0500
+@@ -17,10 +17,7 @@
+ #include <log4cxx/helpers/filewatchdog.h>
+ #include <log4cxx/helpers/loglog.h>
+ #include <sys/stat.h>
+-
+-#ifdef WIN32
+-#include <errno.h>
++#include <cerrno>
+-#endif
+ 
+ using namespace log4cxx;
+ using namespace log4cxx::helpers;
+--- src/socketimpl.cpp.orig    2004-08-07 22:01:02.577569008 -0500
++++ src/socketimpl.cpp 2004-08-07 22:01:23.868332320 -0500
+@@ -15,6 +15,7 @@
+  ***************************************************************************/
+ 
+ #include <log4cxx/config.h>
++#include <cerrno>
+ 
+ #ifdef WIN32
+ #include <windows.h>
index af430c8a528da75dc9f7b3599e7a8172dcd237e8..ba11d4e28f4e4927b5a73191b9b776f0dada87c9 100644 (file)
@@ -1,6 +1,8 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/log4cxx-0.9.5.ebuild,v 1.5 2004/07/14 14:59:44 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/log4cxx-0.9.5.ebuild,v 1.6 2005/01/06 13:49:00 ka0ttic Exp $
+
+inherit eutils
 
 DESCRIPTION="Library of C++ classes for flexible logging to files, syslog and other destinations"
 HOMEPAGE="http://log4cxx.sourceforge.net/"
@@ -9,24 +11,25 @@ SRC_URI="mirror://sourceforge/log4cxx/${P}.tar.gz"
 LICENSE="Apache-1.1"
 SLOT="0"
 KEYWORDS="~x86"
-
 IUSE=""
+
 DEPEND="virtual/libc
                dev-libs/libxml2"
 RDEPEND=""
 
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${P}-fix-errno.diff
+}
 
 src_compile() {
-       ./autogen.sh
-       econf || die "./configure failed"
-       make || die
+       ./autogen.sh || die "autogen.sh failed"
+       econf || die "econf failed"
+       emake -j1 || die "emake failed"
 }
 
 src_install () {
-       make prefix=${D}/usr \
-               datadir=${D}/usr/share \
-               mandir=${D}/usr/share/man \
-               docdir=${D}/usr/share/doc/${PF}/html \
-               sysconfdir=${D}/etc install || die
+       make DESTDIR="${D}" install || die "make install failed"
        dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO
 }
index 9ef0d5295ee7ced2e16e8f4c69ec81469661e330..d526eaa751c6e1c01d5311fe0031222c27de7647 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/log4cxx-0.9.7-r1.ebuild,v 1.1 2004/12/28 10:42:23 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/log4cxx-0.9.7-r1.ebuild,v 1.2 2005/01/06 13:49:00 ka0ttic Exp $
 
 inherit eutils