diff options
author | Ryan Hill <rhill@gentoo.org> | 2008-12-05 04:53:47 +0000 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2008-12-05 04:53:47 +0000 |
commit | c896f6316b53d3e283084c37facff49a0c5b8dfd (patch) | |
tree | f6f37db3c3e5c4806aa893a5ae91c697c0771424 /dev-libs/check | |
parent | Applied patch from Markus Meier <maekke@gentoo.org>. Building of several loca... (diff) | |
download | historical-c896f6316b53d3e283084c37facff49a0c5b8dfd.tar.gz historical-c896f6316b53d3e283084c37facff49a0c5b8dfd.tar.bz2 historical-c896f6316b53d3e283084c37facff49a0c5b8dfd.zip |
- Add patch from upstream to fix check.m4 breaking packages using
AM_PATH_CHECK. (bug #179351 reported by Ed Catmur) - Fix broken pass/fail
stats in setup code.
Package-Manager: portage-2.2_rc17/cvs/Linux 2.6.27-gentoo-r4 x86_64
Diffstat (limited to 'dev-libs/check')
-rw-r--r-- | dev-libs/check/ChangeLog | 12 | ||||
-rw-r--r-- | dev-libs/check/Manifest | 13 | ||||
-rw-r--r-- | dev-libs/check/check-0.9.5-r1.ebuild | 30 | ||||
-rw-r--r-- | dev-libs/check/files/check-0.9.5-AM_PATH_CHECK.patch | 26 | ||||
-rw-r--r-- | dev-libs/check/files/check-0.9.5-setup-stats.patch | 87 |
5 files changed, 162 insertions, 6 deletions
diff --git a/dev-libs/check/ChangeLog b/dev-libs/check/ChangeLog index 5a0690719a9b..acc5a7710263 100644 --- a/dev-libs/check/ChangeLog +++ b/dev-libs/check/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-libs/check # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/check/ChangeLog,v 1.43 2008/03/02 17:30:00 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/check/ChangeLog,v 1.44 2008/12/05 04:53:47 dirtyepic Exp $ + +*check-0.9.5-r1 (05 Dec 2008) + + 05 Dec 2008; Ryan Hill <dirtyepic@gentoo.org> + +files/check-0.9.5-AM_PATH_CHECK.patch, + +files/check-0.9.5-setup-stats.patch, +check-0.9.5-r1.ebuild: + - Add patch from upstream to fix check.m4 breaking packages using + + AM_PATH_CHECK. (bug #179351 reported by Ed Catmur) - Fix broken pass/fail + stats in setup code. 02 Mar 2008; Ryan Hill <dirtyepic@gentoo.org> check-0.9.5.ebuild: ~mips. diff --git a/dev-libs/check/Manifest b/dev-libs/check/Manifest index 7a03352319bc..5d17bc19e6e1 100644 --- a/dev-libs/check/Manifest +++ b/dev-libs/check/Manifest @@ -1,15 +1,18 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX check-0.9.5-AM_PATH_CHECK.patch 1092 RMD160 e485b955c894f4d8c24fdc0a3c8c5f4a43411c9e SHA1 1168d8d0a2637a4c40d318338954ec30fc193803 SHA256 4ff5b3db13f5b8da8a1d136a74c1d40f0d7b82e83ec345c25ef2df68ef056374 AUX check-0.9.5-autotools.patch 309 RMD160 97628fe2a081107443bcf8c98fdf6d5497316f18 SHA1 9ee9ae805f2908a030756033068511b92efbc4c8 SHA256 e1cd957871be3bc9ac24aa918cfabf5a927852a7edb2442306c32c69756b417b +AUX check-0.9.5-setup-stats.patch 3686 RMD160 afb4134c96a992e4712f5b4ab870027b6bf38d5e SHA1 d0f350d2cfb53a014b054c74ad1eb86adaa0a211 SHA256 82f0cd86e38ab8f4ae34100ded75e1cdc51fad3b0265015f920c89e2e5a0c8be DIST check-0.9.5.tar.gz 520625 RMD160 1975578245444ffdc8cec43e53dedc3aac8553ea SHA1 84b9d1ace6d0bf0fc73c9de2e684a62f73d312f8 SHA256 961b3c66869018d02226bbbc394e79362cd898962ce810bce8417b3c497f7ad6 +EBUILD check-0.9.5-r1.ebuild 824 RMD160 f95d945e72355f97991ed542682649bb9c1d05ca SHA1 7194646aaa9ea1550169766c28e8579dcef286a3 SHA256 9e142ab54bb34cdb6aedf34ceadb1bcfa04d7667d4582ab36e48a99d91c1a9bf EBUILD check-0.9.5.ebuild 718 RMD160 d93e6f90a4ce2522ea0cc0d363af69d04c8e160e SHA1 28235be856119dc841862615e98dc149ce55c0f4 SHA256 a41fd9c7f569e666ef2cf2a22775e304e562d06a5e39ccded2488fff00ad7b22 -MISC ChangeLog 4353 RMD160 26530dfeb63bb4f65791d0475ec7233258a3b10c SHA1 5758c4040d082219c16d188d44a3cd123c02b9e6 SHA256 f6c3fcf436876d77c9cab35db98a38813ba7da29c7740c97890ccdcef4807a32 +MISC ChangeLog 4707 RMD160 e3632987344275172a6b31bbe619c43875358a93 SHA1 a063eb455512e8c2e4bb9df8fc291972ed3d8f0b SHA256 78861b29ccd2fb215490d1eec55d6f58a9247bd9660b80b652433f0a918a6f4c MISC metadata.xml 236 RMD160 92f49f8275e75caf57b88a3172d5204eaa4e33ae SHA1 dd1a8550a514e55ab0ed6190ab4794bb090994f8 SHA256 56075995f83836ae824c7cb01931b98d6745f6d5a7764299c8262e801486b829 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.7 (GNU/Linux) +Version: GnuPG v2.0.9 (GNU/Linux) -iD8DBQFHyuQeiqiDRvmkBmIRAqDTAJ9sd5OpeusaO/ejShbl2sD1giQFmACeN9RY -BXA1hc95Gl1opZsqvb8lkak= -=s2zj +iEYEARECAAYFAkk4s+8ACgkQiqiDRvmkBmIwIACggnJLWl6hYnMQFcU6vkRQZgaB +yisAn3ohU2Rihr2XCR3MUj2F/PnCzmQ7 +=zhA0 -----END PGP SIGNATURE----- diff --git a/dev-libs/check/check-0.9.5-r1.ebuild b/dev-libs/check/check-0.9.5-r1.ebuild new file mode 100644 index 000000000000..f0a57e2df42b --- /dev/null +++ b/dev-libs/check/check-0.9.5-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/check/check-0.9.5-r1.ebuild,v 1.1 2008/12/05 04:53:47 dirtyepic Exp $ + +inherit eutils autotools + +DESCRIPTION="A unit test framework for C" +HOMEPAGE="http://sourceforge.net/projects/check/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" + +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-autotools.patch + epatch "${FILESDIR}"/${P}-AM_PATH_CHECK.patch + epatch "${FILESDIR}"/${P}-setup-stats.patch + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install || die + mv "${D}"/usr/share/doc/{${PN},${PF}} || die +} diff --git a/dev-libs/check/files/check-0.9.5-AM_PATH_CHECK.patch b/dev-libs/check/files/check-0.9.5-AM_PATH_CHECK.patch new file mode 100644 index 000000000000..fc32a6f5d029 --- /dev/null +++ b/dev-libs/check/files/check-0.9.5-AM_PATH_CHECK.patch @@ -0,0 +1,26 @@ +diff -Naur check-0.9.5-orig/check.m4 check-0.9.5/check.m4 +--- check-0.9.5-orig/check.m4 2006-11-21 17:19:12.000000000 -0600 ++++ check-0.9.5/check.m4 2008-12-04 21:45:13.000000000 -0600 +@@ -4,8 +4,8 @@ + + AC_DEFUN([AM_PATH_CHECK], + [ +- AC_MSG_WARN([[AM_PATH_CHECK() is deprecated]]) +- AC_MSG_WARN([[use PKG_CHECK_MODULES([CHECK], [check >= 0.9.4]) instead]]) ++ AC_MSG_WARN([A@&t@M_PATH_CHECK() is deprecated]) ++ AC_MSG_WARN([[use P@&t@KG_CHECK_MODULES([CHECK], [check >= 0.9.4]) instead]]) + AC_ARG_WITH([check], + [ --with-check=PATH prefix where check is installed [default=auto]]) + +diff -Naur check-0.9.5-orig/doc/example/configure.ac check-0.9.5/doc/example/configure.ac +--- check-0.9.5-orig/doc/example/configure.ac 2006-11-21 17:19:14.000000000 -0600 ++++ check-0.9.5/doc/example/configure.ac 2008-12-04 21:45:13.000000000 -0600 +@@ -25,7 +25,7 @@ + # CHECK_LIBS accordingly. + # AM_PATH_CHECK([MINIMUM-VERSION, + # [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) +-AM_PATH_CHECK() ++PKG_CHECK_MODULES([check], [], []) + + # Checks for header files. + AC_HEADER_STDC diff --git a/dev-libs/check/files/check-0.9.5-setup-stats.patch b/dev-libs/check/files/check-0.9.5-setup-stats.patch new file mode 100644 index 000000000000..a750be80a47f --- /dev/null +++ b/dev-libs/check/files/check-0.9.5-setup-stats.patch @@ -0,0 +1,87 @@ +diff -Naurp check-0.9.5-orig/src/check_run.c check-0.9.5/src/check_run.c +--- check-0.9.5-orig/src/check_run.c 2006-11-21 17:19:13.000000000 -0600 ++++ check-0.9.5/src/check_run.c 2008-12-04 22:37:19.000000000 -0600 +@@ -163,9 +163,7 @@ void srunner_run_all (SRunner *sr, enum + static void srunner_add_failure (SRunner *sr, TestResult *tr) + { + list_add_end (sr->resultlst, tr); +- /* If the context is either of these, the test has run. */ +- if ((tr->ctx == CK_CTX_TEST) || (tr->ctx == CK_CTX_TEARDOWN)) +- sr->stats->n_checked++; ++ sr->stats->n_checked++; /* count checks during setup, test, and teardown */ + if (tr->rtype == CK_FAILURE) + sr->stats->n_failed++; + else if (tr->rtype == CK_ERROR) +diff -Naurp check-0.9.5-orig/tests/check_check_fixture.c check-0.9.5/tests/check_check_fixture.c +--- check-0.9.5-orig/tests/check_check_fixture.c 2006-11-21 17:19:15.000000000 -0600 ++++ check-0.9.5/tests/check_check_fixture.c 2008-12-04 22:37:21.000000000 -0600 +@@ -41,7 +41,7 @@ START_TEST(test_fixture_fail_counts) + nrun = srunner_ntests_run(fixture_sr); + nfail = srunner_ntests_failed(fixture_sr); + +- fail_unless (nrun == 0 && nfail == 1, ++ fail_unless (nrun == 1 && nfail == 1, + "Counts for run and fail for fixture failure not correct"); + } + END_TEST +@@ -49,7 +49,7 @@ END_TEST + START_TEST(test_print_counts) + { + char *srstat = sr_stat_str(fixture_sr); +- const char *exp = "0%: Checks: 0, Failures: 1, Errors: 0"; ++ const char *exp = "0%: Checks: 1, Failures: 1, Errors: 0"; + + fail_unless(strcmp(srstat, exp) == 0, + "SRunner stat string incorrect with setup failure"); +@@ -172,7 +172,7 @@ START_TEST(test_ch_setup_fail) + sr = srunner_create(s); + srunner_run_all(sr,CK_VERBOSE); + +- fail_unless (srunner_ntests_run(sr) == 0, ++ fail_unless (srunner_ntests_run(sr) == 1, + "Test run counts not correct for checked setup failure"); + fail_unless (srunner_ntests_failed(sr) == 1, + "Failure counts not correct for checked setup failure"); +@@ -180,7 +180,7 @@ START_TEST(test_ch_setup_fail) + strstat= sr_stat_str(sr); + + fail_unless(strcmp(strstat, +- "0%: Checks: 0, Failures: 1, Errors: 0") == 0, ++ "0%: Checks: 1, Failures: 1, Errors: 0") == 0, + "SRunner stat string incorrect with checked setup failure"); + + +@@ -212,7 +212,7 @@ START_TEST(test_ch_setup_fail_nofork) + srunner_set_fork_status(sr, CK_NOFORK); + srunner_run_all(sr, CK_VERBOSE); + +- fail_unless (srunner_ntests_run(sr) == 0, ++ fail_unless (srunner_ntests_run(sr) == 1, + "Test run counts not correct for checked setup failure"); + fail_unless (srunner_ntests_failed(sr) == 1, + "Failure counts not correct for checked setup failure"); +@@ -235,7 +235,7 @@ START_TEST(test_ch_setup_fail_nofork_2) + srunner_set_fork_status(sr, CK_NOFORK); + srunner_run_all(sr, CK_VERBOSE); + +- fail_unless (srunner_ntests_run(sr) == 0, ++ fail_unless (srunner_ntests_run(sr) == 1, + "Test run counts not correct for checked setup failure"); + fail_unless (srunner_ntests_failed(sr) == 1, + "Failure counts not correct for checked setup failure"); +@@ -288,13 +288,13 @@ START_TEST(test_ch_setup_sig) + + fail_unless (srunner_ntests_failed(sr) == 1, + "Failure counts not correct for checked setup signal"); +- fail_unless (srunner_ntests_run(sr) == 0, ++ fail_unless (srunner_ntests_run(sr) == 1, + "Test run counts not correct for checked setup signal"); + + strstat= sr_stat_str(sr); + + fail_unless(strcmp(strstat, +- "0%: Checks: 0, Failures: 0, Errors: 1") == 0, ++ "0%: Checks: 1, Failures: 0, Errors: 1") == 0, + "SRunner stat string incorrect with checked setup signal"); + + |