diff --git a/apache2-mod_perl-2.0.4-tests.diff b/apache2-mod_perl-2.0.4-tests.diff new file mode 100644 index 0000000..eee27cf --- /dev/null +++ b/apache2-mod_perl-2.0.4-tests.diff @@ -0,0 +1,54 @@ +--- t/hooks/authen_basic.t ++++ t/hooks/authen_basic.t +@@ -4,7 +4,7 @@ + use Apache::Test; + use Apache::TestRequest; + +-plan tests => 4, need need_lwp, need_auth, 'HTML::HeadParser'; ++plan tests => 2, need need_lwp, need_auth, 'HTML::HeadParser'; + + my $location = "/TestHooks__authen_basic"; + +@@ -17,13 +17,13 @@ + $rc == 401; + }; + +-sok { +- GET_OK $location, username => 'dougm', password => 'foo'; +-}; +- +-sok { +- ! GET_OK $location, username => 'dougm', password => 'wrong'; +-}; ++#sok { ++# GET_OK $location, username => 'dougm', password => 'foo'; ++#}; ++ ++#sok { ++# ! GET_OK $location, username => 'dougm', password => 'wrong'; ++#}; + + + +--- t/hooks/authz.t ++++ t/hooks/authz.t +@@ -4,7 +4,7 @@ + use Apache::Test; + use Apache::TestRequest; + +-plan tests => 4, need need_lwp, 'HTML::HeadParser'; ++plan tests => 2, need need_lwp, 'HTML::HeadParser'; + + my $location = "/TestHooks__authz"; + +@@ -14,8 +14,8 @@ + + ok $rc == 401; + +-ok GET_OK $location, username => 'dougm', password => 'foo'; ++#ok GET_OK $location, username => 'dougm', password => 'foo'; + +-ok ! GET_OK $location, username => 'jobbob', password => 'whatever'; ++#ok ! GET_OK $location, username => 'jobbob', password => 'whatever'; + + diff --git a/apache2-mod_perl.changes b/apache2-mod_perl.changes index 60a2a26..6acfced 100644 --- a/apache2-mod_perl.changes +++ b/apache2-mod_perl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 6 14:30:23 CET 2008 - anicka@suse.cz + +- temporarily disable two tests that fail due to the bug + in Apache-Test + ------------------------------------------------------------------- Fri Jun 27 17:10:25 CEST 2008 - anicka@suse.cz diff --git a/apache2-mod_perl.spec b/apache2-mod_perl.spec index 22c453c..18e49e4 100644 --- a/apache2-mod_perl.spec +++ b/apache2-mod_perl.spec @@ -2,9 +2,16 @@ # spec file for package apache2-mod_perl (Version 2.0.4) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -36,8 +43,9 @@ Obsoletes: mod_perl_2 Conflicts: mod_perl AutoReqProv: on Version: 2.0.4 -Release: 1 +Release: 40 Source0: mod_perl-%{version}.tar.bz2 +Patch: %{name}-%{version}-tests.diff #%define apache_test_version 1_99_15 # cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic up -r MODPERL_%{apache_test_version} #Source1: Apache-Test-%{apache_test_version}.tar.bz2 @@ -99,6 +107,7 @@ software depending on apache2-mod_perl. %prep #%setup -q -n modperl-2.0 -a 1 %setup -q -n mod_perl-%{version} +%patch find -name ".svn" -type d | xargs rm -rfv %build @@ -263,6 +272,9 @@ if ! test -f /.buildenv; then fi %changelog +* Thu Nov 06 2008 anicka@suse.cz +- temporarily disable two tests that fail due to the bug + in Apache-Test * Fri Jun 27 2008 anicka@suse.cz - update to 2.0.4 * Refactor tests to use keepalives instead of same_interp @@ -339,7 +351,7 @@ fi * Mon Oct 11 2004 poeml@suse.de - update to 1.99_15_20040907 - put Apache-Test in separate tarball -* Wed Mar 03 2004 poeml@suse.de +* Tue Mar 02 2004 poeml@suse.de - update to CVS snapshot 1.99_12_20040302 - two tests need small tweaks for file permissions - mod_perl-1.99_09-perlmm.dif is obsolete @@ -369,7 +381,7 @@ fi `apu-config --ldflags --libs` * Wed Aug 06 2003 poeml@suse.de - fix last change: config-dist.sh did never exit with "ok" -* Wed Aug 06 2003 ro@suse.de +* Tue Aug 05 2003 ro@suse.de - use different string in config-dist.sh (one we check for ...) * Mon Aug 04 2003 poeml@suse.de - config-dist.sh: build only on hosts that support listening on