diff options
author | Daniel Black <dragonheart@gentoo.org> | 2004-11-21 08:58:37 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2004-11-21 08:58:37 +0000 |
commit | a3787821cfa66e1b15e189437f50035791b6a940 (patch) | |
tree | f5cf1540582f661b933f3ea6c6dbb74bf71dca20 /dev-libs/log4c | |
parent | mark stable on x86 since it is the initial ebuild (diff) | |
download | historical-a3787821cfa66e1b15e189437f50035791b6a940.tar.gz historical-a3787821cfa66e1b15e189437f50035791b6a940.tar.bz2 historical-a3787821cfa66e1b15e189437f50035791b6a940.zip |
fixed test cases for 1.0.11 and 1.0.12. Patch courtesy of Olaf Freyer <aaron@cs.tu-berlin.de> in bug #70529.
Diffstat (limited to 'dev-libs/log4c')
-rw-r--r-- | dev-libs/log4c/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/log4c/Manifest | 14 | ||||
-rw-r--r-- | dev-libs/log4c/files/log4c-1.0.11-function.patch | 19 | ||||
-rw-r--r-- | dev-libs/log4c/files/log4c-1.0.12-function.patch | 19 | ||||
-rw-r--r-- | dev-libs/log4c/log4c-1.0.11.ebuild | 5 | ||||
-rw-r--r-- | dev-libs/log4c/log4c-1.0.12.ebuild | 18 |
6 files changed, 66 insertions, 17 deletions
diff --git a/dev-libs/log4c/ChangeLog b/dev-libs/log4c/ChangeLog index adf22fbedde0..7e7746652107 100644 --- a/dev-libs/log4c/ChangeLog +++ b/dev-libs/log4c/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/log4c # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/ChangeLog,v 1.19 2004/11/20 01:02:23 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/ChangeLog,v 1.20 2004/11/21 08:58:37 dragonheart Exp $ + + 21 Nov 2004; Daniel Black <dragonheart@gentoo.org> + +files/log4c-1.0.11-function.patch, +files/log4c-1.0.12-function.patch, + log4c-1.0.11.ebuild, log4c-1.0.12.ebuild: + fixed test cases for 1.0.11 and 1.0.12. Patch courtesy of Olaf Freyer + <aaron@cs.tu-berlin.de> in bug #70529. *log4c-1.0.10-r1 (20 Nov 2004) diff --git a/dev-libs/log4c/Manifest b/dev-libs/log4c/Manifest index b62296312dc1..daa0807325ce 100644 --- a/dev-libs/log4c/Manifest +++ b/dev-libs/log4c/Manifest @@ -1,9 +1,9 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 eeacf5e9f6f1bb828e3617023fbf0e07 ChangeLog 2969 -MD5 8d663d0569f3454097441e6c317672e9 log4c-1.0.11.ebuild 1471 -MD5 854c35a79482f7e1508a4ba70a5fab24 log4c-1.0.12.ebuild 1141 +MD5 f94cb569db6e9b0dba1982e60f4ee53b ChangeLog 3254 +MD5 2dda8aff491b221b695b39e31804e624 log4c-1.0.11.ebuild 1529 +MD5 938777a64cf7065ccd8484c7a92d6eac log4c-1.0.12.ebuild 1174 MD5 b18c56863e452cbe463de8ee6b53dcc5 log4c-1.0.6-r1.ebuild 1011 MD5 4eafc1e08f52712fd036e73730b0a172 metadata.xml 435 MD5 4725eb269c4c84a0c4e0c3aed0782f03 log4c-1.0.10-r1.ebuild 1698 @@ -16,10 +16,12 @@ MD5 1902a2badd2a965f9e4072f4b6e7adfe files/makefile.doc.am.patch 350 MD5 028648da7dc4850b5dbc3ec0469eba94 files/makefile.doc.in.patch 352 MD5 a9fba68dfd5dea143cfe49ccb0662fc1 files/digest-log4c-1.0.10-r1 64 MD5 29ae48e8f7698e738fd6e7c18a17b5c7 files/log4c-1.0.10-nodocs.patch 1425 +MD5 80234f09351af06e9eda20bf7dd1c2bd files/log4c-1.0.12-function.patch 998 +MD5 80234f09351af06e9eda20bf7dd1c2bd files/log4c-1.0.11-function.patch 998 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) -iD8DBQFBnpelmdTrptrqvGERAvs/AKCJ53QhSVHwiqFabvYWgTGbEAfnCwCffvZt -7Z6S52QgMzeIXZ+i4g0fGxA= -=EjtP +iD8DBQFBoFjEmdTrptrqvGERAmLXAJ4rEOh/0iLR2aB01A3ZIoAIK/aHtACeJm7Q +sjO1C/bTC5NpkbCOuy6hmow= +=fdjL -----END PGP SIGNATURE----- diff --git a/dev-libs/log4c/files/log4c-1.0.11-function.patch b/dev-libs/log4c/files/log4c-1.0.11-function.patch new file mode 100644 index 000000000000..576ee21acce3 --- /dev/null +++ b/dev-libs/log4c/files/log4c-1.0.11-function.patch @@ -0,0 +1,19 @@ +--- src/sd/error.h.orig 2004-11-21 08:29:18.168483856 +0930 ++++ src/sd/error.h 2004-11-21 08:32:48.421520536 +0930 +@@ -14,13 +14,13 @@ + #ifdef __SD_DEBUG__ + + # define __sd_str(n) #n +-# define __sd_location(n) __FUNCTION__"() at " __FILE__":" __sd_str(n) ++# define __sd_location(n) "() at " __FILE__":" __sd_str(n) + # define sd_location __sd_location(__LINE__) + + # define sd_debug(a_format, ...) \ +- (getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0) ++ (getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0) + # define sd_error(a_format, ...) \ +- (getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0) ++ (getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0) + # define sd_oserror(afunc, aparam) \ + (sd_error("%s(%s): #%d %s", afunc, aparam, errno, strerror(errno)), -1) + diff --git a/dev-libs/log4c/files/log4c-1.0.12-function.patch b/dev-libs/log4c/files/log4c-1.0.12-function.patch new file mode 100644 index 000000000000..576ee21acce3 --- /dev/null +++ b/dev-libs/log4c/files/log4c-1.0.12-function.patch @@ -0,0 +1,19 @@ +--- src/sd/error.h.orig 2004-11-21 08:29:18.168483856 +0930 ++++ src/sd/error.h 2004-11-21 08:32:48.421520536 +0930 +@@ -14,13 +14,13 @@ + #ifdef __SD_DEBUG__ + + # define __sd_str(n) #n +-# define __sd_location(n) __FUNCTION__"() at " __FILE__":" __sd_str(n) ++# define __sd_location(n) "() at " __FILE__":" __sd_str(n) + # define sd_location __sd_location(__LINE__) + + # define sd_debug(a_format, ...) \ +- (getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0) ++ (getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0) + # define sd_error(a_format, ...) \ +- (getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0) ++ (getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0) + # define sd_oserror(afunc, aparam) \ + (sd_error("%s(%s): #%d %s", afunc, aparam, errno, strerror(errno)), -1) + diff --git a/dev-libs/log4c/log4c-1.0.11.ebuild b/dev-libs/log4c/log4c-1.0.11.ebuild index 77c2fc3476fb..5ce3be1875fa 100644 --- a/dev-libs/log4c/log4c-1.0.11.ebuild +++ b/dev-libs/log4c/log4c-1.0.11.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/log4c-1.0.11.ebuild,v 1.5 2004/10/09 16:52:58 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/log4c-1.0.11.ebuild,v 1.6 2004/11/21 08:58:37 dragonheart Exp $ inherit eutils @@ -26,6 +26,7 @@ src_unpack() { epatch ${FILESDIR}/makefile.doc.in.patch || die "failed to patch" epatch ${FILESDIR}/configure.in.patch || die "failed to patch" epatch ${FILESDIR}/log4c_1.0.11_test.patch || die "failed to patch" + epatch ${FILESDIR}/${P}-function.patch || die "failed to patch" } src_compile() { @@ -44,7 +45,7 @@ src_compile() { } src_test() { - einfo "Cannot get test working. patches welcome on bugs.gentoo.org" + ${S}/tests/log4c/test_category || die "test_rc failed" } src_install() { diff --git a/dev-libs/log4c/log4c-1.0.12.ebuild b/dev-libs/log4c/log4c-1.0.12.ebuild index 7c36c625ddee..510f5dd9c6de 100644 --- a/dev-libs/log4c/log4c-1.0.12.ebuild +++ b/dev-libs/log4c/log4c-1.0.12.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/log4c-1.0.12.ebuild,v 1.2 2004/10/28 12:34:42 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/log4c-1.0.12.ebuild,v 1.3 2004/11/21 08:58:37 dragonheart Exp $ inherit eutils @@ -18,13 +18,13 @@ DEPEND="doc? ( >=app-doc/doxygen-1.2.15 virtual/ghostscript ) >=media-gfx/graphviz-1.7.15-r2" -src_compile() { +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-function.patch +} - #local myconf - #if has maketest ${FEATURES} || use maketest; - #then - # myconf="${myconf} --enable-test" - #fi +src_compile() { econf --enable-test `use_enable doc` || die use doc && addwrite "${ROOT}/var/cache/fonts" @@ -32,7 +32,9 @@ src_compile() { } src_test() { - einfo "Cannot get test working. patches welcome on bugs.gentoo.org" + # test case broken + #${S}/tests/log4c/test_rc || die "test_rc failed" + ${S}/tests/log4c/test_category || die "test_rc failed" } src_install() { |