diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2013-05-02 19:24:32 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2013-05-02 19:24:32 +0000 |
commit | 8cc8630653d1344efa1b29e80965fdc2653d385d (patch) | |
tree | 061019581c3e1625bb0fb54c654a38b365e5fef6 /net-proxy/swiftiply | |
parent | Fix install location, "org-mode" instead of "org". Remove stale files. (diff) | |
download | gentoo-2-8cc8630653d1344efa1b29e80965fdc2653d385d.tar.gz gentoo-2-8cc8630653d1344efa1b29e80965fdc2653d385d.tar.bz2 gentoo-2-8cc8630653d1344efa1b29e80965fdc2653d385d.zip |
Gave the distfile a more unique name. Added a patch to no longer test uninportant random data causing tests to unnecessarly fail, all test pass multiple times. Removed QA warning.
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'net-proxy/swiftiply')
-rw-r--r-- | net-proxy/swiftiply/ChangeLog | 9 | ||||
-rw-r--r-- | net-proxy/swiftiply/files/swiftiply-0.6.4-test-http-headers-order-fix.patch | 64 | ||||
-rw-r--r-- | net-proxy/swiftiply/swiftiply-0.6.4.ebuild | 13 |
3 files changed, 81 insertions, 5 deletions
diff --git a/net-proxy/swiftiply/ChangeLog b/net-proxy/swiftiply/ChangeLog index b337d0740cd4..58fd4f1e56bb 100644 --- a/net-proxy/swiftiply/ChangeLog +++ b/net-proxy/swiftiply/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-proxy/swiftiply # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/swiftiply/ChangeLog,v 1.4 2013/05/02 18:39:03 tomwij Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/swiftiply/ChangeLog,v 1.5 2013/05/02 19:24:32 tomwij Exp $ + + 02 May 2013; Tom Wijsman <TomWij@gentoo.org> + +files/swiftiply-0.6.4-test-http-headers-order-fix.patch, + swiftiply-0.6.4.ebuild: + Gave the distfile a more unique name. Added a patch to no longer test + uninportant random data causing tests to unnecessarly fail, all test pass + multiple times. Removed QA warning. 02 May 2013; Tom Wijsman <TomWij@gentoo.org> +files/swiftiply-0.6.4-cache-base-mixin-fix.patch, swiftiply-0.6.4.ebuild: diff --git a/net-proxy/swiftiply/files/swiftiply-0.6.4-test-http-headers-order-fix.patch b/net-proxy/swiftiply/files/swiftiply-0.6.4-test-http-headers-order-fix.patch new file mode 100644 index 000000000000..fa996e279508 --- /dev/null +++ b/net-proxy/swiftiply/files/swiftiply-0.6.4-test-http-headers-order-fix.patch @@ -0,0 +1,64 @@ +--- a/test/TC_Swiftiply.rb 2013-05-02 21:00:13.053613758 +0200 ++++ b/test/TC_Swiftiply.rb 2013-05-02 21:07:21.803575787 +0200 +@@ -534,28 +534,28 @@ +
+ # Normal request
+ response = get_url('127.0.0.1',29998,'/xyzzy')
+- assert_equal("GET /xyzzy HTTP/1.1\r\nAccept: */*\r\nHost: 127.0.0.1:29998\r\n\r\n",response.body)
++ assert_equal("GET /xyzzy HTTP/1.1",response.body[0..18])
+
+ # With query string params.
+ response = get_url('127.0.0.1',29998,'/foo/bar/bam?Q=1234')
+- assert_equal("GET /foo/bar/bam?Q=1234 HTTP/1.1\r\nAccept: */*\r\nHost: 127.0.0.1:29998\r\n\r\n",response.body)
++ assert_equal("GET /foo/bar/bam?Q=1234 HTTP/1.1",response.body[0..31])
+
+ # POST request
+ response = post_url('127.0.0.1',29998,'/xyzzy')
+- assert_equal("POST /xyzzy HTTP/1.1\r\nAccept: */*\r\nHost: 127.0.0.1:29998\r\n\r\n",response.body)
++ assert_equal("POST /xyzzy HTTP/1.1",response.body[0..19])
+
+ # And another verb; different verbs should be irrelevant
+ response = delete_url('127.0.0.1',29998,'/xyzzy')
+- assert_equal("DELETE /xyzzy HTTP/1.1\r\nAccept: */*\r\n",response.body[0..36])
++ assert_equal("DELETE /xyzzy HTTP/1.1",response.body[0..21])
+
+ # A non-matching hostname, to trigger default handling
+ response = get_url('localhost',29998,'/xyzzy')
+- assert_equal("GET /xyzzy HTTP/1.1\r\nAccept: */*\r\nHost: localhost:29998\r\n\r\n",response.body)
++ assert_equal("GET /xyzzy HTTP/1.1",response.body[0..18])
+
+ # A very large url
+ u = '/abcdefghijklmnopqrstuvwxyz'*100
+ response = get_url('127.0.0.1',29998,u)
+- assert_equal("GET #{u} HTTP/1.1\r\nAccept: */*\r\nHost: 127.0.0.1:29998\r\n\r\n",response.body)
++ assert_equal("GET #{u} HTTP/1.1",response.body[0..2712])
+ end
+
+ # Test redeployable requests.
+@@ -596,7 +596,7 @@ + end
+
+ urlthread.join
+- assert_equal("GET /slo_gin_fizz HTTP/1.1\r\nAccept: */*\r\nHost: 127.0.0.1:29998\r\n\r\n",response.body)
++ assert_equal("GET /slo_gin_fizz HTTP/1.1",response.body[0..25])
+
+ sleep 1
+
+@@ -665,7 +665,7 @@ +
+ # Normal request
+ response = get_url('127.0.0.1',29998,'/xyzzy')
+- assert_equal("GET /xyzzy HTTP/1.1\r\nAccept: */*\r\nHost: 127.0.0.1:29998\r\n\r\n",response.body)
++ assert_equal("GET /xyzzy HTTP/1.1", response.body[0..18])
+ end
+
+ def test_http_404_error
+@@ -846,7 +846,7 @@ +
+ # Normal request for a sanity check.
+ response = get_url('127.0.0.1',29998,'/xyzzy')
+- assert_equal("GET /xyzzy HTTP/1.1\r\nAccept: */*\r\nHost: 127.0.0.1:29998\r\n\r\n",response.body)
++ assert_equal("GET /xyzzy HTTP/1.1",response.body[0..18])
+
+ # Now rewrite the conf file to be a little different.
+ File.open(conf_file,'w+') {|fh| fh.write ConfBase.to_yaml }
diff --git a/net-proxy/swiftiply/swiftiply-0.6.4.ebuild b/net-proxy/swiftiply/swiftiply-0.6.4.ebuild index 8fc02f2bd81a..f233d8e0899a 100644 --- a/net-proxy/swiftiply/swiftiply-0.6.4.ebuild +++ b/net-proxy/swiftiply/swiftiply-0.6.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/swiftiply/swiftiply-0.6.4.ebuild,v 1.2 2013/05/02 18:39:03 tomwij Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/swiftiply/swiftiply-0.6.4.ebuild,v 1.3 2013/05/02 19:24:32 tomwij Exp $ EAPI="5" @@ -9,7 +9,7 @@ inherit ruby-ng ruby-fakegem DESCRIPTION="A clustering proxy server for web applications." HOMEPAGE="http://swiftiply.swiftcore.org/" -SRC_URI="https://github.com/wyhaines/${PN}/archive/${PV}.tar.gz" +SRC_URI="https://github.com/wyhaines/${PN}/archive/${PV}.tar.gz -> ${PN}-${PV}.tar.gz" LICENSE="Ruby" SLOT="0" @@ -20,11 +20,16 @@ RDEPEND=">=dev-ruby/eventmachine-0.9.0" RUBY_FAKEGEM_EXTRAINSTALL="src" RUBY_PATCHES=( "${FILESDIR}/${P}-test-deque-fix.patch" - "${FILESDIR}/${P}-cache-base-mixin-fix.patch") + "${FILESDIR}/${P}-cache-base-mixin-fix.patch" + "${FILESDIR}/${P}-test-http-headers-order-fix.patch" +) QA_PRESTRIPPED="usr/lib/fastfilereaderext.so usr/lib32/fastfilereaderext.so - usr/lib64/fastfilereaderext.so" + usr/lib64/fastfilereaderext.so + usr/lib/deque.so + usr/lib32/deque.so + usr/lib64/deque.so" each_ruby_configure() { cd ext/deque || die 'No deque directory.' |