rpms/rubygem-actionpack/devel rubygem-actionpack-2.3.4-enable-test.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 rubygem-actionpack.spec, 1.12, 1.13 sources, 1.9, 1.10

Mamoru Tasaka mtasaka at fedoraproject.org
Sun Sep 20 16:40:28 UTC 2009


Author: mtasaka

Update of /cvs/extras/rpms/rubygem-actionpack/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7435/rubygem-actionpack/devel

Modified Files:
	.cvsignore rubygem-actionpack.spec sources 
Added Files:
	rubygem-actionpack-2.3.4-enable-test.patch 
Log Message:
rails 2.3.4 (CVE-2009-3009), requires rubygems >= 1.3.4

rubygem-actionpack-2.3.4-enable-test.patch:
 active_record_unit.rb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE rubygem-actionpack-2.3.4-enable-test.patch ---
--- test/active_record_unit.rb.debug	2009-09-18 01:45:17.000000000 +0900
+++ test/active_record_unit.rb	2009-09-18 02:08:19.000000000 +0900
@@ -17,7 +17,7 @@
   $stderr.print 'Attempting to load Active Record... '
   begin
     PATH_TO_AR = "#{File.dirname(__FILE__)}/../../activerecord/lib"
-    raise LoadError, "#{PATH_TO_AR} doesn't exist" unless File.directory?(PATH_TO_AR)
+    #raise LoadError, "#{PATH_TO_AR} doesn't exist" unless File.directory?(PATH_TO_AR)
     $LOAD_PATH.unshift PATH_TO_AR
     require 'active_record'
     require 'active_record/fixtures'


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/rubygem-actionpack/devel/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- .cvsignore	2 Aug 2009 16:42:54 -0000	1.9
+++ .cvsignore	20 Sep 2009 16:40:24 -0000	1.10
@@ -1 +1 @@
-actionpack-2.3.3.gem
+actionpack-2.3.4.gem


Index: rubygem-actionpack.spec
===================================================================
RCS file: /cvs/extras/rpms/rubygem-actionpack/devel/rubygem-actionpack.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- rubygem-actionpack.spec	2 Aug 2009 16:45:25 -0000	1.12
+++ rubygem-actionpack.spec	20 Sep 2009 16:40:24 -0000	1.13
@@ -4,23 +4,28 @@
 %define gemname actionpack
 %define geminstdir %{gemdir}/gems/%{gemname}-%{version}
 
+%define rubyabi 1.8
+
 Summary: Web-flow and rendering framework putting the VC in MVC
 Name: rubygem-%{gemname}
-Version: 2.3.3
+Version: 2.3.4
 Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://www.rubyonrails.org
 Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+Patch0:  rubygem-actionpack-2.3.4-enable-test.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: rubygems
 Requires: rubygem(activesupport) = %{version}
 Requires: rubygem(rack) >= 1.0.0
+Requires: ruby(abi) = %{rubyabi}
 BuildRequires: rubygems
 BuildRequires(check): rubygem(rake)
 BuildRequires(check): rubygem(rack) >= 1.0.0
 BuildRequires(check): rubygem(mocha) >= 0.9.7
 BuildRequires(check): rubygem(activerecord) = %{version}
+BuildRequires(check): rubygem(sqlite3-ruby)
 BuildArch: noarch
 Provides: rubygem(%{gemname}) = %{version}
 
@@ -37,11 +42,23 @@ gem install --local --install-dir .%{gem
             -V \
             --force --rdoc %{SOURCE0}
 
+pushd .%{geminstdir}
+%patch0 -p0
+
+# create missing symlink
+pushd test/fixtures/layout_tests/layouts/
+ln -sf ../../symlink_parent/ symlinked
+popd
+
+popd
+
 # Remove backup files
-find ./%{geminstdir} -type f -name "*~" -delete
+# No! these are needed for rake test
+# find ./%{geminstdir} -type f -name "*~" -delete
 
 # Delete zero-length files
-find ./%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
+# No! these are also needed for rake test
+# find ./%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
 
 # Fix anything executable that does not have a shebang
 for file in `find ./%{geminstdir} -type f -perm /a+x`; do
@@ -68,15 +85,12 @@ rm -rf %{buildroot}
 pushd .%{geminstdir}
 
 # dependency loop
+# depends on actionmailer, while actionmailer has BR(check): actionpack
 mv test/controller/assert_select_test.rb \
             test/controller/assert_select_test.rb.skip
 
-# ??? need checking
-mv test/controller/caching_test.rb \
-            test/controller/caching_test.rb.skip
-
-# Still 6 tests fail, please someone investigate
-rake test --trace || :
+# Now as far as I checked rake test succeeds.
+rake test --trace
 
 %files
 %defattr(-, root, root, -)
@@ -95,6 +109,10 @@ rake test --trace || :
 
 
 %changelog
+* Sun Sep 20 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 2.3.4-1
+- Update to 2.3.4 (bug 520843, CVE-2009-3009)
+- Fix tests
+
 * Sun Aug  2 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 2.3.3-1
 - 2.3.3
 - Enable test (some tests fail, please someone investigate!!)


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/rubygem-actionpack/devel/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- sources	2 Aug 2009 16:42:54 -0000	1.9
+++ sources	20 Sep 2009 16:40:24 -0000	1.10
@@ -1 +1 @@
-7d60ee9499c04712ede6c747e5028390  actionpack-2.3.3.gem
+da53635065d9083ec37be4a36763af9c  actionpack-2.3.4.gem




More information about the fedora-extras-commits mailing list